ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manku <muralidhar.ma...@gmail.com>
Subject Re: help with ant - copy and filesets
Date Sat, 13 Dec 2008 07:17:46 GMT

Hi Prasanth,

Thanks for the reply.

I have tried mapper. It appears to change the file to new file name format. 
But i want to create a file with the new name .

so using a <copy todir=> above the fileset and mapper is not working. 

Thanks,
Murali

Prashant Reddy-2 wrote:
> 
> Take a look at "mapper"
> 
> http://ant.apache.org/manual/CoreTypes/mapper.html
> 
> manku wrote:
>> Hi ,
>>  
>> I am new to ant to script. I am looking for some help for the below task
>> Suppose the directory "/d1/user1/abc/" has 50 subdirectories. and these
>> sub
>> directories in turn have some other directories and some java files.
>> a) Create a temp directory (/d1/temp)
>> a) I need to create a directory under temp directory with the name as sub
>> directory
>> a) I need to copy the all the java files in the subdirectories in to temp
>> directory.
>> say suppose 
>> /d1/user1/abc/xyz/a.java  to /d1/temp/xyz/a.java
>> /d1/user1/abc/def/a.java  to /d1/temp/def/a.java
>> /d1/user1/abc/mnc/a.java  to /d1/temp/mnc/a.java
>>
>> Please advice 
>> Thanks,
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/help-with-ant---copy-and-filesets-tp20987842p20988019.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