DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=40543>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40543 Summary: Allow custom handling when accessing unset properties Product: Ant Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: Core AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] The latest 1.7 does not address this (according to the release notes), and I could find no enhancement request discussing it either. My simple proposal is: Allow the user to set a custom handler for resolving properties (with the option to handle unset properties as errors), similar to setting build listeners. We've been running with a modified Ant 1.6.2 for some time that simply throws an exception if a non-set property is accessed (when another propery is set, namely ant.disallow_unset_properties). It works really nice for us and has helped finding quite a few bugs (that's why we added it in the first place), but a more general solution would be to provide various property-policies. This was discussed quickly on the ant-user-list and the response was 'why not?'. So I'll try to get some time to write a small patch on this. Will post it here later, unless someone has a strong opinion otherwise. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]