ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Campbell <sea...@halcyon.com>
Subject <exec> cmd deprecated but executible not supported
Date Sun, 20 Jan 2002 19:48:34 GMT
On Ant1.4.1 with sun jdk 1.4 b 3 on NT 4.0 sp 6

I am getting conflicting messages on the use of <exec>

With targets "up" and "down" , I get "use of command is
deprecated, please use executible.and nested arg."

On target "restart",  <exec> doesn't support the
executible attribute.

My usage must be a well-known idiom.

     <target name="down" description="Shutdown tomcat">
         <exec command="start c:\tomcat\bin\shutdown.bat" />
     </target>

     <target name="up" description="Startup tomcat">
         <exec command="start c:\tomcat\bin\startup.bat" />
     </target>

     <target name="restart" description="restart tomcat">
         <exec executible="cmd.exe">
             <arg  line="/c c:\tomcat\bin\shutdown.bat &amp;" />
             <arg line="/c sleep 30" />
             <arg line="/c c:\tomcat\bin\startup.bat &amp;" />
         </exec>
     </target>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message