Loading...

user@ant.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

selecting directories with child files Mansour Al Akeel Tue Feb 07 03:00:58 2012

I need to select directories that contains "META-INF/ejb-jar.xml"
I am using dirset:

<dirset dir="root">
<include name="**/build/*" />
here I need to set up a condition that only directory containing
META-INF/ejb-jar.xml are selected.
</dirset>

for example
module1/build/module1/META-INF/ejb-jar.xml
module2/build/module2/META-INF/ejb-jar.xml

I need the dirset to contain module1/build/module1 and module2/build/module2

Thank you.