ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6282] - jar task includes unnecessary files in the created jar
Date Thu, 07 Feb 2002 06:48:52 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6282>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6282

jar task includes unnecessary files in the created jar





------- Additional Comments From bodewig@apache.org  2002-02-07 06:48 -------
I think what you really want it to drop both the basedir and the excludes
attributes:

<jar jarfile="app.jar">
  <fileset dir="${CLASSDIR}">
    <patternset>
      <include name="com/mypackage/Test1.class"/>
      <include name="com/mypackage/Test2.class"/>
    </patternset>
  </fileset>
</jar>

basedir adds another fileset implicitly - and this one is the one that is
adding all the files you don't want to see.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message