ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peterrei...@apache.org>
Subject Re: a few questions (sorry quite long)
Date Wed, 02 Mar 2005 14:03:57 GMT
Stefan Bodewig wrote:

>On Mon, 28 Feb 2005, James Fuller <jim.fuller@ruminate.co.uk> wrote:
>
>  
>
>>- does scriptdef have namespace capability
>>    
>>
>
>I read in a comment on my blog that a user found the only way to place
>a scriptdef'ed task into a namspace other than default was putting it
>into an antlib.  This feels wrong.
>  
>
The doc does not mention it, but <scriptdef> inherits attributes from 
DefBase,
so the following works:
    <scriptdef name="a" uri="a.b.c" language="beanshell">
      <attribute name="attr"/>
      self.log("Attribute attr1 = " + attributes.get("attr"));
    </scriptdef>
    <a xmlns="a.b.c" attr="b"/>
  </target>

Peter


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


Mime
View raw message