org.apache.maven.util
Class CaseInsensitiveGlobPatternMapper

java.lang.Object
  extended byorg.apache.tools.ant.util.GlobPatternMapper
      extended byorg.apache.maven.util.CaseInsensitiveGlobPatternMapper
All Implemented Interfaces:
org.apache.tools.ant.util.FileNameMapper

public class CaseInsensitiveGlobPatternMapper
extends org.apache.tools.ant.util.GlobPatternMapper

Implementation of FileNameMapper that does simple case insensitive wildcard pattern replacements.

This does the same name translations as org.apache.tools.ant.util.GlobPatternMapper does, but ignores case when comparing parts of name with patterns.

Author:
Alexei Baranstev

Field Summary
 
Fields inherited from class org.apache.tools.ant.util.GlobPatternMapper
fromPostfix, fromPrefix, postfixLength, prefixLength, toPostfix, toPrefix
 
Constructor Summary
CaseInsensitiveGlobPatternMapper()
           
 
Method Summary
 java.lang.String[] mapFileName(java.lang.String sourceFileName)
          Returns null if the source file name doesn't match the "from" pattern, an one-element array containing the translated file otherwise.
 
Methods inherited from class org.apache.tools.ant.util.GlobPatternMapper
extractVariablePart, setCaseSensitive, setFrom, setHandleDirSep, setTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaseInsensitiveGlobPatternMapper

public CaseInsensitiveGlobPatternMapper()
Method Detail

mapFileName

public java.lang.String[] mapFileName(java.lang.String sourceFileName)
Returns null if the source file name doesn't match the "from" pattern, an one-element array containing the translated file otherwise.



Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.