did you define - destiny - ? what about a basedir? <project name="nothing" basedir="C:\folder1">
<property name="src" location="folder2"/> <property name="destiny" location="folder2\destiny\folder1\folder2"/> <copy todir="${destiny}"> <fileset dir="${src}" excludes="**/*.java"/> </copy> On Fri, Apr 11, 2008 at 11:35 AM, icet <[EMAIL PROTECTED]> wrote: > > This is my target > > <target name="mapFileName" 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--tp16628195p16628195.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]