costin 02/05/23 09:36:10
Modified: src/main/org/apache/tools/ant Tag: ANT_15_BRANCH Task.java
Log:
Since nobody objected, I commit the change to make
setRuntimeConfigurableWrapper
public.
AFAIK there is no other way to allow a ProjectHelper to use a different
RuntimeConfigurable. An example use is in the SAX2 ProjectHelper. Without
this change the new RuntimeConfigurable would have to be in o.a.t.ant package.
Revision Changes Path
No revision
No revision
1.27.2.1 +5 -1 jakarta-ant/src/main/org/apache/tools/ant/Task.java
Index: Task.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Task.java,v
retrieving revision 1.27
retrieving revision 1.27.2.1
diff -u -r1.27 -r1.27.2.1
--- Task.java 9 Apr 2002 15:27:08 -0000 1.27
+++ Task.java 23 May 2002 16:36:10 -0000 1.27.2.1
@@ -226,13 +226,17 @@
/**
* Sets the wrapper to be used for runtime configuration.
+ *
+ * This method should be used only by the ProjectHelper and ant
internals.
+ * It is public to allow helper plugins to operate on tasks, normal tasks
+ * should never use it.
*
* @param wrapper The wrapper to be used for runtime configuration.
* May be <code>null</code>, in which case the next call
* to getRuntimeConfigurableWrapper will generate a new
* wrapper.
*/
- protected void setRuntimeConfigurableWrapper(RuntimeConfigurable
wrapper) {
+ public void setRuntimeConfigurableWrapper(RuntimeConfigurable wrapper) {
this.wrapper = wrapper;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>