ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1216] New - Bug description: Outer$Inner.class does not get into the jar
Date Wed, 04 Apr 2001 18:13:44 GMT
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>

Mime
View raw message