Use a different compiler with ant’s javac task

by | Mar 9, 2009 | IT Development | 0 comments

To ignore the JAVA_HOME settings and specify the compiler to use in ant’s javac task set the following properties:

build.properties:

# Set the jdk compiler properties
build.javac.executable=C:/Applications/Java/jdk1.5.0_13/bin/javac.exe

build.javac.compiler=javac1.5

Then in the build script use:


Written by sheila

0 Comments

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *