ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: fileset question
Date Thu, 10 Oct 2002 20:02:40 GMT
Wouldn't it just be easier to form a fileset that excludes **/*.java 
files?  I store resources beside Java code also, and just copy them all 
to the classes directory where I'm building to when I compile.

	Erik


Elizabeth Cooper wrote:
> Can someone point me to an example of how to do this ...
> 
> I have a fileset which I have formed from a <selector>
> These are all java files (*.java).
> I want to convert this to a file list of corresponding resource files; I 
> want to designate a source directory (${source}), and use the root name 
> of the java files in this source directory to create a new fileset of 
> all resource files that match. For example, I have Bean.java, Box.java, 
> and Whatever.java; I need the new fileset to only contain 
> Bean.properties, Bean_en_GB.properties, Bean32.gif, Bean16.gif, 
> Box.properties, Box32.properties, Box16.properties, etc.
> 
> This is to use in a copy (to copy resources for a jar); assuming the id 
> of this new fileset is "new.file.set"
> 
> I want to be able to do:
> 
> <copy todir="${files.to.jar}>
>    <fileset refid="new.file.set" />
> </copy>
> 
> TIA
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 


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


Mime
View raw message