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 5612] New: - jar task doesn't jar explicitly listed inner classes
Date Fri, 28 Dec 2001 21:58:18 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=5612>.
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=5612

jar task doesn't jar explicitly listed inner classes

           Summary: jar task doesn't jar explicitly listed inner classes
           Product: Ant
           Version: 1.4.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: sean@openmake.com


Classes that contain a '$' in the name are not getting jarred up.  Working with 
the JDK Metalworks example.  Specifying wildcards works fine, of course, in our 
case we will need tight control over the inner classes going into the jar and 
wish to list them explicitly rather than chance the wildcard.

build.xml that jars all classes except those with '$'
***********************************************************8
<project name = "METALWORKS" default = "jar" basedir = ".">
<!-- Set properties -->
<!--   ignore the classpath that Ant is running under -->
<property name = "build.sysclasspath" value = "ignore" />
<property name = "src" value = "." />
<property name = "build" value = "." />
<!-- Start compile section -->
<target  name = "jar">
<jar basedir = "${build}" jarfile = "metalworks.jar">
<include name = "HelpFiles\credits.html" />
 <include name = "HelpFiles\metal.html" />
 <include name = "HelpFiles\metalworks.html" />
 <include name = "HelpFiles\swing.html" />
 <include name = "HelpFiles\toc.html" />
 <include name = "IMAGES\palette_crop.gif" />
 <include name = "IMAGES\palette_draw.gif" />
 <include name = "IMAGES\palette_hand.gif" />
 <include name = "IMAGES\palette_select.gif" />
 <include name = "IMAGES\palette_text.gif" />
 <include name = "IMAGES\palette_zoom.gif" />
 <include name = "AquaMetalTheme.class" />
 <include name = "BigContrastMetalTheme.class" />
 <include name = "ContrastMetalTheme.class" />
 <include name = "DemoMetalTheme.class" />
 <include name = "GreenMetalTheme.class" />
 <include name = "KhakiMetalTheme.class" />
 <include name = "MetalThemeMenu.class" />
 <include name = "Metalworks.class" />
 <include name = "MetalworksDocumentFrame$LabeledPairLayout.class" />
 <include name = "MetalworksDocumentFrame.class" />
 <include name = "MetalworksFrame$1.class" />
 <include name = "MetalworksFrame$10.class" />
 <include name = "MetalworksFrame$11.class" />
 <include name = "MetalworksFrame$2.class" />
 <include name = "MetalworksFrame$3.class" />
 <include name = "MetalworksFrame$4.class" />
 <include name = "MetalworksFrame$5.class" />
 <include name = "MetalworksFrame$6.class" />
 <include name = "MetalworksFrame$7.class" />
 <include name = "MetalworksFrame$8.class" />
 <include name = "MetalworksFrame$9.class" />
 <include name = "MetalworksFrame.class" />
 <include name = "MetalworksHelp.class" />
 <include name = "MetalworksInBox.class" />
 <include name = "MetalworksPrefs$1.class" />
 <include name = "MetalworksPrefs$2.class" />
 <include name = "MetalworksPrefs.class" />
 <include name = "PropertiesMetalTheme.class" />
 <include name = "UISwitchListener.class" />
</jar>
</target>
<!-- End the project -->
</project>
************************
WORKS

<project name = "METALWORKS" default = "jar" basedir = ".">
<!-- Set properties -->
<!--   ignore the classpath that Ant is running under -->
<property name = "build.sysclasspath" value = "ignore" />
<property name = "src" value = "." />
<property name = "build" value = "." />
<!-- Start compile section -->
<target  name = "jar">
<jar basedir = "${build}" jarfile = "metalworks.jar">
<include name = "HelpFiles\credits.html" />
 <include name = "HelpFiles\metal.html" />
 <include name = "HelpFiles\metalworks.html" />
 <include name = "HelpFiles\swing.html" />
 <include name = "HelpFiles\toc.html" />
 <include name = "IMAGES\palette_crop.gif" />
 <include name = "IMAGES\palette_draw.gif" />
 <include name = "IMAGES\palette_hand.gif" />
 <include name = "IMAGES\palette_select.gif" />
 <include name = "IMAGES\palette_text.gif" />
 <include name = "IMAGES\palette_zoom.gif" />
 <include name = "AquaMetalTheme.class" />
 <include name = "BigContrastMetalTheme.class" />
 <include name = "ContrastMetalTheme.class" />
 <include name = "DemoMetalTheme.class" />
 <include name = "GreenMetalTheme.class" />
 <include name = "KhakiMetalTheme.class" />
 <include name = "MetalThemeMenu.class" />
 <include name = "Metalworks.class" />
 <include name = "MetalworksDocumentFrame*.class" />
 <include name = "MetalworksFrame*.class" />
 <include name = "MetalworksHelp.class" />
 <include name = "MetalworksInBox.class" />
 <include name = "MetalworksPrefs*.class" />
 <include name = "PropertiesMetalTheme.class" />
 <include name = "UISwitchListener.class" />
</jar>
</target>
<!-- End the project -->
</project>

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