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:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>