On Wed, 11 Sep 2002, Dominique Devienne <[EMAIL PROTECTED]> wrote:

> 3) I want to get all the sources I didn't get earlier in the
> other modules in a final 'misc' module.
>
> 4) Finally, I want to check I didn't copy any file to more than one
> module.
> 
> To achieve (3), I tried the following:
> 
>   <fileset id="misc-sources"
>            dir="${ds.home}/src">
>     <!-- This fileset selects all files not selected by all
>          the different modules. It should be empty!!! -->
>     <none>
>       <present present="both" targetdir="A/src" />
>       <present present="both" targetdir="B/src" />
>       <present present="both" targetdir="C/src" />
>     </none>
>   </fileset>
> 
> I tried using either 'both'

Should work (but I tend to get my logic wrong 8-).

>  or 'srconly'

With <none> replaced by <and>, yes?

> I have no clue how to achieve (4).

Write an <isempty> condition that accepts a nested <fileset>?  Can't
come up with a built-in way, sorry.

Stefan

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

Reply via email to