On 20 Jun 2002, Cloudor Pu <cloudor@etang.com> wrote:
> I want to make a patternset without file suffix and specify the
> suffix when using this patternset in different cases, say, <javac>,
> <copy>, <delete>, <jar> etc.
Something like this should do it (Ant 1.5):
<selector id="the stuff I want without extension">
<filename name="foo.*" />
...
</selector>
<selector id="java files">
<and>
<selector refid="the stuff I want without extension" />
<filename name="*.java" />
</and>
</selector>
<selector id="class files">
<and>
<selector refid="the stuff I want without extension" />
<filename name="*.class" />
</and>
</selector>
<javac ...>
<selector refid="java files" />
</javac>
<jar ...>
<selector refid="class files" />
</jar>
Stefan
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
|