ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18484] - Please add parameters into <script> task.
Date Thu, 03 Apr 2003 18:06:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18484>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18484

Please add parameters into <script> task.





------- Additional Comments From j_a_fernandez@yahoo.com  2003-04-03 18:06 -------
It would be nice if the <script> task where to accept <param> and <refid>
attributes whose name define a variable available directly in the script.

Today you can get do the same thing using something like:

   <antcall target="scriptdef">
     <param name="var1" value="...."/>
   </antcall>

   <target name="scriptdef">
     <script>
        println(var1);
     </script>
   </target>

Yes properties with names that match java identifiers are readily available
to the script as variables. Same for references.

The only problem is that given inmutability it is dificult to reuse a script
library.

Mime
View raw message