ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy Lambert <>
Subject Re: Enums Support
Date Fri, 09 Apr 2010 20:38:19 GMT
Raja Nagendra Kumar wrote:
> Hi,
> Is it possible to define a property which takes only X,Y, Z values.. and
> nothing more.. If any other thing is set for that property.. ant should give
> the error.
> Sort of Enums in Java.. so that any wrong setting would result in compiler
> error.
> Regards,
> Nagendra
Ant has a class called EnumeratedAttribute [out of the top of my head]. 
There are no enumerated properties, but this is conceivable.

You can try to write your own extension of the property task. I am not 
sure whether there would be a consensus among committers to add this 
function to ant-core ?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message