ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r416163 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java
Date Wed, 21 Jun 2006 23:14:37 GMT
Author: stevel
Date: Wed Jun 21 16:14:36 2006
New Revision: 416163

URL: http://svn.apache.org/viewvc?rev=416163&view=rev
Log:
lets evaluate properties inline. Incidentally, <scriptdef> and the like Do Not do this.
Too late to change now, probably.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java?rev=416163&r1=416162&r2=416163&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/script/ScriptDefBase.java
Wed Jun 21 16:14:36 2006
@@ -46,7 +46,7 @@
      * control to it
      */
     public void execute() {
-        getScript().executeScript(attributes, nestedElementMap,this);
+        getScript().executeScript(attributes, nestedElementMap, this);
     }
 
     private ScriptDef getScript() {
@@ -104,7 +104,7 @@
      * @since ant1.7
      */
     public void addText(String text) {
-        this.text=text;
+        this.text=getProject().replaceProperties(text);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message