Hi there, this is just an example actually, this is not a code not working properly. It's a non-supported ant feature that I would like to emulate. In the copy task you have something like
directoryScanner.getIncludedFiles(), wich returns a list of Strings that are Relative filenames. My source and destiny folders are in the same level, so I get a result as: undisired result destiny: C:\folder1\folder2\destiny\file1a.txt C:\folder1\folder2\destiny\file1b.txt The folder1\folder2 cannot be defined as properties because they're actually folder*\folder*, I mean, they can be thousands of different paths. icet wrote: > > This is my target > > <target name="copyFiles" depends="clean"> > <copy todir="destiny"> > <fileset dir="source" /> > </copy> > </target> > > My source files > source: C:\folder1\folder2\source\file1a.txt > C:\folder1\folder2\source\file1b.txt > > I want the result ot be something like > destiny: C:\folder1\folder2\destiny\folder1\folder2\file1a.txt > C:\folder1\folder2\destiny\folder1\folder2\file1b.txt > > Any ideas? > > thanks > -- View this message in context: http://www.nabble.com/How-to-use-%3Ccopy%3E-keepoing-the-directory-structure--tp16628195p16644553.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]