On 2010-09-15, John W. Lewis wrote:
> Can imports go in targets?
No.
Ant needs to know all targets in order to build the dependency graph
before it can start executing the first target. This means all
must have been done before any target is run.
> The way I have done it in the past is to con
Can imports go in targets?
The way I have done it in the past is to conditionally set a property and
import the property. When I don't want to import something, I set the property
to a filename that does not exist. Make sure you .
John
-Original Message-
From: Murray, Mike [mailto
Put it inside a target.
-Original Message-
From: Perrier, Nathan [mailto:nperr...@ptc.com]
Sent: Wednesday, September 15, 2010 12:13 PM
To: user@ant.apache.org
Subject: Conditional import?
Hi All,
Is there a way to do a conditionally import in ant?
For example:
Or if n
Hi All,
Is there a way to do a conditionally import in ant?
For example:
Or if not using , can this be done with XML Entities?
Thanks much,
-Nathan
On Wed, Sep 15, 2010 at 1:27 AM, Stefan Bodewig wrote:
> On 2010-09-14, Rafael de F. Ferreira wrote:
>
>> From a cursory inspection of org.apache.tools.ant.AntClassLoader, it
>> seems Ant only delegates to the system ClassLoader if the class being
>> loaded belongs to a fixed set of packages[1].
>