ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From icet <>
Subject Re: How to use <copy> keepoing the directory structure?
Date Sat, 12 Apr 2008 01:52:09 GMT

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


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

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:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message