ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zbc <zhebinc...@163.com>
Subject how to run two exec tasks within the same command shell
Date Fri, 20 Feb 2009 08:39:18 GMT

the two executable file, one is called "setENV.cmd", the other is called
"doThings.exe". 
in the windows command console, the "setENV.cmd" is used to setup the
environment, and it must be run first, then the "doThings.exe" can be run.
or not, "doThings.exe" can't work. the manual operation works well, because
we can type the two commands within the SAME command console. 
but while i run them in the ant script by exec task, there is problem., the
build.xml snippet is as follow: 

<target name="deploy"> 
<exec executable="setENV.cmd" /> 
<exec executable="doThings.exe"> 
<arg value="......" /> 
<arg value="......" /> 
</exec> 
</target> 


while i execute the target, i am sure the "setENV.cmd" is run well, but the
"doThings.exe" can't work well, 
that means the two exec tasks are not run within the same command shell, who
can tell me how to config the ant to run the two exec tasks within the same
shell? 

Thanks 

-- 
View this message in context: http://www.nabble.com/how-to-run-two-exec-tasks-within-the-same-command-shell-tp22116826p22116826.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message