ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kaufman <mike.kauf...@bea.com>
Subject RE: Setting environment variables for a javac task
Date Thu, 21 Feb 2002 19:40:05 GMT

I'm resending this because my reply to was broken.

>  -----Original Message-----
> From: 	Mike Kaufman  
> Sent:	Thursday, February 21, 2002 11:01 AM
> To:	'ant-user@jakarta.apache.org'
> Subject:	Setting environment variables for a javac task 
> 
> 
> Hi,  
> 
> I need to have a single ant target do multiple javac tasks, 
> some of which use JDK 1.4, others that use JDK 1.3.  Setting 
> the "build.compiler" property did not seem to work for me.  
> Moreover, it isn't clear to me what this build.compiler 
> setting is really doing.  
> 
> An alternative way to accomplish my goal is if I can set my 
> PATH and my JAVA_HOME environment variables explicitly for 
> each javac task.  I understand that the "exec" tag supports 
> enclosed "env" tags, but it isn't clear to me how to get a 
> "javac" task to use alternate environment variables.
> 
> If someone can tell me how I can do this, I would really 
> appreciate it!!!
> 
> My apologies if this issue has been raised before.  I checked 
> the mailing list archive and online docs and didn't find what 
> I was looking for.  
> 
> Thanks!
> 
> Mike Kaufman
> 
> 
> 

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


Mime
View raw message