You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by eh...@apache.org on 2002/07/09 20:49:49 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant AntClassLoader.java DynamicConfigurator.java ExitException.java IntrospectionHelper.java
ehatcher 2002/07/09 11:49:49
Modified: src/main/org/apache/tools/ant AntClassLoader.java
DynamicConfigurator.java ExitException.java
IntrospectionHelper.java
Log:
dIon's cleanup and doc patches. I put this on the HEAD branch so as to not touch 1.5 branch right before the release.
Revision Changes Path
1.55 +12 -11 jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.java
Index: AntClassLoader.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/AntClassLoader.java,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- AntClassLoader.java 22 Jun 2002 23:38:30 -0000 1.54
+++ AntClassLoader.java 9 Jul 2002 18:49:49 -0000 1.55
@@ -54,24 +54,25 @@
package org.apache.tools.ant;
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.io.InputStream;
import java.lang.reflect.Constructor;
-import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.net.MalformedURLException;
+import java.net.URL;
import java.util.Enumeration;
-import java.util.Vector;
import java.util.Hashtable;
-import java.util.zip.ZipFile;
+import java.util.Vector;
import java.util.zip.ZipEntry;
-import java.io.File;
-import java.io.InputStream;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.ByteArrayOutputStream;
-import java.net.URL;
-import java.net.MalformedURLException;
+import java.util.zip.ZipFile;
+
import org.apache.tools.ant.types.Path;
-import org.apache.tools.ant.util.LoaderUtils;
import org.apache.tools.ant.util.JavaEnvUtils;
+import org.apache.tools.ant.util.LoaderUtils;
/**
* Used to load classes within ant with a different claspath from
1.3 +15 -0 jakarta-ant/src/main/org/apache/tools/ant/DynamicConfigurator.java
Index: DynamicConfigurator.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/DynamicConfigurator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DynamicConfigurator.java 29 Apr 2002 16:49:39 -0000 1.2
+++ DynamicConfigurator.java 9 Jul 2002 18:49:49 -0000 1.3
@@ -61,8 +61,23 @@
* @since Ant 1.5
*/
public interface DynamicConfigurator {
+
+ /**
+ * Set a named attribute to the given value
+ *
+ * @param name the name of the attribute
+ * @param value the new value of the attribute
+ * @throws BuildException when any error occurs
+ */
public void setDynamicAttribute(String name, String value)
throws BuildException;
+ /**
+ * Create an element with the given name
+ *
+ * @param name the element nbame
+ * @throws BuildException when any error occurs
+ * @return the element created
+ */
public Object createDynamicElement(String name) throws BuildException;
}
1.6 +3 -1 jakarta-ant/src/main/org/apache/tools/ant/ExitException.java
Index: ExitException.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/ExitException.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ExitException.java 20 Feb 2002 14:54:28 -0000 1.5
+++ ExitException.java 9 Jul 2002 18:49:49 -0000 1.6
@@ -75,7 +75,9 @@
}
/**
- * @return the status code return via System.exit()
+ * The status code returned by System.exit()
+ *
+ * @return the status code returned by System.exit()
*/
public int getStatus() {
return status;
1.43 +38 -10 jakarta-ant/src/main/org/apache/tools/ant/IntrospectionHelper.java
Index: IntrospectionHelper.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/IntrospectionHelper.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- IntrospectionHelper.java 29 Apr 2002 16:47:00 -0000 1.42
+++ IntrospectionHelper.java 9 Jul 2002 18:49:49 -0000 1.43
@@ -55,13 +55,13 @@
package org.apache.tools.ant;
import org.apache.tools.ant.DynamicConfigurator;
-import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.types.EnumeratedAttribute;
+import org.apache.tools.ant.types.Path;
-import java.lang.reflect.Method;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Constructor;
import java.io.File;
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Locale;
@@ -890,16 +890,44 @@
helpers.clear();
}
- /** Empty implementation to satisfy the BuildListener interface. */
+ /**
+ * Empty implementation to satisfy the BuildListener interface.
+ * @param event Ignored in this implementation.
+ */
public void buildStarted(BuildEvent event) {}
- /** Empty implementation to satisfy the BuildListener interface. */
+
+ /**
+ * Empty implementation to satisfy the BuildListener interface.
+ *
+ * @param event Ignored in this implementation.
+ */
public void targetStarted(BuildEvent event) {}
- /** Empty implementation to satisfy the BuildListener interface. */
+
+ /**
+ * Empty implementation to satisfy the BuildListener interface.
+ *
+ * @param event Ignored in this implementation.
+ */
public void targetFinished(BuildEvent event) {}
- /** Empty implementation to satisfy the BuildListener interface. */
+
+ /**
+ * Empty implementation to satisfy the BuildListener interface.
+ *
+ * @param event Ignored in this implementation.
+ */
public void taskStarted(BuildEvent event) {}
- /** Empty implementation to satisfy the BuildListener interface. */
+
+ /**
+ * Empty implementation to satisfy the BuildListener interface.
+ *
+ * @param event Ignored in this implementation.
+ */
public void taskFinished(BuildEvent event) {}
- /** Empty implementation to satisfy the BuildListener interface. */
+
+ /**
+ * Empty implementation to satisfy the BuildListener interface.
+ *
+ * @param event Ignored in this implementation.
+ */
public void messageLogged(BuildEvent event) {}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>