You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Digambar, Shaligram (Consultant)" <Sh...@GTECH.COM> on 2004/02/18 17:30:01 UTC

RE: How to exclude a directory while copying files in nested dire ctor y structure

Thanks a lot. It works for me. The ant patterns are bit confusing.

Thanks,
Shaligram

Phone: (401)392-7948
Fax:(401)392-4974/4975


-----Original Message-----
From: Peter Reilly [mailto:peter.reilly@corvil.com]
Sent: Wednesday, February 18, 2004 11:20 AM
To: Ant Users List
Subject: Re: How to exclude a directory while copying files in nested
director y structure


You need to use the pattern **/sccs/** and **/sccs.

Note that SCCS directories are already by default excluded
from filessets.
You may have a problem in using lower case letters for the directories.

Also you can add **/sccs" and "**/sccs/**" to your default excludes:
  <defaultexcludes add="**/sccs"/>
  <defaultexcludes add="**/sccs/**"/>

Peter

Digambar, Shaligram (Consultant) wrote:

>Hello,
>I have following directory structure
>
>-src
>  -folder1
>	-sccs
>  -folder2
>      -sccs
>	-folder3
>	  -sccs
>  -sccs
>
>Basically there is sccs folder associated with each folder. I need to copy
>this to a destination but exclude all sccs folders so that dest will look
>something like this
>-dest
>  -folder1	
>  -folder2      
>	-folder3
>
>How do I achieve this? There can be n number of folders. I tried following
>but it doesn't work
>      <copy todir="dest">
>		<fileset dir="src">
>			<exclude name="sccs"/>
>		</dirset>
>	</copy>
>
>Do you have any suggestions?
>
>
>Thanks,
>Shaligram
>
>-----------------------------------------
>This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention, distribution
or disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact the
sender by reply email and delete all copies of this message.  Also, email is
susceptible to data corruption, interception, tampering, unauthorized
amendment and viruses. We only send and receive emails on the basis that we
are not liable for any such corruption, interception, tampering, amendment
or viruses or any consequence thereof.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>  
>


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

-----------------------------------------
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.  Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof.


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