ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <>
Subject RE: jar task bug?? It is..
Date Thu, 20 Dec 2001 19:11:42 GMT

Ant 1.5Alpha has the necessary fix to allow multiple
Class-Path attributes to exist in the Manifest file.
The Jar Specification and Manifest Specification by Sun
are inconsistent.  These links will show the

The PR that was closed by this fix is at:

Hope this helps.  Please note that Ant treats Class-Path 
alone as a special case.


On Fri, 21 Dec 2001 Mallampati, Suresh wrote :
> Hi,
> According to the java spec, the manifest entry has two 
> parts: the main
> section and the file section. The class-path entry is 
> part of the main
> section. And the snippets you guys have attached is for 
> file entries
> section.
> Name: fileName
> entry: com
> entry : com/mypackage
> In this case, the first entry is ignored. But according 
> to the spec, this is
> not the desired behavior for Main section entries. So 
> this infact is a bug.
> If you guys have any questions regarding this, please 
> refer to the java
> tutorial on extension mechansim.
> oad.html
> <snips from jar file spec>
> 1. A JAR file manifest consists of a "main section" 
> followed by a list of
> sections for individual "JAR file entries", each 
> separated by a newline.
> Both the main section and individual sections follow 
> the section syntax
> specified above. They each have their own specific 
> restrictions and rules. 
> 2. If there are multiple individual sections for the 
> same file entry, the
> attributes in these sections are merged. If a certain 
> attribute have
> different values in different sections, the last one is 
> recognized. 
> NOTE**: this refers to file entries and not main 
> entries..
> <snips from jar file specs>
> 	Please let me know your comments on this
> Thanks
> -Suresh


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message