ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rebhan, Gilbert" <>
Subject RE: <fileset excludes ...> only basename no filepath ?!
Date Tue, 19 Sep 2006 13:26:50 GMT
Hi Antoine,

thanks for your response.
I thought fileset could handle full pathes too.
Is there a way to get that into fileset ?!

my problem is like that =

i have my ManifestScanner task that gives me a
property with a  ; separated list with full file pathes 

C:/dir1/file1.jar;C:/dir1/file2.jar;C:/file1.jar ....

Fileset needs relative pathes, but i need the whole path
for other stuff in my script, and there are also files with
the same name but different manifests.

So how to get rid of C:/ for the whole list ?

<basename> gives me only the filename

Is there a way with <pathconvert> or a simple scripting
solution ?

Regards, Gilbert

-----Original Message-----
From: Antoine Levy-Lambert [] 
Sent: Tuesday, September 19, 2006 2:08 PM
To: Ant Users List
Subject: Re: <fileset excludes ...> only basename no filepath ?!

Hello Gilbert,

remember that include/exclude patterns are relative to the fileset  

so excludes="foobar.jar;dir1\foobar.jar;foo.jar;dir2\foo.jar" should  
be the right thing.



On Sep 19, 2006, at 2:01 PM, Rebhan, Gilbert wrote:

> Hi,
> i have a selfwritten task that scans the manifests of jar files
> in 1 - n filesets for specific key=value patterns and writes the
> matches to a separated list of filenames with whole path, f.e.
> y:\bla\foobar.jar;y:\bla\dir1\foobar.jar;y:\bla\foo.jar;y:\bla\dir2 
> \foo.
> jar
> this ; separated list is put into a property,  let's say ${matches}
> Now i wanted to use ${matches} with a fileset like that =
> <fileset  id="negativMatches" dir="Y:/bla" excludes="${matches}"
> includes="**/*.jar">
> </fileset>
> but that didn't work


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message