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

<jar update="true" compress="false" ...> makes entire JAR uncompressed

           Summary: <jar update="true" compress="false" ...> makes entire
                    JAR uncompressed
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


I'd like to add and/or udpate a single file in a JAR in such a way that that 
file has zero compression, but the rest of the JAR is compressed normally.

My use case is the file META-INF/what, which contains "@(#)" strings read by 
the UNIX what command, but only if they're uncompressed.

I can do this with the "jar" command as follows:

jar uf0 existing.jar META-INF/what

But unfortunately, Ant's <jar> task rebuilds the entire JAR with no compression 
when the attributes update="true" and compress="false" are both used.

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

Reply via email to