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=28883>. 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=28883 Add regex conditions to Ant Summary: Add regex conditions to Ant Product: Ant Version: 1.7Alpha (nightly) Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Optional Tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] <containsregexp> and <matchesregexp> The first one would test a string if it contains a regular exression. The second one would test if a string matches a regular expression. Example: <condition propery="legal-password"> <containsregexp pattern="[1-9]" value="${user-input}"/> </condition> <fail message="Your password should at least contain one number" unless="legal-password"/> This feature has been discussed on Ant developer mailing list at http://marc.theaimsgroup.com/?t=108369006500001&r=1&w=2 and it seems that nobody disagreed. I'll try to find some time this week or next week to implement them. About the implementation: They should be in the optional package (as dependant of a regex library). <containsregexp pattern="" value=""> both condition should also accept the <regexp> sub element. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]