ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: Ant 1.6.3, JDK1.5 and extJavac="1.3"
Date Mon, 02 May 2005 19:35:11 GMT
Hello Wim,

your forgot the fork="true" attribute.

Cheers,

Antoine

Wim Praet wrote:

>> On Mon, 2 May 2005, Wim Praet <wim@nieuwenbos100.be> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message