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] New: - jar task includes unnecessary files in the created jar
Date Wed, 06 Feb 2002 18:26:39 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

           Summary: jar task includes unnecessary files in the created jar
           Product: Ant
           Version: 1.4.1
          Platform: All
        OS/Version: AIX
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: sowjanya.paruchuri@verizon.com


The Ant jar task includes unnecessary files in the jar. Here is the example

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

Ideally this should include only Test1.class and Test2.class in the jar file 
and exclude any other class file present in ${CLASSDIR}.

But using ant 1.4.1, this task includes ALL classes under ${CLASSDIR} into the 
jar file. This works fine using ant 1.3.

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