ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cvsusr <sp...@rediffmail.com>
Subject Re: Ant find duplicate files
Date Tue, 10 Nov 2009 09:48:03 GMT

its <present> task not preset..  


cvsusr wrote:
> 
> Hi
> 
> Can anyone help me in this.. im trying various ways but not able to
> achieve a solution..
> 
> I used <preset task to check for the same files existing in two dirs.. its
> working fine when we know the target dir to compare and only when we need
> to compare two dirs..
> 
> In my case i need to check all the dirs available and pickup the repeated
> files..
> 
> Is there anyway to achieve this?? request ur help.
> 
> thanks.
> 
> cvsusr wrote:
>> 
>> Thanks for ur replies.. i will look in to that .. before that i shall
>> give you the explanation of the question.
>> 
>> 
>> I have dirs like 
>> 
>> Title/t1
>> title/t2
>> title/t3
>> 
>> and more sub dirs in each t1/ t2 /t3//
>> 
>> but at one level we have one folder named "src" under all t1, t2, t3
>> folder and we do have files in it with same name as a.txt with other
>> files
>> 
>> 
>> structure
>> 
>> Title
>> |-------------t1/dir/src-------------a.txt
>>                                 -------------foo.c
>>                                 -------------c.txt
>> |-------------t2/src ---------------a.txt
>>                              ---------------c.txt
>>                              ---------------something.xml 
>> |-------------t3/c/a/src/ ---|
>>                                         |------b.txt
>>                                         | --------c.txt
>> 
>> 
>> My real task is to find all the repeated file in the the subdirectories,
>> if its present, copy them to the temp directory with folder name
>> mappings. Since a.txt is present in t1 and t2 folder.. i copy them to a
>> temp folder and hence both are same file, i do a build picking a.txt file
>> from the t1 or t2 but then copying the build artifact to the t1 and t2
>> again.. if atall there are any changes need to be done in a.txt,
>> developers can go to the temp folder and does the change in one place
>> either t1 or t2 folder under my temp dir. the i do a build of that and
>> copy back to the respective folders.. in this case t1 and t2..
>> 
>> this is the whole idea.. hope its clear..
>> 
>> to achieve this scenario.. i splitted m tasks and my first part is to
>> find the duplicate or repeated file list and store it in a temp dir and
>> then go on to next steps..
>> 
>> can you pls.. let me know a solution for this..
>> 
>> thanks
>> sri
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> cvsusr wrote:
>>> 
>>> Hi
>>> 
>>> In my ant build,
>>> 
>>> I need to find duplicate files under set of dirs and if found, copy it
>>> to the temp directory.
>>> 
>>> say in my current dir i have chk/src/a.txt and chk/src2/a.txt and
>>> chk/src2/b.txt
>>> 
>>> the task should find a.txt under src and src2 and copy it to chk/test
>>> dir with folder names
>>> 
>>> Can this  be done in any way..
>>> 
>>> Thanks 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Ant-find-duplicate-files-tp26230907p26280760.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