Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@jakarta.apache.org Received: (qmail 25241 invoked by uid 500); 25 Aug 2001 09:53:52 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: ant-dev@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 25232 invoked from network); 25 Aug 2001 09:53:52 -0000 Date: 25 Aug 2001 09:53:57 -0000 Message-ID: <20010825095357.29509.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: ant-dev@jakarta.apache.org Cc: Subject: [DO NOT REPLY: Bug 3271] New: Jar task ignores first line of manifest X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3271 *** shadow/3271 Sat Aug 25 02:53:56 2001 --- shadow/3271.tmp.29506 Sat Aug 25 02:53:56 2001 *************** *** 0 **** --- 1,17 ---- + +============================================================================+ + | Jar task ignores first line of manifest | + +----------------------------------------------------------------------------+ + | Bug #: 3271 Product: Ant | + | Status: NEW Version: 1.4Beta2 | + | Resolution: Platform: All | + | Severity: Normal OS/Version: All | + | Priority: Other Component: Core tasks | + +----------------------------------------------------------------------------+ + | Assigned To: ant-dev@jakarta.apache.org | + | Reported By: alan_moore@gmx.net | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + I passed the Jar task a manifest file consisting of a single line specifying the "Main-Class" attribute, but the manifest that was written to the jar file was merely Ant's default manifest, with its "Manifest-Version" and "Created-By" attributes. There were no error messages; it just seemed to ignore my manifest file. The problem is that the constructor for the Manifest class starts out by reading the first line of the manifest file, but never does anything with it. This is okay if the first line contains the "Manifest-Version" attribute, since the class supplies a default value to replace the dropped line. But I can't believe this is the intended behavior; the "Manifest-Version" attribute has to be in the first line if it's present at all, but it is NOT required.