how to start a remote tomcat server from an ant build file
843836Jun 9 2005 — edited Jun 10 2005I am writting a buildfile for ant in which i need to start and stop a tomcat server located in remote unix box. but got error like this.
appreciated if you can ler me know how to define the it in buildfile.
Execute failed: java.io.IOException: CreateProcess: "10.20.10.101\etc\rc3.d\S99tomcat stop" error=2
My script like below,
<project name="XXX" basedir="." default="all">
......
<property name="tomcat.path" value="10.20.10.101/etc/rc3.d"/>
<taskdef name="stop" classname="org.apache.catalina.ant.StopTask"/>
<target name="tomcat-stop" depends="">
<exec executable="${tomcat.path}/S99tomcat stop"/>
</target>
......
</project>