public class ConfigFileRedeemerFilepath extends ConfigFileRedeemer
One should be careful to use path name snippets that match as accurately as possible, to avoid excluding other files whose path names unexpectedly also match. For better accuracy, you should
^ character prepended to the path name snippet set in addRedeemedFilePathSnippet(String). ^ITS will exclude all files under /alma/src/MONTHLY-2006-03-ITER-2/ITS
if the base directory in ConfigFileFinder is given as /alma/src/MONTHLY-2006-03-ITER-2.
However it will not exclude files under mymodule/src/alma/mypackage/ITS/blabla.
test directory in all modules, use the
specialized filter ConfigFileRedeemerTestDir
which not only checks whether /test/ is on the path name, but also looks for a parallel src
directory with a Makefile and thus minimizes the risk of a false match.
logger| Constructor and Description |
|---|
ConfigFileRedeemerFilepath(java.util.logging.Logger logger,
java.io.File baseDir) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
_isNotAConfigFile(java.io.File file)
Called by
ConfigFileRedeemer.isNotAConfigFile(File) only if the file ending matches
one of the endings in ConfigFileRedeemer.getFileEndings(). |
void |
addRedeemedFilePathSnippet(java.lang.String filePathSnippet) |
void |
configure()
This method may be overridden by a subclass.
|
java.lang.String[] |
getFileEndings()
Returns
null so that it gets to redeem any kind of file. |
getName, isNotAConfigFilepublic ConfigFileRedeemerFilepath(java.util.logging.Logger logger,
java.io.File baseDir)
protected boolean _isNotAConfigFile(java.io.File file)
ConfigFileRedeemerConfigFileRedeemer.isNotAConfigFile(File) only if the file ending matches
one of the endings in ConfigFileRedeemer.getFileEndings()._isNotAConfigFile in class ConfigFileRedeemerpublic java.lang.String[] getFileEndings()
null so that it gets to redeem any kind of file.getFileEndings in class ConfigFileRedeemerpublic void addRedeemedFilePathSnippet(java.lang.String filePathSnippet)
public void configure()