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 31410] New: - build.number forces jars to always rebuild
Date Fri, 24 Sep 2004 16:17:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31410>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31410

build.number forces jars to always rebuild

           Summary: build.number forces jars to always rebuild
           Product: Ant
           Version: 1.6.2
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: mthornton@optrak.co.uk


Using {build.number} in the manifest of a jar file (e.g. in the Implementation-
Version attribute) causes that jar file to always rebuild even if nothing else 
has changed.
I have created a modified version of the Jar task with two changes:
1. Manifest comparison ignores the most minor component of the Implementation-
Version attribute. Actually it strips off any trailing digits until it reaches 
the last non digit character in the version and then compares what is left. 
This means that more significant changes in the version do still result in a 
new jar file.

2. If the Implementation-Version attribute of the proposed new manifest 
exists, and ends with "{build}", then {build} is replaced by a build number. 
If there is an existing jar file and the prefix of the Implementation-Version 
matches the new one, then the build number is one more than the old value, 
otherwise the build number is 1.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message