From 1d7d78ea0d2fbba2ebe52f23adcb7e736bb1719c Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 10 Apr 2002 10:02:54 +0000 Subject: [PATCH] Bug 7552 auditing of - reset cache of visited elements at the end of execute. Add typedef to the child elements of project. Fix some docs. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@272334 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/ant.html | 4 +++- docs/manual/CoreTasks/antstructure.html | 9 +++++---- .../apache/tools/ant/taskdefs/AntStructure.java | 16 +++++++++++++++- 3 files changed, 23 insertions(+), 6 deletions(-) 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("