ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: setting JAVA.HOME for javac with fork="true" ?
Date Tue, 24 Apr 2007 09:05:09 GMT
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" ...>



Jan

 

>-----Urspr√ľngliche Nachricht-----
>Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] 
>Gesendet: Dienstag, 24. April 2007 10:45
>An: user@ant.apache.org
>Betreff: setting JAVA.HOME for javac with fork="true" ?
>
>
>Hi,
>
>right now i have a working testfile  with <javac >  IBM_J9_v23_SR2
>that way =
>
><javac fork="true"
> 
>executable="c:/Programme/JavaSoft/JDK/IBM_J9_v23_SR2/bin/javac.exe"
>        includeantruntime="false"
>        includejavaruntime="false"
>        classpathref="ibm.jdk.classpath" 
>        srcdir="c:/WKS/eclipse_3_2_2/web/src/de/bla/blabla"
>        destdir="Y:/tempwork"
>/>
>
>fine, but in reality i need to call another build.xml and want to
>point JAVA.HOME to the ibm jdk, so that the javac task
>in the called build.xml works with ibm jdk instead of sun jdk.
>
>Is that possible ?
>
>I want to avoid to write
>
><javac 
>
>executable="..."
>/>
>
>in the called build.xml and let the JAVA_HOME decide.
>
>
>Regards,Gilbert
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message