ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Molitor, Stephen" <>
Subject RE: setting environment variables
Date Mon, 23 Apr 2001 18:46:16 GMT
Cool - that might work. 

I'm using the environment vars for various things, but setting the
classpath, path, and stuff like JAVA_HOME, ANT_HOME, etc.  I launch a
command window that runs the my setenv.cmd script, and then run ant, the
ide, WebLogic server, etc. from within that environment.

It would be cool if Ant could launch that command window for me, and it
would also be nice if I could set my env vars in one place in my build.xml,
and then pass that set to to javac, junit, exec and other tasks, without
having to copy and paste them everywhere.


Steve Molitor

-----Original Message-----
From: Diane Holt []
Sent: Monday, April 23, 2001 11:53 AM
Subject: Re: setting environment variables

--- "Molitor, Stephen" <> wrote:
> Is there a cross-platform way to set environment variables in Ant?  A
> task to set environment variables?

What are you using the env vars for? If it's in <exec> tasks, you can use
the nested <env> tag.



Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices

View raw message