ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernier, Melanie" <melanie.bern...@sdm.de>
Subject ANT Different JDK Compilers
Date Tue, 24 Jul 2001 07:28:50 GMT
Hi everybody!

How can I use different compilers in ANT?  I want to compile some files
using JDK 1.3 and some using JDK 1.1.8 for example.  When I specify the
build.compiler value to classic, my JDK 1.3 is still used.  I have both
JDK\bin on my path.

<target name="compile">
    <property name="build.compiler" value="classic"/>
    <javac srcdir="d:\test" 
    		 target="1.1"
    		 includes="simpleTestJDK.java"
    		 classpath="c:\jdk1.1.8\lib\classes.zip"
    		 includeAntRuntime="false"
    		 verbose="true"
    	   	 destdir="d:\test"/>
</target>

I read on the Archive mailing list that I should include:
includeruntime="false"
but with that, I get an error from ANT saying that this attribute is not
supported by javac.

Thanks for any help.

Melanie.


Mime
View raw message