Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Developers List »

Re: attribute name with dash

Stefan Bodewig

2010-09-07

Replies: Find Java Web Hosting

Author LoginPost Reply
On 2010-09-06, Benjamin de Dardel wrote:

> Is it possible to define attribute name with dash ?

Not with Ant's built-in reflection logic. Any attribute can only
consist of characters leagl inside a Java method name.

You can define attributes with a dash when you implement
org.apache.tools.ant.DynamicAttribute or DynamicAttributeNS in which
case your setDynamicAttribute method will get invoked for any attribute
that does not directly map to a setter method.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@(protected)
For additional commands, e-mail: dev-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.