ant-user mailing list archives

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

[snip]
> 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 
(untested):
<target name="startTomcat" description="Starts Local Tomcat Server">
  <exec dir="${tomcat.home}/bin" executable="cmd.exe"  
    newenvironment="true">
    <arg value="/C"/>
    <arg value="startup.bat"/>
    <env key="CATALINA_HOME" path="${tomcat.home}"/>
  </exec>
</target>

HTH
--J.X.


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


Mime
View raw message