org.apache.maven.util
Class CaseInsensitiveGlobPatternMapper
java.lang.Object
org.apache.tools.ant.util.GlobPatternMapper
org.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
Fields inherited from class org.apache.tools.ant.util.GlobPatternMapper |
fromPostfix, fromPrefix, postfixLength, prefixLength, toPostfix, toPrefix |
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 |
CaseInsensitiveGlobPatternMapper
public CaseInsensitiveGlobPatternMapper()
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.