ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wim Praet" <>
Subject Re: Ant 1.6.3, JDK1.5 and extJavac="1.3"
Date Mon, 02 May 2005 15:50:42 GMT
> On Mon, 2 May 2005, Wim Praet <> 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 


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:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message