|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.shared.model.fileset.mappers.FlatFileNameMapper
public class FlatFileNameMapper
Implementation of FileNameMapper that always returns the source file name without any leading directory information.
This is the default FileNameMapper for the copy and move tasks if the flatten attribute has been set.
Constructor Summary | |
---|---|
FlatFileNameMapper()
|
Method Summary | |
---|---|
java.lang.String |
mapFileName(java.lang.String sourceFileName)
Returns the target filename for the given source file. |
void |
setFrom(java.lang.String from)
Sets the from part of the transformation rule. |
void |
setTo(java.lang.String to)
Sets the to part of the transformation rule. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlatFileNameMapper()
Method Detail |
---|
public void setFrom(java.lang.String from)
setFrom
in interface FileNameMapper
public void setTo(java.lang.String to)
setTo
in interface FileNameMapper
public java.lang.String mapFileName(java.lang.String sourceFileName)
if the given rule doesn't apply to the source file, implementation must return null. SourceFileScanner will then omit the source file in question.
mapFileName
in interface FileNameMapper
sourceFileName
- the name of the source file relative to some given basedirectory.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |