Hello Wim,
your forgot the fork="true" attribute.
Cheers,
Antoine
Wim Praet wrote:
On Mon, 2 May 2005, Wim Praet <[EMAIL PROTECTED]> wrote:
<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">
) , it says:
[javac] Compiling 455 source files to C:\projects\test\build
[javac] javac: target release 1.3 conflicts with default source
release 1.5
BUILD FAILED
Leaving out the source="1.3" or target="1.3" doesn't help (and would
not be the intention), since that would still compile my sources with
the JDK1.5 javac (I can see this since I use "enum" somewhere in the
sources as keyword and the javac1.5 compiler complains about this).
Do I need to specify where "javac1.3" points to, or does Ant knows
this by itself somehow??
(where ${jdk13} points to the JDK1.3 javac executable).
with compiler="extJavac" Ant assumes it can use the same command line
arguments as the javac of the current VM, i.e. JDK 1.5 in your case.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]