Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

read environment variables set by bat file, which is run by ant
exec task

Raja Nagendra Kumar

2008-04-30

Replies:

Author LoginPost Reply

Hi,

Is it possible to read the properties which are set by bat file (this bat
file is run with in ant using exec command. Basically teh bat file should
run in the same process.. tried spam="false" in exec but does not work..

<exec executable="cmd" spawn="false">
 <arg line="/c ${foundation.root}/common/buildutils/bat/auto.bat"/>
  </exec>

  <property environment="env"/>


The above one should have all the properties as set by auto.bat.


I know it is a bad way.. but for some time, I am looking for such solution..

Regards,
Nagendra
--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.