<javac srcdir="${src}" destdir="${build}" debug="${debug}"
compiler="extJavac" executable="${jdk13}" source="1.3"
target="1.3">

Try <javac ... compiler="javac1.3" fork="true"/>.

When I try to do that ( being: <javac srcdir="${src}" destdir="${build}" debug="${debug}" compiler="javac1.3" fork="true" source="1.3" target="1.3">

executable="${jdk13}"

is missing.  You need to tell Ant (1) that you want to run an external
JDK compiler (fork="true"), (2) that you don't want the one of the
current JDK, but a different executable (executable="...") and (3)
that the compile accepts a command line compatible with the one of JDK
1.3 (compiler="javac1.3").

Your original setup lacked (3), your second attempt lacked (2).

Thanks, this works indeed like expected!
But only on Ant 1.6.3...
Running the same build file with JDK1.5 as default JDK and Ant 1.6.2 gives following output:


   <snip>
    [echo] Using C:\java\jdk1.3.1_02\bin\javac.exe
   [javac] Since fork is true, ignoring compiler setting.
   [javac] Compiling 455 source files to C:\projects\test\build
   <snip>

So, there is a difference between the new and old Ant on the "fork" attribute.

However, thanks a lot!
Wim.


Cheers

Stefan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to