diff --git a/docs/manual/CoreTasks/whichresource.html b/docs/manual/CoreTasks/whichresource.html
index 5e80c494e..c0303eb80 100644
--- a/docs/manual/CoreTasks/whichresource.html
+++ b/docs/manual/CoreTasks/whichresource.html
@@ -52,16 +52,18 @@
+
+
+
+
|
-
Parameters
|
-
@@ -73,65 +75,75 @@
Type
+ |
+
+ Requirement
|
-
+
+
- class
+ property
|
-
- name the class to look for
-
+ the property to fill with the URL of the resource or class
|
String
|
+
+ Required
+ |
-
+
+
+
- classpath
+ class
|
-
- Set the classpath to be used for this compilation.
-
+ name the class to look for
|
- Path
+ String
+ |
+
+ Exactly one of these two
|
- property
+ resource
|
-
- the property to fill with the URL of the resource or class
-
+ name the resource to look for
|
String
|
-
+
+
+
- resource
+ classpath
|
-
- name the resource to look for
-
+ Set the classpath to be used for this compilation.
|
- String
+ Path
+ |
+
+ Optional
|
+
|
@@ -158,10 +170,8 @@
Adds a path to the classpath.
-
-
-
-
+
+
|
diff --git a/src/main/org/apache/tools/ant/taskdefs/WhichResource.java b/src/main/org/apache/tools/ant/taskdefs/WhichResource.java
index 4c2d8b2e6..e8a2fc2b3 100644
--- a/src/main/org/apache/tools/ant/taskdefs/WhichResource.java
+++ b/src/main/org/apache/tools/ant/taskdefs/WhichResource.java
@@ -71,6 +71,8 @@ import java.net.URL;
* property="log4j.url" >
*
* @author steve loughran while stuck in Enumclaw, WA, with a broken down car
+ * @since Ant 1.6
+ * @ant.attribute.group name="oneof" description="Exactly one of these two"
*/
public class WhichResource extends Task {
/**
@@ -96,6 +98,7 @@ public class WhichResource extends Task {
/**
* Set the classpath to be used for this compilation.
+ * @param cp the classpath to be used.
*/
public void setClasspath(Path cp) {
if (classpath == null) {
@@ -107,6 +110,7 @@ public class WhichResource extends Task {
/**
* Adds a path to the classpath.
+ * @return a classpath to be configured.
*/
public Path createClasspath() {
if (classpath == null) {
@@ -183,7 +187,8 @@ public class WhichResource extends Task {
/**
* name the resource to look for
- * @param resource
+ * @param resource the name of the resource to look for.
+ * @ant.attribute group="oneof"
*/
public void setResource(String resource) {
this.resource = resource;
@@ -191,7 +196,8 @@ public class WhichResource extends Task {
/**
* name the class to look for
- * @param classname
+ * @param classname the name of the class to look for.
+ * @ant.attribute group="oneof"
*/
public void setClass(String classname) {
this.classname = classname;
@@ -199,7 +205,8 @@ public class WhichResource extends Task {
/**
* the property to fill with the URL of the resource or class
- * @param property
+ * @param property the property to be set.
+ * @ant.attribute group="required"
*/
public void setProperty(String property) {
this.property = property;