ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <cost...@covalent.net>
Subject RE: ScriptDef
Date Wed, 13 Feb 2002 05:48:16 GMT
On Wed, 13 Feb 2002, Tim Vernum wrote:

> It might (or might not) make more sense to have something like
> (excuse my lack of javascript knowledge)
> 
> function attributes() {
> 	return ({ "test" });
> } 
> 
> rather than needing to have setXXX methods for everything.

+1, and a task.getAttribute( "test" )

I was thinking about another form of scripting would be to turn a 
sequence of tasks ( == target ) in a task that can be called with
params. 

<targetdef target='foo' name='footask' >
   <param name='param1' />
   ...
</targetdef>

With the behavior beeing that of <antcall>
Again, something like that can be implemented as a taskdef-like
task in ant1.x, in an add-on jar.


Costin



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


Mime
View raw message