ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "F. Da Costa" <daco...@xs4all.nl>
Subject Re: Splitting full filename into package and filename
Date Tue, 17 Feb 2004 18:37:58 GMT
Jan.Materne@rzf.fin-nrw.de wrote:
> Maybe the package mapper will do the job for you.
> See manual "File Mappers".
> 
I've looked at that but can't get it to work.
The thing that is not too well documented is where the input is coming from 
/ how the output is referenced (read used).

I there a decent example somewhere to your knowledge?

Thx

Fermin

> 
> Jan
> 
> 
>>-----Original Message-----
>>From: F. Da Costa [mailto:dacosta@xs4all.nl]
>>Sent: Tuesday, February 17, 2004 5:45 PM
>>To: user@ant.apache.org
>>Subject: Splitting full filename into package and filename
>>
>>
>>Hi,
>>
>>Have ben burning 1.5 days on this untill now and i feel i 
>>hust 1 little 
>>thing to move on.
>>
>>Here is the situation.
>>I nedd to go through a unknown number of dirs to process an 
>>unknown no of 
>>java files (they need to be 'stuffed' into a test-thing)
>>Lopping through the dis goes fine.
>>Selecting the files *in* the di is done as follows
>>
>><!-- scan the ${dir} directory get and the test stub files -->
>><path id="jml.unittestfiles.path">
>>  <fileset dir="${dir}" casesensitive="yes">
>>   <include name="**/*JML_Test.java" />
>>  </fileset>
>></path>
>>
>>The result is a list with *full* filenames.
>>Q 1: However, the resulting filename should have the whole dir part 
>>stripped out. Only leaving the relevant filename. After all i 
>>know the dir 
>>its from.
>>
>>Q2: The retrieval of the package name from the filename (only 
>>has to done 
>>once obviously). Could probably use a regexp for that?
>>
>>Any help/ suggestiona would be appreciated.
>>Have been going through the list but so far not found a proper answer.
>>
>>TIA
>>Fermin DCG
>>
>>
>>---------------------------------------------------------------------
>>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


Mime
View raw message