ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r783050 - in /ant/core/trunk: ./ docs/manual/CoreTasks/ docs/manual/CoreTypes/ src/main/org/apache/tools/ant/types/optional/
Date Tue, 09 Jun 2009 15:48:29 GMT
Author: bodewig
Date: Tue Jun  9 15:48:29 2009
New Revision: 783050

URL: http://svn.apache.org/viewvc?rev=783050&view=rev
Log:
really add setbeans attribute to scriptmapper/filter/condition.  PR 47336

Modified:
    ant/core/trunk/WHATSNEW
    ant/core/trunk/docs/manual/CoreTasks/conditions.html
    ant/core/trunk/docs/manual/CoreTypes/filterchain.html
    ant/core/trunk/docs/manual/CoreTypes/mapper.html
    ant/core/trunk/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
    ant/core/trunk/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java

Modified: ant/core/trunk/WHATSNEW
URL: http://svn.apache.org/viewvc/ant/core/trunk/WHATSNEW?rev=783050&r1=783049&r2=783050&view=diff
==============================================================================
--- ant/core/trunk/WHATSNEW (original)
+++ ant/core/trunk/WHATSNEW Tue Jun  9 15:48:29 2009
@@ -375,6 +375,10 @@
    filter ended with a begin token.
    Bugzilla Report 47306.
 
+ * <scriptmapper>, <scriptfilter> and <scriptcondition> didn't support
+   the setbeans attribute.
+   Bugzilla Report 47336.
+
 Other changes:
 --------------
  * A HostInfo task was added performing information on hosts, including info on 

Modified: ant/core/trunk/docs/manual/CoreTasks/conditions.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/conditions.html?rev=783050&r1=783049&r2=783050&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/conditions.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/conditions.html Tue Jun  9 15:48:29 2009
@@ -513,7 +513,7 @@
   <tr>
     <td valign="top">setbeans</td>
     <td valign="top">whether to have all properties, references and targets as
-      global variables in the script.</td>
+      global variables in the script.  <em>since Ant 1.8.0</em></td>
     <td valign="top" align="center">No, default is "true".</td>
   </tr>
   <tr>

Modified: ant/core/trunk/docs/manual/CoreTypes/filterchain.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTypes/filterchain.html?rev=783050&r1=783049&r2=783050&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTypes/filterchain.html (original)
+++ ant/core/trunk/docs/manual/CoreTypes/filterchain.html Tue Jun  9 15:48:29 2009
@@ -1400,7 +1400,7 @@
   <tr>
     <td valign="top">setbeans</td>
     <td valign="top">whether to have all properties, references and targets as
-      global variables in the script.</td>
+      global variables in the script.  <em>since Ant 1.8.0</em></td>
     <td valign="top" align="center">No, default is "true".</td>
   </tr>
   <tr>

Modified: ant/core/trunk/docs/manual/CoreTypes/mapper.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTypes/mapper.html?rev=783050&r1=783049&r2=783050&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTypes/mapper.html (original)
+++ ant/core/trunk/docs/manual/CoreTypes/mapper.html Tue Jun  9 15:48:29 2009
@@ -799,7 +799,7 @@
     <tr>
       <td valign="top">setbeans</td>
       <td valign="top">whether to have all properties, references and targets as
-        global variables in the script.</td>
+        global variables in the script.  <em>since Ant 1.8.0</em></td>
       <td valign="top" align="center">No, default is "true".</td>
     </tr>
     <tr>

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java?rev=783050&r1=783049&r2=783050&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
Tue Jun  9 15:48:29 2009
@@ -141,4 +141,19 @@
     protected void executeScript(String execName) {
         getRunner().executeScript(execName);
     }
+
+    /**
+     * Set the setbeans attribute.
+     * If this is true, &lt;script&gt; will create variables in the
+     * script instance for all
+     * properties, targets and references of the current project.
+     * It this is false, only the project and self variables will
+     * be set.
+     * The default is true.
+     * @param setBeans the value to set.
+     * @since Ant 1.8.0
+     */
+    public void setSetBeans(boolean setBeans) {
+        helper.setSetBeans(setBeans);
+    }
 }

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java?rev=783050&r1=783049&r2=783050&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java Tue Jun
 9 15:48:29 2009
@@ -165,4 +165,18 @@
         helper.setClasspathRef(r);
     }
 
+    /**
+     * Set the setbeans attribute.
+     * If this is true, &lt;script&gt; will create variables in the
+     * script instance for all
+     * properties, targets and references of the current project.
+     * It this is false, only the project and self variables will
+     * be set.
+     * The default is true.
+     * @param setBeans the value to set.
+     * @since Ant 1.8.0
+     */
+    public void setSetBeans(boolean setBeans) {
+        helper.setSetBeans(setBeans);
+    }
 }



Mime
View raw message