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:[EMAIL PROTECTED]
>Gesendet: Dienstag, 24. April 2007 10:45
>An: [email protected]
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]