From 2bbab902a590bd474d9d4b20f763c3c9f0cd686e Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sun, 16 Dec 2001 05:05:07 +0000 Subject: [PATCH] Commented out use of IntrospectionHelper as that violates Container-task relationship. WIll need to be reworked significantly in Ant2. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270192 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/taskdefs/AntStructure.java | 13 ++++--------- .../org/apache/tools/ant/taskdefs/AntStructure.java | 13 ++++--------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/AntStructure.java b/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/AntStructure.java index a6a487755..a89933ea6 100644 --- a/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/AntStructure.java +++ b/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/AntStructure.java @@ -16,12 +16,8 @@ import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.Enumeration; import java.util.Hashtable; -import java.util.Vector; import org.apache.myrmidon.api.TaskException; -import org.apache.tools.ant.IntrospectionHelper; import org.apache.tools.ant.Task; -import org.apache.tools.ant.TaskContainer; -import org.apache.tools.ant.types.EnumeratedAttribute; /** * Creates a partial DTD for Ant from the currently known tasks. @@ -170,6 +166,7 @@ public class AntStructure extends Task } visited.put( name, "" ); + /* IntrospectionHelper ih = null; try { @@ -177,11 +174,8 @@ public class AntStructure extends Task } catch( Throwable t ) { - /* - * XXX - failed to load the class properly. - * - * should we print a warning here? - */ + // FIXME: failed to load the class properly. + // should we print a warning here? return; } @@ -318,6 +312,7 @@ public class AntStructure extends Task printElementDecl( out, nestedName, ih.getElementType( nestedName ) ); } } + */ } private void printHead( PrintWriter out, Enumeration tasks, diff --git a/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/AntStructure.java b/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/AntStructure.java index a6a487755..a89933ea6 100644 --- a/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/AntStructure.java +++ b/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/AntStructure.java @@ -16,12 +16,8 @@ import java.io.PrintWriter; import java.io.UnsupportedEncodingException; import java.util.Enumeration; import java.util.Hashtable; -import java.util.Vector; import org.apache.myrmidon.api.TaskException; -import org.apache.tools.ant.IntrospectionHelper; import org.apache.tools.ant.Task; -import org.apache.tools.ant.TaskContainer; -import org.apache.tools.ant.types.EnumeratedAttribute; /** * Creates a partial DTD for Ant from the currently known tasks. @@ -170,6 +166,7 @@ public class AntStructure extends Task } visited.put( name, "" ); + /* IntrospectionHelper ih = null; try { @@ -177,11 +174,8 @@ public class AntStructure extends Task } catch( Throwable t ) { - /* - * XXX - failed to load the class properly. - * - * should we print a warning here? - */ + // FIXME: failed to load the class properly. + // should we print a warning here? return; } @@ -318,6 +312,7 @@ public class AntStructure extends Task printElementDecl( out, nestedName, ih.getElementType( nestedName ) ); } } + */ } private void printHead( PrintWriter out, Enumeration tasks,