ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From icet <ice...@yahoo.com.br>
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

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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message