ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Irvine" <greg.irv...@thalesatm.com>
Subject truncating a directory
Date Sun, 26 Sep 2004 23:57:23 GMT
Is there an easy way to remove the first directory from a directory
structure when moving a file set?

 

i.e.

    build/

        project1/com/mycompany/project1/**/*.class

        project2/com/mycompany/project2/**/*.class

        project3/com/mycompany/project3/**/*.class

 

to (where the first directory (project1, project2 and project3) are
removed).

    test/

        com/mycompany/project1/**/*.class

                                   project2/**/*.class

                                   project3/**/*.class

 

 

I could probably use the foreach task in the ant-contribs, but is there an
easier way?

 

Thanks for any advice.

 

Greg.

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message