Is there any way to mark required and optional attributes/nested elements for custom ANT tasks and types?
I'm thinking of something like the @Required annotation in Spring IOC. At least for tasks it should be fairly easy to validate that all required attributes have been set before actually executing the task.
Thanks in advance.
EDIT: I know about the possibility to manually validate properties in execute() and throw BuildExceptions, but I'd think it would be more convenient to have automatic validation based on annotations.