Package net.sourceforge.pmd.cli
Class PMDCommandLineInterface
- java.lang.Object
-
- net.sourceforge.pmd.cli.PMDCommandLineInterface
-
@Deprecated @InternalApi public final class PMDCommandLineInterface extends Object
Deprecated.Internal API. UsePMD.runPmd(String...)orPMD.main(String[]), orPmdParametersParseResultif you just want to produce a configuration.- Author:
- Romain Pelisse <[email protected]>
-
-
Field Summary
Fields Modifier and Type Field Description static intERROR_STATUSDeprecated.static intNO_ERRORS_STATUSDeprecated.static StringNO_EXIT_AFTER_RUNDeprecated.This is used for testing, but support for it will be removed in PMD 7.static StringPROG_NAMEDeprecated.static StringSTATUS_CODE_PROPERTYDeprecated.This is used for testing, but support for it will be removed in PMD 7.static intVIOLATIONS_FOUNDDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StringbuildUsageText()Deprecated.static StringbuildUsageText(com.beust.jcommander.JCommander jcommander)Deprecated.static PMDParametersextractParameters(PMDParameters arguments, String[] args, String progName)Deprecated.static StringjarName()Deprecated.static voidmain(String[] args)Deprecated.static voidprintJcommanderUsageOnConsole()Deprecated.static voidrun(String[] args)Deprecated.static voidsetStatusCodeOrExit(int status)Deprecated.
-
-
-
Field Detail
-
PROG_NAME
@Deprecated public static final String PROG_NAME
Deprecated.- See Also:
- Constant Field Values
-
NO_EXIT_AFTER_RUN
@Deprecated public static final String NO_EXIT_AFTER_RUN
Deprecated.This is used for testing, but support for it will be removed in PMD 7. UsePMD.runPmd(String...)or an overload to avoid exiting the VM. In PMD 7,PMD.main(String[])will callSystem.exit(int)always.- See Also:
- Constant Field Values
-
STATUS_CODE_PROPERTY
@Deprecated public static final String STATUS_CODE_PROPERTY
Deprecated.This is used for testing, but support for it will be removed in PMD 7. UsePMD.runPmd(String...)or an overload to avoid exiting the VM. In PMD 7,PMD.main(String[])will callSystem.exit(int)always.- See Also:
- Constant Field Values
-
NO_ERRORS_STATUS
@Deprecated public static final int NO_ERRORS_STATUS
Deprecated.- See Also:
- Constant Field Values
-
ERROR_STATUS
@Deprecated public static final int ERROR_STATUS
Deprecated.- See Also:
- Constant Field Values
-
VIOLATIONS_FOUND
@Deprecated public static final int VIOLATIONS_FOUND
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
extractParameters
@Deprecated public static PMDParameters extractParameters(PMDParameters arguments, String[] args, String progName)
Deprecated.Note: this may terminate the VM.
-
buildUsageText
public static String buildUsageText()
Deprecated.
-
buildUsageText
@Deprecated public static String buildUsageText(com.beust.jcommander.JCommander jcommander)
Deprecated.
-
main
@Deprecated public static void main(String[] args)
Deprecated.For testing purpose only...- Parameters:
args-
-
jarName
public static String jarName()
Deprecated.
-
run
@Deprecated public static void run(String[] args)
Deprecated.
-
setStatusCodeOrExit
@Deprecated public static void setStatusCodeOrExit(int status)
Deprecated.
-
printJcommanderUsageOnConsole
public static void printJcommanderUsageOnConsole()
Deprecated.
-
-