You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Narayanan, Gopalakrishnan" <gn...@exchange.ml.com> on 2002/11/06 23:13:24 UTC
Multiple selectors in a fileset
I have the following script which creates a jar file including a set of files.But the same set of files needs to be excluded in another jar file.So, I thought it would be a better option to specify
the criteria as a selector .
<selector id="docBANK.selector.servlet.classes" >
<filename name="**/servlet/**" />
</selector>
<target name="generateAppJars" >
<jar destfile="${proj.java.library.dir}/${proj.MLDMS.jar.name}">
<fileset dir="${proj.working_folder}/ejb-temp/classes" includes="**/*.class">
<selector refid="proj.selector.dms.classes"/>
</fileset>
</jar>
</target>
But this keeps throwing an error "One and only one selector is allowed within the <select> tag".Any thoughts?
--Thanks
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Multiple selectors in a fileset
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 6 Nov 2002, Gopalakrishnan Narayanan <gn...@exchange.ml.com>
wrote:
> <fileset dir="${proj.working_folder}/ejb-temp/classes"
> includes="**/*.class">
> <selector refid="proj.selector.dms.classes"/>
> </fileset>
>
> But this keeps throwing an error "One and only one selector is
> allowed within the <select> tag".Any thoughts?
Without actually looking into the code, I think the includes attribute
of <fileset> is considered to be the second selector.
Does
<fileset dir="${proj.working_folder}/ejb-temp/classes">
<and>
<filename name="**/*.class"/>
<selector refid="proj.selector.dms.classes"/>
</and>
</fileset>
do what you want?
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>