ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant 1.6.3, JDK1.5 and extJavac="1.3"
Date Tue, 03 May 2005 07:11:12 GMT
On Mon, 2 May 2005, Wim Praet <wim@nieuwenbos100.be> 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">

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).

Cheers

        Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message