You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2001/04/04 20:13:44 UTC
[Bug 1216] New - Bug description: Outer$Inner.class does not get into the jar
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1216
*** shadow/1216 Wed Apr 4 11:13:44 2001
--- shadow/1216.tmp.2626 Wed Apr 4 11:13:44 2001
***************
*** 0 ****
--- 1,52 ----
+ +============================================================================+
+ | Bug description: Outer$Inner.class does not get into the jar |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1216 Product: Ant |
+ | Status: NEW Version: 1.3 |
+ | Resolution: Platform: PC |
+ | Severity: Major OS/Version: |
+ | Priority: Component: Core tasks |
+ +----------------------------------------------------------------------------+
+ | Assigned To: ant-dev@jakarta.apache.org |
+ | Reported By: jtfox@usa.net |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Ant version 1.3 compiled on March 2 2001
+
+ Class files of the form X$Y.Z (especially inner class files) do not get into
+ the jar file when I run a jar task with files explicitly mentioned
+ in "includes".
+
+ I have a full example (a directory's worth of files, including dummy files that
+ do/don't enter the jar)--I can send it to you, or access it at
+ http://www.joshuafox.com/ant_bug_example.zip
+
+ Here is build.xml:
+
+ <project name="simple" default="all" basedir=".">
+
+ <target name="compile" >
+ <javac srcdir="." destdir="." includes="*.java"/>
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar jarfile="jarjar.jar">
+ <!-- Bug description: Outer$Inner.class does not get
+ into the jar-->
+
+ <!-- I shoved various files into the "includes" list,
+ including zero-byte dummy files, to demonstrate that the jar task is capable of
+ including various types of files, but not files with name of the form D$E.F -->
+
+ <fileset dir="."
+ includes="Outer.class,Outer$Inner.class,DummyOuter.class,
+ DummyOuter$DummyInnerClassFile.class,ant.bat,build.xml,AAA$BBB.CCC,AAA"/>
+ </jar>
+ </target>
+
+ <target name="all" depends="jar" />
+
+ </project>