ant-user mailing list archives

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

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>

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

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

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

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!

Greetings,

	Holger



--
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