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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
