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=26976>.
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=26976

jar task with update="true" screws up manifest

           Summary: jar task with update="true" screws up manifest
           Product: Ant
           Version: 1.5.4
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When the jar task updates a jar task by inserting a new manifest, the manifest
of the resulting jar is screwed up: some lines are present two or three times.
If I do an aditional update on that resulting jar, some lines are even cut 
short. 

Attached is a .tar.gz demonstrating the problem. unpack the .tar.gz and run and
in the directory. Look at the manifest of the resulting test.jar. You see
something like:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.4
Created-By: 1.4.2_02-b03 (Sun Microsystems Inc.)
Class-Path: a-very-long-name-that-will-span-multiple-manifest-lines-in
 -the-generated-META-INF/MANIFEST.MF
Class-Path: a-very-long-name-that-will-span-multiple-manifest-lines-in
 -the-generated-META-INF/MANIFEST.MF
Class-Path: a-very-long-name-that-will-span-multiple-manifest-lines-in
 -the-generated-META-INF/MANIFEST.MF
 
Name: a subsection
A-Key: a-new-value
A-New-Key: a new value


Try experimenting with additional updates, you will start seeing entries that
are cut off and even more duplicates.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to