Rebhan, Gilbert wrote:
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 11:05 AM
To: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to