ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hagen, Christian" <cha...@init-ka.de>
Subject AW: How to create paths that depend on a condition?
Date Sun, 23 May 2004 11:10:29 GMT
Hi,

have you tried using <patterset>s? They support if/unless attributes for <include>/<exclude>
elements.

Greetings
Chris


> -----Urspr√ľngliche Nachricht-----
> Von: Vincent Massol [mailto:vmassol2@pivolis.com] 
> Gesendet: Samstag, 22. Mai 2004 10:41
> An: user@ant.apache.org
> Betreff: How to create paths that depend on a condition?
> 
> Hi,
> 
> I'd like to create a <path> that depends on some property 
> being defined or not. This is for putting inside the <javac> 
> task. I cannot find the right combination. Here's what I'd like to do:
> 
>     <javac [...]>
>       <src>
>         <pathelement location="${src.test.dir}/share-12-13-14"/>
> ---> start here
>         <dirset dir="${src.test.dir}/share-13-14">
>           <and>
>             <depth max="0"/>
>             <or>
>               <selector if="j2ee13.available"/>
>               <selector if="j2ee14.available"/>
>             </or>
>           </and>
>         </dirset>              
> ---> stop here
> 
> [...]

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


Mime
View raw message