ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: [Fwd: [New task] scripttypedef (or refectdef)]
Date Mon, 16 Feb 2004 11:53:29 GMT
So this would allow creating a filter, mapper, or other type 
dynamically?  Nice!  Just a sanity check - there is no way to do this 
with scripting stuff in 1.6.1 is there?


> package org.apache.tools.ant.taskdefs.optional;
>
> /**
>  * Class to define an ant definition using a script that
>  * can return a class that is a normal ant task/datatype.
>  * If the language is beanshell it must be 2.0 or higher.
>  * The other scripting currently known to work is
>  * groovy (1.0beta3).
>  * <p>
>  * Note that if there is anything incorrect with the script
>  * the warning message is quite cryptic.
>  * </p>
>  * This class is based in part on o.a.t.ant.util.ScriptRunner.
>  * The main difference is that it does not define
>  * beans. This is for three reasons:
>  * <ol>
>  * <li>The definition may be used in another project.</li>
>  * <li>It should be possible to convert to java later.</li>

And the third reason is?  :)

	Erik


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


Mime
View raw message