ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Weintraub <>
Subject Re: Dual Java Compilers/Replacement for antcontrib
Date Tue, 15 Feb 2011 20:31:53 GMT
 > Dual Java Compilers
 > I have a project that I build using Jenkins (previously Hudson)  which
 > allows me to choose the version of the JDK I want to use when building the
 > project. My developers want the ability to select the JAVA compiler to use
 > via a properties file.
 > The problem is that these too things *MAY* conflict with each other. If I
 > specify ${java.home}/bin/javac as the executable in my <javac> task, will
 > Jenkins choose the wrong version because $JAVA_HOME isn't necessarily the
 > same JAVA_HOME of the chosen JDK?

On Tue, Feb 15, 2011 at 2:45 PM, Vimil Saju <> wrote:
 > No there wont be any conflicts, Jenkins will start ant using JDK
 > configured on its configuration page. However the javac task will create a
 > new process and start a new jvm using the jdk specified in the properties
 > file. So I don't see any conflicts.

Actually, that's the conflict I was worried about. Jenkins allows me
to specify both the Java version and the Ant version. I WANT to use
the Java version specified in Hudson control panel and not whatever
JAVA_HOME might be set to.

I'll have to use some mechanism that uses the defaults if
${javac.executable} isn't defined and whatever ${javac.executable} is
if it is defined.


David Weintraub

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

View raw message