ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: [ant]how to use <mapper> and <patternset> in <javac>?
Date Thu, 20 Jun 2002 09:07:13 GMT
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>


Mime
View raw message