ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: java task question for ant 1.6.5
Date Fri, 27 Oct 2006 20:23:33 GMT
On 10/27/06, Jeff Holt <> wrote:
> To make my build script a bit less susceptible to environmental errors,
> I'd like to rewrite the following task:
> <apply executable="${env.JAVA_HOME}/bin/java">

Simply replace ${env.JAVA_HOME} by ${jre.home}, and it will use the
same JRE or JDK used by Ant itself. <apply> is better than
<java>+<ac:for> in this case IMHO. Or you could also use
<ac:outofdate>, in which can you can avoid the fork done by apply.

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

View raw message