ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Molitor, Stephen" <SMoli...@erac.com>
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.

Thanks!

Steve Molitor



-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Monday, April 23, 2001 11:53 AM
To: ant-user@jakarta.apache.org
Subject: Re: setting environment variables


--- "Molitor, Stephen" <SMolitor@erac.com> 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.

Diane


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Mime
View raw message