I have a slightly complicated question regarding copy. I have a structure like:

A
  a
    c
       cc
    d
       dd
  b
     e
     f
B
  a
     g
        gg
     h
        hh
  b
     i
     j

So 'a' is a subdirectory of 'A' and 'b' is a sub directory of 'A' also. This basic 
structure is repeated multiple times. I want to <copy> all of the files (maintaining 
the directory structure UNDER 'a' to a separate directory lets call 'includes'. So the 
resulting structure would look like:

includes
  c
     cc
  d
     dd
  g
     gg
  h
     hh

I have tried

        <copy todir="includes" flatten="false">
            <fileset basedir="${project.rootdir}">
                <include name="**/a/**" />
            </fileset>
        </copy>

but I get the structure parent directories 'A' and 'B' also. I guess I want a dynamic 
basedir or something like that. Does anyone understand or know how I can tackle this 
problem? Can I specify basedir="${project.rootdir}/**"?

Thank you.

Kevin


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to