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 16686] New: - Add casesensitive attribute to mapper
Date Sun, 02 Feb 2003 23:56:34 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=16686>.
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=16686

Add casesensitive attribute to mapper

           Summary: Add casesensitive attribute to mapper
           Product: Ant
           Version: 1.5.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: gjfdh@yahoo.com


The mapper type should have an optional (implementation-dependent / type-
specific) "casesensitive" attribute.  This would complement the casesensitive-
capable types, FileSet and Selector.  The casesensitive attribute would be 
most useful for glob mappers running under Windows.

<mapper type="glob" from="*.ini" to="*.ini.bak" casesensitive="no"/>

This mapper would map "test.ini" to "test.ini.bak" and "TEST.INI" 
to "TEST.ini.bak".

The attribute may also be useful in regexp and pattern mappers.


Sample problem:
---------------

This fileset selects all "test.ini" files that have a "specs.xml" file in the 
same directory.  The filename ignores case and matches "test.ini", "TEST.INI" 
but the mapper won't map "TEST.INI" to "specs.xml".

<fileset dir="...">
  <and>
     <filename casesensitive="no" name="test.ini"/>
     <present targetdir="...">
         <mapper type="glob" from="*test.ini" to="*specs.xml"/>
     </present>
  </and>
</fileset>

Adding casesensitive="no" to mapper would let TEST.INI through.

Mime
View raw message