joerg 2003/10/14 15:27:16
Modified: src/java/org/apache/cocoon CocoonTask.java
Log:
clean up
please have a look at "public void execute()": it has an unused err and a
return code handling, but I guess this can be removed completely
Revision Changes Path
1.2 +12 -17 cocoon-2.1/src/java/org/apache/cocoon/CocoonTask.java
Index: CocoonTask.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/CocoonTask.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CocoonTask.java 13 Oct 2003 12:08:10 -0000 1.1
+++ CocoonTask.java 14 Oct 2003 22:27:16 -0000 1.2
@@ -50,6 +50,14 @@
*/
package org.apache.cocoon;
+import java.io.File;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+
import org.apache.tools.ant.AntClassLoader;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.DynamicConfigurator;
@@ -60,20 +68,10 @@
import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.types.Reference;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-
-import javax.xml.parsers.DocumentBuilder;
-import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.parsers.ParserConfigurationException;
-
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
-import org.w3c.dom.Element;
-import org.w3c.dom.Document;
/**
* Ant task for running Cocoon. Allows for the embedding of Cocoon into
@@ -85,11 +83,8 @@
private CommandlineJava cmdl = new CommandlineJava();
private boolean failOnError = false;
- private Method method = null;
private Throwable caught = null;
-
- private ArrayList uris = new ArrayList();
-
+
private String uriGroup = null;
private Document xconf;
private Element root;