diff --git a/docs/manual/CoreTasks/ant.html b/docs/manual/CoreTasks/ant.html index c61721491..4e84cc577 100644 --- a/docs/manual/CoreTasks/ant.html +++ b/docs/manual/CoreTasks/ant.html @@ -67,7 +67,9 @@ project.

output - Filename to write the ant output to. + Filename to write the ant output to. This is + relative to the value of the dir attribute if it has been set or + to the base directory of the current project otherwise. No diff --git a/docs/manual/CoreTasks/antstructure.html b/docs/manual/CoreTasks/antstructure.html index 90670a35f..257dc117e 100644 --- a/docs/manual/CoreTasks/antstructure.html +++ b/docs/manual/CoreTasks/antstructure.html @@ -13,9 +13,10 @@ about all tasks currently known to Ant.

Note that the DTD generated by this task is incomplete, you can always add XML entities using <taskdef>. See here for -a way to get around this problem.

+href="taskdef.html"><taskdef> or <typedef>. See here for a way to get around this problem.

This task doesn't know about required attributes, all will be listed as #IMPLIED.

Parameters

@@ -35,7 +36,7 @@ listed as #IMPLIED.

 <antstructure output="project.dtd"/>
 
-

Copyright © 2001 Apache Software Foundation. All rights +


Copyright © 2001-2002 Apache Software Foundation. All rights Reserved.

diff --git a/src/main/org/apache/tools/ant/taskdefs/AntStructure.java b/src/main/org/apache/tools/ant/taskdefs/AntStructure.java index a1833a799..3996a7225 100644 --- a/src/main/org/apache/tools/ant/taskdefs/AntStructure.java +++ b/src/main/org/apache/tools/ant/taskdefs/AntStructure.java @@ -149,9 +149,16 @@ public class AntStructure extends Task { if (out != null) { out.close(); } + visited.clear(); } } + /** + * Prints the header of the generated output. + * + *

Basically this prints the XML declaration, defines some + * entities and the project element.

+ */ private void printHead(PrintWriter out, Enumeration tasks, Enumeration types) { out.println(""); @@ -183,7 +190,8 @@ public class AntStructure extends Task { out.println(""); - out.print(""); out.println("