ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Changing directory structure in copy
Date Tue, 07 Aug 2007 07:13:48 GMT
Using the <copy> was implied :-)
The difficult part was the renaming ...

Jan 

>-----Urspr√ľngliche Nachricht-----
>Von: cuillandre frederic [mailto:frederic.cuillandre@airweb.fr] 
>Gesendet: Dienstag, 7. August 2007 08:53
>An: Ant Users List
>Betreff: Re: Changing directory structure in copy
>
>> I need to copy the following directories:
>> 
>>     ../dir1/db/*
>>     ../dir2/db/*
>>     ../foo/db/*
>>     ../bar/db/*
>> 
>> To:
>> 
>>     dbutil/dir1
>>     dbutil/dir2
>>     dbutil/foo
>>     dbutil/bar
>> 
>> Basically, I want to copy all directories:
>> 
>>     ../*/db
>> 
>> to:
>> 
>>     dbutil/*
>
>why don't you use the copy tag
>http://ant.apache.org/manual/CoreTasks/copy.html
>or copydir tag
>http://ant.apache.org/manual/CoreTasks/copydir.html
>
>> 
>> I looked at mapper, but it seems to only map file names. Is there a
>> way to map directories in Ant without using any "optional" tasks,
>> manually listing the directories, or using shell callouts?
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message