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 inconsistencies: http://java.sun.com/j2se/1.4/docs/guide/jar/jar.html http://java.sun.com/j2se/1.3/docs/guide/extensions/spec.html http://java.sun.com/docs/books/tutorial/ext/basics/download.html http://developer.java.sun.com/developer/bugParade/bugs/4295946.html http://developer.java.sun.com/developer/bugParade/bugs/4245700.html The PR that was closed by this fix is at: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4683 Hope this helps. Please note that Ant treats Class-Path alone as a special case. Thanks, Magesh 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. > http://java.sun.com/docs/books/tutorial/ext/basics/downl- > 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: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
