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 9713] New: - Use of <manifest> inside <jar> causes jars to be re-built every build
Date Fri, 07 Jun 2002 23:32:08 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=9713>.
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=9713

Use of <manifest> inside <jar> causes jars to be re-built every build

           Summary: Use of <manifest> inside <jar> causes jars to be re-
                    built every build
           Product: Ant
           Version: 1.5Beta2
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: garrick.olson@aceva.com


Here is a sample build file:

<?xml version="1.0" encoding="UTF-8"?>
<project name="TestProject" default="test" basedir=".">
    <target name="test">
<!-- This seems to be okay
        <manifest file="manifest.mf">
            <attribute name="Class-Path" value="xyz.jar"/>
        </manifest>
        <jar jarfile="test.jar" manifest="manifest.mf">
-->
        <jar jarfile="test.jar">
<!-- This causes the jar to be re-created every time -->
            <manifest>
                <attribute name="Class-Path" value="xyz.jar"/>
            </manifest>
<!-- -->
            <fileset dir=".">
                <include name="junk.txt"/>
            </fileset>
        </jar>
    </target>
</project>

When I invoke this script repeatedly, the jar gets built every time.  Note this 
seems to be a problem with the <jar> task, because using the <manifest> task 
seems to correctly notice nothing changed, and does not re-build the jar.

This seems to be working correctly in 1.4Beta1, and fails in 1.5Beta1 and 
1.5Beta2.

--
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