ANT - Duplicate files

View: New views
3 Messages — Rating Filter:   Alert me  

ANT - Duplicate files

by cvsusr () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



Re: Duplicate files

by Francis Galiegue-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 6, 2009 at 16:33, cvsusr <spers@...> 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..
>

With ant-contrib, yes. With core ant, I don't know and will let other
people guide you through this.

--

Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
fge@...
40 avenue Raymond Poincaré
75116 Paris

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


RE: Duplicate files

by mgainty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


majority of available file system managers disallow duplicate filenames for the the same folder
can you provide more specifics on which Platform/OS you are using
as well as any mount or ln and permission commands you use to either identify or access the file

thanks,
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.




> Date: Fri, 6 Nov 2009 07:33:52 -0800
> From: spers@...
> To: user@...
> Subject: Duplicate files
>
>
> 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/Duplicate-files-tp26230804p26230804.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
     
_________________________________________________________________
Hotmail: Trusted email with Microsoft's powerful SPAM protection.
http://clk.atdmt.com/GBL/go/177141664/direct/01/
http://clk.atdmt.com/GBL/go/177141664/direct/01/