Package edu.umd.cs.findbugs
Class TextUICommandLine
java.lang.Object
edu.umd.cs.findbugs.config.CommandLine
edu.umd.cs.findbugs.FindBugsCommandLine
edu.umd.cs.findbugs.TextUICommandLine
Helper class to parse the command line and configure the IFindBugsEngine
object. As a side-effect it also configures a DetectorFactoryCollection (to
enable and disable detectors as requested).
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.umd.cs.findbugs.config.CommandLine
CommandLine.HelpRequestedException -
Field Summary
FieldsFields inherited from class edu.umd.cs.findbugs.FindBugsCommandLine
project, projectLoadedFromFile, settingList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidconfigureEngine(IFindBugsEngine findBugs) booleangetXargs()protected voidhandleOption(String option, String optionExtraPart) Callback method for handling an option.protected voidhandleOptionWithArgument(String option, String argument) Callback method for handling an option with an argument.voidHandle -xargs command line option by reading jar file names from standard input and adding them to the project.booleanbooleanbooleanbooleanquiet()booleanMethods inherited from class edu.umd.cs.findbugs.FindBugsCommandLine
getSettingList, isProjectLoadedFromFile, loadProjectMethods inherited from class edu.umd.cs.findbugs.config.CommandLine
addOption, addSwitch, addSwitchWithOptionalExtraPart, expandOptionFiles, getAnalysisOptionProperties, makeOptionUnlisted, parse, parse, printUsage, startOptionGroup
-
Field Details
-
outputFile
-
-
Constructor Details
-
TextUICommandLine
public TextUICommandLine()Constructor.
-
-
Method Details
-
getProject
- Overrides:
getProjectin classFindBugsCommandLine
-
getXargs
public boolean getXargs() -
setExitCode
public boolean setExitCode() -
noClassOk
public boolean noClassOk() -
quiet
public boolean quiet() -
applySuppression
public boolean applySuppression() -
justPrintConfiguration
public boolean justPrintConfiguration() -
justPrintVersion
public boolean justPrintVersion() -
handleOption
Description copied from class:CommandLineCallback method for handling an option.- Overrides:
handleOptionin classFindBugsCommandLine- Parameters:
option- the optionoptionExtraPart- the "extra" part of the option (everything after the colon: e.g., "withMessages" in "-xml:withMessages"); the empty string if there was no extra part
-
handleOptionWithArgument
Description copied from class:CommandLineCallback method for handling an option with an argument.- Overrides:
handleOptionWithArgumentin classFindBugsCommandLine- Parameters:
option- the optionargument- the argument- Throws:
IOException
-
configureEngine
- Throws:
IOExceptionFilterException
-
handleXArgs
Handle -xargs command line option by reading jar file names from standard input and adding them to the project.- Throws:
IOException
-