I want to make a target to restart tomcat6. Right now, I have something like this:
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask" />
<taskdef name="start" classname="org.apache.catalina.ant.StartTask" />
...
<target name="restart" depends="deploy" description="Restart Tomcat" >
<stop url="${manager}" username="${username}" password="${password}" path="${path}" />
<start url="${manager}" username="${username}" password="${password}" path="${path}" />
</target>
Can I rely on stop running before start? Or should I make two separate targets, and have 'start' depend on 'stop'?