ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: attribute name with dash
Date Tue, 07 Sep 2010 04:16:14 GMT
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@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message