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=7552>. 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=7552 Invalid task cache in targets Summary: Invalid task cache in targets Product: Ant Version: 1.5 alpha (nightly) Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] <project name="test" default="foo"> <target name="bug"> <jar destfile="foo.jar"> <fileset dir="." includes="*.class"/> </jar> <delete file="foo.jar"/> </target> <target name="moo" depends="bug"/> <target name="foo" depends="bug"/> </project> I get the following error when I run "ant foo moo": BUILD FAILED /home/pkilroy/antbug/build.xml:4: You must specify the jar file to create! ================== [Conor] Agreed. This bug arises from the tendency of many tasks to change, in their execute method, the state setup by the core using IntrospectionHelper. In this case it is the cleanup() method of Zip.java. In fact the cleanup method was changed as part of bug 4366 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4366 I'm not sure I understand the original bug report but it is probably a symptom of the same problem, the changing of the filesets in the execute() method. The fix, however, almost guarantees that the instance cannot be reused. [...] I think that we need to perhaps examine how all tasks preserve their state as I'm sure this is not limited to the Zip task. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
