ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Burton" <>
Subject Re: new *optional* scripting taskdef
Date Mon, 20 Mar 2000 00:36:12 GMT wrote:
> OK, I've taken the plunge.  I've committed a scripting task to Ant.
> If you like, think of it as a revolution.  It is in a separate
> subdirectory, and it is not included in the bootstrap or included in the
> Ant build by default.
> Or, if you prefer, think of it as a first step towards moving the non-core
> tasks out of the "minimalist" version of Ant.  Perhaps someday, we will
> have two separate Jars.
> In any case, below I've included a working script.  It doesn't do anything
> useful, but it does give an indication of what is possible.
>    <?xml version="1.0"?>
>    <project name="test" default="main">
>      <target name="main">
>         <property name="welcome" value="from BSF!" />
>         <echo message="hi there" id="echoTask"/>
>         <script language="javascript">
>            echoTask.setMessage(welcome)
>            echoTask.execute()
>         </script>
>      </target>
>    </project>
> - Sam Ruby

Cool!  +1

I like it.  I would like to see something like this taken into more of a
global XML approach though.  Example.  XSLT if/for logic is stupid IMO. 
XSP/Cocoon 2.0 will probably fix this.  Though this would be too big an
optional task :)


Kevin A Burton (
Message to SUN:  "Please Open Source Java!"
"For evil to win is for good men to do nothing."

View raw message