|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.output.ConfigurationOptions
Class for storing all command line parameters. The parameters
are set by the Main.main(java.lang.String[])
method. Interested classes
can read all parameter values from here.
TODO: Should be moved to more appropriate package and made non-public
Constructor Summary | |
ConfigurationOptions()
|
Method Summary | |
static String |
getCheckedOutDirectory()
Method getCheckedOutDirectory. |
static CssHandler |
getCssHandler()
returns the CssHandler |
static FilePatternMatcher |
getExcludePattern()
|
static FilePatternMatcher |
getIncludePattern()
|
static String |
getLogFileName()
Method getLogfilename. |
static String |
getLoggingProperties()
Gets the name of the logging properties file |
static String |
getNotes()
Returns the report notes (from "-notes filename" switch) or null if not specified |
static String |
getOutputDir()
Returns the outputDir. |
static String |
getProjectName()
Method getProjectName. |
static WebRepositoryIntegration |
getWebRepository()
Returns a WebRepositoryIntegration object if the user
has specified a URL to one. |
static void |
setCheckedOutDirectory(String checkedOutDirectory)
Sets the checkedOutDirectory. |
static void |
setChoraURL(String url)
Sets the URL to a Chora web-based CVS browser. |
static void |
setCssFile(String cssFile)
Sets the cssFile. |
static void |
setCvswebURL(String url)
Sets the URL to a cvsweb web-based CVS browser. |
static void |
setDebugLogging()
Sets the logging level to debug |
static void |
setExcludePattern(String patternList)
Sets a file exclude pattern list. |
static void |
setIncludePattern(String patternList)
Sets a file include pattern list. |
static void |
setLogFileName(String logFileName)
Sets the logFileName. |
static void |
setNotesFile(String notesFile)
Sets the name of the notes file. |
static void |
setOutputDir(String outputDir)
Sets the outputDir. |
static void |
setProjectName(String projectName)
Sets a project title to be used in the reports |
static void |
setVerboseLogging()
Sets the logging level to verbose |
static void |
setViewCvsURL(String url)
Sets the URL to a ViewCVS web-based CVS browser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConfigurationOptions()
Method Detail |
public static CssHandler getCssHandler()
CssHandler
public static String getProjectName()
public static String getCheckedOutDirectory()
public static String getLogFileName()
public static String getOutputDir()
public static String getNotes()
public static WebRepositoryIntegration getWebRepository()
WebRepositoryIntegration
object if the user
has specified a URL to one. null otherwise.
public static void setCheckedOutDirectory(String checkedOutDirectory) throws ConfigurationException
checkedOutDirectory
- The checkedOutDirectory to set
ConfigurationException
- if directory does not existpublic static void setCssFile(String cssFile) throws ConfigurationException
cssFile
- The cssFile to set
ConfigurationException
- if the specified CSS file can not be
accessed from local file system or from URL source, or if the specified
CSS file is local and does not existpublic static void setLogFileName(String logFileName) throws ConfigurationException
logFileName
- The logFileName to set
ConfigurationException
- if the file does not existpublic static void setOutputDir(String outputDir) throws ConfigurationException
outputDir
- The outputDir to set
ConfigurationException
- if the output directory cannot be createdpublic static void setNotesFile(String notesFile) throws ConfigurationException
IndexPage
of the output. It must contain a valid
block-level HTML fragment (for example
"<p>Some notes</p>")
notesFile
- a local filename
ConfigurationException
- if the file is not found or can't be readpublic static void setViewCvsURL(String url)
url
- URL to a ViewCVS repositorypublic static void setCvswebURL(String url)
url
- URL to a cvsweb repositorypublic static void setChoraURL(String url)
url
- URL to a cvsweb repositorypublic static void setProjectName(String projectName)
projectName
- The project title to be used in the reportspublic static String getLoggingProperties()
public static void setVerboseLogging()
public static void setDebugLogging()
public static void setIncludePattern(String patternList)
patternList
- a list of Ant-style wildcard patterns, seperated
by : or ;FilePatternMatcher
public static void setExcludePattern(String patternList)
patternList
- a list of Ant-style wildcard patterns, seperated
by : or ;FilePatternMatcher
public static FilePatternMatcher getExcludePattern()
public static FilePatternMatcher getIncludePattern()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |