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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to