conor 2003/07/20 03:01:27
Modified: src/main/org/apache/tools/ant/launch Locator.java
src/main/org/apache/tools/ant/taskdefs/optional/script
ScriptDefBase.java
Log:
Some javadoc'ing
Revision Changes Path
1.5 +15 -4 ant/src/main/org/apache/tools/ant/launch/Locator.java
Index: Locator.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/launch/Locator.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -u -r1.4 -r1.5
--- Locator.java 16 Jul 2003 10:43:11 -0000 1.4
+++ Locator.java 20 Jul 2003 10:01:27 -0000 1.5
@@ -68,12 +68,19 @@
* @author Conor MacNeill
* @since Ant 1.6
*/
-public class Locator {
+public final class Locator {
+ /**
+ * Not instantiable
+ */
+ private Locator() {
+ }
/**
* Find the directory or jar file the class has been loaded from.
*
- * @return null if we cannot determine the location.
+ * @param c the class whose location is required.
+ * @return the file or jar with the class or null if we cannot
+ * determine the location.
*
* @since Ant 1.6
*/
@@ -83,9 +90,13 @@
}
/**
- * Find the directory or a give resource has been loaded from.
+ * Find the directory or jar a give resource has been loaded from.
+ *
+ * @param c the classloader to be consulted for the source
+ * @param resource the resource whose location is required.
*
- * @return null if we cannot determine the location.
+ * @return the file with the resource source or null if
+ * we cannot determine the location.
*
* @since Ant 1.6
*/
1.4 +11 -0
ant/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java
Index: ScriptDefBase.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -u -r1.3 -r1.4
--- ScriptDefBase.java 4 Jul 2003 14:04:55 -0000 1.3
+++ ScriptDefBase.java 20 Jul 2003 10:01:27 -0000 1.4
@@ -102,6 +102,11 @@
return definition;
}
+ /**
+ * Create a nested element
+ *
+ * @param name the nested element name
+ */
public Object createDynamicElement(String name) {
List nestedElementList = (List) nestedElementMap.get(name);
if (nestedElementList == null) {
@@ -113,6 +118,12 @@
return element;
}
+ /**
+ * Set a task attribute
+ *
+ * @param name the attribute name.
+ * @param value the attribute's string value
+ */
public void setDynamicAttribute(String name, String value) {
ScriptDef definition = getScript();
if (!definition.isAttributeSupported(name)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]