ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jing Xue <>
Subject Re: <exec> task
Date Wed, 12 Nov 2003 02:57:36 GMT
Quoting "Conelly, Luis (EM, DDEMESIS)" <>:

> 1. Does <exec> task just support .exe files (which I think it is not, since
> the task executes other files in other OS environments besides Windows)?

You can't exec a batch file in Windows directly. You have to do something like 
<target name="startTomcat" description="Starts Local Tomcat Server">
  <exec dir="${tomcat.home}/bin" executable="cmd.exe"  
    <arg value="/C"/>
    <arg value="startup.bat"/>
    <env key="CATALINA_HOME" path="${tomcat.home}"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message