ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Nicholson <>
Subject Re: How do to conditional javac executable fork?
Date Fri, 28 Apr 2006 04:15:25 GMT

On Apr 27, 2006, at 10:58 PM, Stefan Bodewig wrote:

> On Thu, 27 Apr 2006, Robert Nicholson <> wrote:
>> If I write a javac task in Ant 1.5 that uses executable and I use a
>> property to detemine the path of the executable. What will javac do
>> if there's no property set?
> If you mean you have something like executable="${prop}" then Ant will
> try to execute an executable named ${prop} if the property named
> "prop" isn't set.  Setting it to an empty string wouldn't help either.

Basically I want the default compiler to be the one that's executing  
Ant but the ability
to override that thru a properties file. It sounds like I actually  
have to have javac's conditional
on prop so I need multiple javac tasks.

>> Will it use the jvm that's running ant to do the compile?
> Only if there is no executable attribute at all.
> Stefan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message