Yup it is possible 

<copy todir="Dest" overwrite="Yes">
<fileset dir="Source"/>

And use exclude ant tag

All the best..
Dinesh
-----Original Message-----
From: bejoy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 5:41 PM
To: user@ant.apache.org
Subject: File Copy issue

Hi All,

I want to copy a directory into another one.And I want to omit certain folders 
in my source directory.How can I do this task

Src dir:
        ABC
                MyFolder
                YourFolder
                MyFile

And in the destination dir I want this structure

Dest dir
        ABC
                MyFolder
                MyFile

Here I'm omitting "YourFolder"

Can anybody give me some idea 


With Thanks & Regards,
Bejoy
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient or received it in error, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to