Re: Conditional import?

2010-09-15 Thread Stefan Bodewig
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

RE: Conditional import?

2010-09-15 Thread John W. Lewis
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

RE: Conditional import?

2010-09-15 Thread Murray, Mike
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

Conditional import?

2010-09-15 Thread Perrier, Nathan
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

Re: AntClassLoader and the system classloadr.

2010-09-15 Thread Rafael de F. Ferreira
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]. >