ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Rauch <>
Subject Using <fileset> in <jar>
Date Tue, 16 Apr 2002 07:17:38 GMT

I'm trying to use the <fileset> element in a <jar> element in order to
reference things that I declared globally in my build.xml file in a
<fileset> element. To be more precise:

<patternset id="all-icons">
    <include name="${empic.src}/**/*.jpg"/>
    <include name="${empic.src}/**/images/*.gif"/>

  <patternset id="all-i18n">
    <include name="${empic.src}/**/*.properties"/>
    <include name="${empic.src}/**/combo_values.txt"/>

  <fileset id="all-resources" dir="${empic.src}">
    <patternset refid="all-icons"></patternset>
    <patternset refid="all-i18n"></patternset>

(These are all defined globally). In order to create the JAR file I use:

<target name="allapps">
    <copy todir="${empic.bin}">
      <fileset refid="all-resources"></fileset>
    <jar jarfile="${allapps.path}/allapps.jar" basedir="${empic.bin}">
      <include name="**/*.class"/>
      <fileset refid="all-resources"></fileset>
      <exclude name="global.ex"/>

The <fileset refid=...> doesn't work as I would expect it - including the
stuff referenced by the refid attribute. What am I doing wrong here?

Any help will be greatly appreciated! Thanks in advance!



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message