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=26310>. 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=26310 Ant 1.6 and XDoclet 1.2 "destDir attribute must be present." error ------- Additional Comments From [EMAIL PROTECTED] 2004-02-11 15:02 ------- In general ant may call the execute() method of ant tasks multiple times. In your build script, the doclet task instance is created on the first run of the default target. In a finally clause of the doclet task, the destDir is set to null - this breaks the undocumented ant task life cycle. So this is a problem with the doclet task (not present in xdoclet1.1). The reason you did not see this in ant 1.5 is that there is a typedef of doclet just before the use of the doclet. In ant 1.5, this will cause the current task instance to be "invalidated" and a new task instance will be created. For some reason (most likely a bug), this does not happen in ant 1.6. The following build script shows the same "destDir attribute must be present" error on ant 1.5 and ant 1.6: <project name="AntXdocletTest" default="default"> <path id="main.classpath"> <fileset dir="${user.home}/apps/xdoclet-1.2/lib"> <include name="**/*.jar"/> </fileset> </path> <taskdef name="doclet" classname="xdoclet.DocletTask" classpathref="main.classpath"/> <target name="default"> <doclet destDir="${basedir}"> <fileset file="${basedir}/testbuild.xml"/> </doclet> </target> </project> > ant -f xdoclet.xml default default Leaving open while checking the "invalidate task" issue. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]