ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16084] New: - <jar update="true" compress="false" ...> makes entire JAR uncompressed
Date Wed, 15 Jan 2003 00:03:16 GMT
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: ant-dev@jakarta.apache.org
        ReportedBy: chris_ingham@hp.com
                CC: chris_ingham@hp.com


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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message