ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: setting JAVA.HOME for javac with fork="true" ?
Date Tue, 24 Apr 2007 15:02:29 GMT
Rebhan, Gilbert wrote:
>  
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
> Sent: Tuesday, April 24, 2007 11:05 AM
> To: user@ant.apache.org
> Subject: AW: setting JAVA.HOME for javac with fork="true" ?
> 
> /*
> 
> Use properties in the called buildfile
>   <javac fork="true" exe..="${javac.exe}" ...
> with default settings.
> 
> When calling that buildfile you can overwrite these settings.
> 
> <ant...>
>    <property name="java.home" ...>
> 
> */
> 
> Thanks!! , that works, but i have to edit the called scripts to make that work.
> If it would be possible to ' overwrite ' %JAVA_HOME% for the called
> script i don't have to edit anything.
> 
> So there's no way ?!
> I already tried overrriding with $project.setProperty before my
> <ant ... /> call

no, thta doesnt work, because JAVA_HOME is set earlier. And remember, 
things like the PATH is fixed.

However, you can use <presetdef> to redefine <javac> before you call down.


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


Mime
View raw message