ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@dpml.net>
Subject RE: How to exclude files with same pattern except one
Date Mon, 23 Jan 2006 05:06:42 GMT
 

> -----Original Message-----
> From: Kasparek, Bernadette [mailto:bernadette.kasparek@IZB-SOFT.de] 
> Sent: Saturday, 21 January 2006 12:01 AM
> To: 'user@ant.apache.org'
> Subject: How to exclude files with same pattern except one
> 
> Hi everybody,
> 
> I've the following problem:
> I've got a list of some hundred files with pattern "index_xxx*".
> Now I want to pack only the files with pattern "index_999*" (about 6
> instances) all others should be excluded.
> 
> I tried the following:
> <tar desfile="test.tar"
> 	basedir="dist"
> 	includes="index_99999950*"
> 	excludes="index_*"
> />

Havn't tried this but what happends if you just do:

 <tar desfile="test.tar"
 	basedir="dist"
 	includes="index_99999950*" />

/Steve.


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


Mime
View raw message