ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barry Andrews <>
Subject How to set environment via batch script
Date Wed, 30 Jun 2004 03:07:15 GMT
	I want to be able to invoke a batch script on Windows 2000 that sets up 
some environment variables. I know that I can use nested <env> elements 
with <exec>, but I really need to be able to run this script.

<exec executable="cmd.exe">
     <arg line="/c env.bat"/>

The script does run because I can see the output in the console, but the 
environment variables are not set when the JVM exits.

Is there a way to do this?

many thanks,


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

View raw message