ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Pokahr <>
Subject Re: <include> patterns in jar task
Date Sat, 14 Oct 2000 18:47:56 GMT
>> Is specifying multiple patterns in one tag no
>> longer supported? (can't see it in the docs)
> No, but you should use a patternset now. Replace the <include> tag
> with the following:
>  <patternset>
>    <include name="**/*.gif" />
>    <include name="**/*.class" />
>  </patternset>

As i said, specifying one pattern per tag did work,
but i used a property for the files to include like

  <include name="${jar.files}" />

with jar.files being "**/*.class **/*.properties **/*.gif **/*.ser"
on default, but i could run ant with "-Djar.files=**/*.class"
when i wanted a small jar file containing only the classes
and not the support files.

How would i do this with 1.2 ?


View raw message