ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murray, Mike" <...@ptc.com>
Subject RE: Conditional import?
Date Wed, 15 Sep 2010 17:16:06 GMT
Put it inside a target.

-----Original Message-----
From: Perrier, Nathan [mailto:nperrier@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:

 

<import file="file1.xml" if="some_property_is_set" />

 

Or if not using <import>, can this be done with XML Entities?

 

 

Thanks much,

-Nathan


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message