ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <>
Subject Re: ScriptDef
Date Thu, 14 Feb 2002 23:55:13 GMT
+1 - I like the script tasks working just like regular tasks.  Very nice.
This was something I was aiming for with some of my patches to the <script>
task so that you could get access to its task context a lot cleaner, but
your <scriptdef> is even cooler.


----- Original Message -----
From: "Conor MacNeill" <>
To: "Ant Developers List" <>
Sent: Thursday, February 14, 2002 6:44 PM
Subject: RE: ScriptDef

> From: Tim Vernum []
> From: Peter Donald []
> > Similar to what I prototyped except with a syntax that did away with
> > getters. Essentially it was simplified to just
> >
> > <scriptdef name="scripttest" language="javascript">
> >   <param name="test" default="hello"/>
> +1

My motivation was to make scripted tasks somewhat similar to a real task, as
would be written in Java, particularly when using Rhino. I thought that
would make it useful for quickly prototyping a task for later development in
Java and also to introduce people to task development.

In addition, the way I implemented <scriptdef> it can support nested
elements, which are potentially repeated

    <fileset ...>
    <fileset ...>

It is hard to support that capability with simple named parameters.



To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message