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 19056] New: - Allow EnumeratedAttributes zu hold values caseinsensitive
Date Wed, 16 Apr 2003 08:56:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19056>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19056

Allow EnumeratedAttributes zu hold values caseinsensitive

           Summary: Allow EnumeratedAttributes zu hold values
                    caseinsensitive
           Product: Ant
           Version: 1.6Alpha (nightly)
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jan@materne.de


<echo> as example.

Echo defines the EchoLevel "info","warning",... so you have to write exactly 
that: <echo level="info"/> If you wan´t to be able to write <echo 
level="INFO"/> you have to put "INFO" as additional value. "Info" ... come, too.

This make sence if the value is written in the buildfile but retrieved from 
external.

If you extend EnumeratedAttribute to support caseinsensitivity this is very 
simple. 


I wrote an implementation which allows subclasses of EnumeratedAttribut to be 
caseinsensitive by overriding the (new) method "public boolean isCasesensitive
()". Attached a Zip-File containing the new sources (implementation and test) 
and diffs.

Mime
View raw message