ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28883] New: - Add regex conditions to Ant
Date Mon, 10 May 2004 19:09:19 GMT
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: dev@ant.apache.org
        ReportedBy: adagoubard@chello.nl


<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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message