On 2008-12-03, Francis Galiegue <[EMAIL PROTECTED]> wrote: > Le mardi 02 décembre 2008, Francis Galiegue a écrit : > [...]
>>> 3.I did not try this, but it seems not too difficult, perhaps I dont know >>> enough about cp. >>> What about >>> <copy todir="dstdir"> >>> <fileset> >>> <include name="**/src/java/**"/> >>> </fileset> >>> </copy> >> I'll try that and report. > Nope... > It recopies the whole directory structure. This is not what I want. > Say, I have: > basedir/a/src/java/com/<whatever> > basedir/a/src/java/org/... > basedir/b/src/java/com/<whatever2> > basedir/b/src/java/foo/... > What I want to have, in the destination directory, is what the cp command I > gave as an example achieves, ie, in the dstdir: > com/<whatever> > com/org/... > com/foo/... > com/<whatever2> <copy todir="dstdir"> <fileset> <include name="*/src/java/**"/> </fileset> <regexmapper from=".*/src/java/(.*)" to="\1"/> </copy> should work (untested). Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]