Ant实施bat启动tomcat

Ant执行bat启动tomcatproperty nametomcat.home valueE:/tomcat6018 /target nameexecexec

Ant执行bat启动tomcat

<property name="tomcat.home" value="E:/tomcat6018" /><target name="exec">    <exec dir="${tomcat.home}" executable="cmd.exe" >            <arg line="/c ${tomcat.home}/bin/startup.bat" />         <arg line="/c exit" />     </exec> </target>