|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 void |
addNonDeveloperLogin(java.lang.String loginName)
Excludes a login name from charts and reports that compare several developers. |
static java.lang.String |
getCharSet()
|
static java.lang.String |
getCheckedOutDirectory()
Method getCheckedOutDirectory. |
static java.lang.Boolean |
getConfigBooleanProperty(java.lang.String propName,
java.lang.String fallBackPropName,
java.lang.Boolean defaultValue)
Return a Boolean prop. |
static java.awt.Color |
getConfigColorProperty(java.lang.String propName,
java.awt.Color defaultValue)
Return a String prop. |
static java.awt.Color |
getConfigColorProperty(java.lang.String propName,
java.lang.String fallBackPropName,
java.awt.Color defaultValue)
Return a Color prop. |
static java.lang.Float |
getConfigFloatProperty(java.lang.String propName,
java.lang.String fallBackPropName,
java.lang.Float defaultValue)
Return a Float prop. |
static java.lang.Float |
getConfigIntegerProperty(java.lang.String propName,
java.lang.Float defaultValue)
Return a Float prop. |
static java.lang.Integer |
getConfigIntegerProperty(java.lang.String propName,
java.lang.Integer defaultValue)
Return a Integer prop. |
static java.lang.Integer |
getConfigIntegerProperty(java.lang.String propName,
java.lang.String fallBackPropName,
java.lang.Integer defaultValue)
Return a Integer prop. |
static java.util.Properties |
getConfigProperties()
The config properties. |
static java.util.List |
getConfigStringListProperty(java.lang.String propName,
java.lang.String defaultValue)
Return a list of String prop. |
static java.lang.String |
getConfigStringProperty(java.lang.String propName,
java.lang.String defaultValue)
Return a String prop. |
static java.lang.String |
getConfigStringProperty(java.lang.String propName,
java.lang.String fallBackPropName,
java.lang.String defaultValue)
|
static CssHandler |
getCssHandler()
returns the CssHandler |
static FilePatternMatcher |
getExcludePattern()
|
static java.lang.String |
getFooterUrl()
|
static java.lang.String |
getHeaderUrl()
|
static FilePatternMatcher |
getIncludePattern()
|
static java.lang.String |
getLogFileName()
Method getLogfilename. |
static java.lang.String |
getLoggingProperties()
Gets the name of the logging properties file |
static MarkupSyntax |
getMarkupSyntax()
|
static java.util.Collection |
getNonDeveloperLogins()
Gets login names that should be excluded from charts and reports that compare several developers. |
static java.lang.String |
getNotes()
Returns the report notes (from "-notes filename" switch) or null if not specified |
static java.lang.String |
getOutputDir()
Returns the outputDir. |
static java.lang.String |
getOutputFormat()
|
static java.lang.String |
getProjectName()
Method getProjectName. |
static java.util.regex.Pattern |
getSymbolicNamesPattern()
|
static BugTracker |
getWebBugtracker()
|
static WebRepositoryIntegration |
getWebRepository()
Returns a WebRepositoryIntegration object if the user
has specified a URL to one. |
static boolean |
isEnableTwitterButton()
|
static void |
setBugzillaUrl(java.lang.String bugzillaUrl)
|
static void |
setCharSet(java.lang.String cs)
|
static void |
setCheckedOutDirectory(java.lang.String checkedOutDirectory)
Sets the checkedOutDirectory. |
static void |
setChoraURL(java.lang.String url)
Sets the URL to a Chora web-based CVS browser. |
static void |
setConfigFile(java.lang.String propertiesFilename)
Set the config file that may contain user details. |
static void |
setCssFile(java.lang.String cssFile)
Sets the cssFile. |
static void |
setCvswebURL(java.lang.String url)
Sets the URL to a cvsweb web-based CVS browser. |
static void |
setDebugLogging()
Sets the logging level to debug |
static void |
setDefaultCssFile(java.lang.String cssName)
Allow change between css that are shipped with the tool. |
static void |
setEnableTwitterButton(boolean value)
Enable/disable the Twitter "Tweet This" Buttons. |
static void |
setExcludePattern(java.lang.String patternList)
Sets a file exclude pattern list. |
static void |
setFooterUrl(java.lang.String footerUrl)
|
static void |
setHeaderUrl(java.lang.String headerUrl)
|
static void |
setIncludePattern(java.lang.String patternList)
Sets a file include pattern list. |
static void |
setJCVSWebURL(java.lang.String url)
Sets the URL to a JCVSWeb web-based CVS browser. |
static void |
setLogFileName(java.lang.String logFileName)
Sets the logFileName. |
static void |
setMantisUrl(java.lang.String mantisUrl)
|
static void |
setNotesFile(java.lang.String notesFile)
Sets the name of the notes file. |
static void |
setOutputDir(java.lang.String outputDir)
Sets the outputDir. |
static void |
setOutputFormat(java.lang.String outputFormat)
|
static void |
setProjectName(java.lang.String projectName)
Sets a project title to be used in the reports |
static void |
setSymbolicNamesPattern(java.lang.String symbolicNamesPattern)
|
static void |
setVerboseLogging()
Sets the logging level to verbose |
static void |
setViewCvsURL(java.lang.String url)
Sets the URL to a ViewCVS web-based CVS browser. |
static void |
setViewTracURL(java.lang.String url)
Sets the URL to a Trac web-based SVN browser and issue tracking. |
static void |
setViewVcURL(java.lang.String url)
Sets the URL to a ViewVC web-based CVS/SVN browser. |
static void |
setWebRepositoryIntegration(WebRepositoryIntegration webRepo)
|
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 java.lang.String getCharSet()
public static void setCharSet(java.lang.String cs)
public static CssHandler getCssHandler()
CssHandler
public static java.lang.String getProjectName()
public static java.lang.String getCheckedOutDirectory()
public static java.lang.String getLogFileName()
public static java.lang.String getOutputDir()
public static java.lang.String getNotes()
public static WebRepositoryIntegration getWebRepository()
WebRepositoryIntegration
object if the user
has specified a URL to one. null otherwise.
public static void setCheckedOutDirectory(java.lang.String checkedOutDirectory) throws ConfigurationException
checkedOutDirectory
- The checkedOutDirectory to set
ConfigurationException
- if directory does not existpublic static void setCssFile(java.lang.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(java.lang.String logFileName) throws ConfigurationException
logFileName
- The logFileName to set
ConfigurationException
- if the file does not existpublic static void setOutputDir(java.lang.String outputDir) throws ConfigurationException
outputDir
- The outputDir to set
ConfigurationException
- if the output directory cannot be createdpublic static void setNotesFile(java.lang.String notesFile) throws ConfigurationException
notesFile
- a local filename
ConfigurationException
- if the file is not found or can't be readpublic static void setViewCvsURL(java.lang.String url)
url
- URL to a ViewCVS repositorypublic static void setCvswebURL(java.lang.String url)
url
- URL to a cvsweb repositorypublic static void setChoraURL(java.lang.String url)
url
- URL to a cvsweb repositorypublic static void setJCVSWebURL(java.lang.String url)
url
- URL to a JCVSWeb repositorypublic static void setViewVcURL(java.lang.String url)
url
- URL to a ViewVC repositorypublic static void setViewTracURL(java.lang.String url)
url
- URL to a Trac websitepublic static void setProjectName(java.lang.String projectName)
projectName
- The project title to be used in the reportspublic static java.lang.String getLoggingProperties()
public static void setVerboseLogging()
public static void setDebugLogging()
public static void setIncludePattern(java.lang.String patternList)
patternList
- a list of Ant-style wildcard patterns, seperated
by : or ;FilePatternMatcher
public static void setExcludePattern(java.lang.String patternList)
patternList
- a list of Ant-style wildcard patterns, seperated
by : or ;FilePatternMatcher
public static FilePatternMatcher getExcludePattern()
public static FilePatternMatcher getIncludePattern()
public static void setSymbolicNamesPattern(java.lang.String symbolicNamesPattern) throws ConfigurationException
ConfigurationException
public static java.util.regex.Pattern getSymbolicNamesPattern()
public static void setBugzillaUrl(java.lang.String bugzillaUrl)
public static void setMantisUrl(java.lang.String mantisUrl)
public static BugTracker getWebBugtracker()
public static void setOutputFormat(java.lang.String outputFormat) throws ConfigurationException
ConfigurationException
public static java.lang.String getOutputFormat()
public static MarkupSyntax getMarkupSyntax()
public static void setWebRepositoryIntegration(WebRepositoryIntegration webRepo)
public static void setDefaultCssFile(java.lang.String cssName)
cssName
- statcvs.css or objectlab-statcvs-xdoc.csspublic static void addNonDeveloperLogin(java.lang.String loginName)
loginName
- A login namepublic static java.util.Collection getNonDeveloperLogins()
public static void setConfigFile(java.lang.String propertiesFilename) throws ConfigurationException
propertiesFilename
-
ConfigurationException
public static java.util.Properties getConfigProperties()
public static java.lang.String getConfigStringProperty(java.lang.String propName, java.lang.String defaultValue)
propName
- defaultValue
-
public static java.util.List getConfigStringListProperty(java.lang.String propName, java.lang.String defaultValue)
propName
- defaultValue
-
public static java.lang.String getConfigStringProperty(java.lang.String propName, java.lang.String fallBackPropName, java.lang.String defaultValue)
public static java.lang.Integer getConfigIntegerProperty(java.lang.String propName, java.lang.Integer defaultValue)
propName
- defaultValue
-
public static java.lang.Float getConfigIntegerProperty(java.lang.String propName, java.lang.Float defaultValue)
propName
- defaultValue
-
public static java.awt.Color getConfigColorProperty(java.lang.String propName, java.awt.Color defaultValue)
propName
- defaultValue
-
public static java.lang.Integer getConfigIntegerProperty(java.lang.String propName, java.lang.String fallBackPropName, java.lang.Integer defaultValue)
propName
- defaultValue
-
public static java.lang.Float getConfigFloatProperty(java.lang.String propName, java.lang.String fallBackPropName, java.lang.Float defaultValue)
propName
- defaultValue
-
public static java.lang.Boolean getConfigBooleanProperty(java.lang.String propName, java.lang.String fallBackPropName, java.lang.Boolean defaultValue)
propName
- defaultValue
-
public static java.awt.Color getConfigColorProperty(java.lang.String propName, java.lang.String fallBackPropName, java.awt.Color defaultValue)
propName
- defaultValue
-
public static void setEnableTwitterButton(boolean value)
value
- public static boolean isEnableTwitterButton()
public static java.lang.String getHeaderUrl()
public static void setHeaderUrl(java.lang.String headerUrl)
public static java.lang.String getFooterUrl()
public static void setFooterUrl(java.lang.String footerUrl)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |