You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Daniel Blaukopf <Da...@Sun.COM> on 2006/03/21 12:53:38 UTC

Set up a path based on conditions?

Hi,


I need to create a path containing elements which

i) don't exist yet

and ii) vary according to what properties are set.


Ideally, I would do this:


<filelist id="myfiles" dir="mydir">

    <file name="A" if="include.A"/>

    <file name="B" if="include.B"/>

    <file name="C"/>

</filelist>


None of A, B, or C exist at the time I need to build the list, so as far
as I can tell <fileset> is not an option.


However,  the <file> element in <filelist> doesn't have an "if" attribute.


Can anyone suggest another way of getting to the same result?


Thanks,


Daniel


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