Thanks Bruce. You're right on both counts, as I expected you to be!

After looking for the help of my better half, we find out I wasn't using the
right targetdirs (forgot to have a ../modulename) in #3, and we achieved #4
similarly to what you have, slightly differently:

   <fileset dir=".">
     <or>
       <and>
         <present present="both" targetdir="A/src" />
         <or>
           <present present="both" targetdir="B/src" />
           <present present="both" targetdir="C/src" />
         </or>
       </and>
       <and>
         <present present="both" targetdir="B/src" />
         <or>
           <present present="both" targetdir="C/src" />
         </or>
       </and>
     </or>
   </fileset>

A/B and B/A are the same, etc...

When I wanted to post what we found, I saw your answer! Sorry to have wasted
you time... I didn't do it on purpose.

I have 18 modules, so the <fileset> is the biggest one I ever wrote ;-) But
it works.

Thanks again for the help ;-) Right on target! --DD

-----Original Message-----
From: Bruce Atherton [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 11, 2002 4:25 PM
To: Ant Users List
Subject: Re: Help with selectors

<snip/>

Hmm. Annoying though the response "it works for me" is for someone 
struggling with a problem, I have to say that it works for me. First, I 
created this directory tree:

<snip/>

>I have no clue how to achieve (4). Help would be greatly appreciated. --DD

<snip/>

Tricky. Off the top of my head, if the combinatorial explosion isn't too 
large, you could do something like:

<snip/>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to