public class ConfigFileFinder
extends java.lang.Object
All files in and below the directory given by the option -baseDir are scanned.
Those files with certain endings are suspected of being configuration files, but then some of these files get cleared
if they are recognized by one of the filters which check all suspicious files.
For example, a filter specialized in xml files will recognize those files used for ACS error definitions.
All files that are still suspect after filtering will be reported, either by printing their pathname to stdout,
or by copying them to a target directory if the -targetDir option is given.
| Constructor and Description |
|---|
ConfigFileFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFileEndings(java.lang.String[] moreFileEndings) |
void |
addRedeemer(ConfigFileRedeemer redeemer) |
void |
checkConfiguration() |
void |
configureFromArgs(java.lang.String[] args) |
void |
configureRedeemers() |
protected void |
handleConfigFile(java.io.File configFile) |
static void |
main(java.lang.String[] args) |
protected void |
setBaseDir(java.io.File baseDir) |
protected void |
setTargetDir(java.io.File targetDir) |
public ConfigFileFinder()
throws java.lang.Exception
java.lang.Exceptionpublic void configureRedeemers()
throws java.lang.Exception
java.lang.Exceptionpublic void addRedeemer(ConfigFileRedeemer redeemer)
public void configureFromArgs(java.lang.String[] args)
public void checkConfiguration()
throws java.lang.IllegalStateException
java.lang.IllegalStateExceptionprotected void handleConfigFile(java.io.File configFile)
protected void setBaseDir(java.io.File baseDir)
protected void setTargetDir(java.io.File targetDir)
protected void addFileEndings(java.lang.String[] moreFileEndings)
public static void main(java.lang.String[] args)