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[])
, orPmdParametersParseResult
if you just want to produce a configuration.- Author:
- Romain Pelisse <belaran@gmail.com>
-
-
Field Summary
Fields Modifier and Type Field Description static int
ERROR_STATUS
Deprecated.static int
NO_ERRORS_STATUS
Deprecated.static String
NO_EXIT_AFTER_RUN
Deprecated.This is used for testing, but support for it will be removed in PMD 7.static String
PROG_NAME
Deprecated.static String
STATUS_CODE_PROPERTY
Deprecated.This is used for testing, but support for it will be removed in PMD 7.static int
VIOLATIONS_FOUND
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
buildUsageText()
Deprecated.static String
buildUsageText(com.beust.jcommander.JCommander jcommander)
Deprecated.static PMDParameters
extractParameters(PMDParameters arguments, String[] args, String progName)
Deprecated.static String
jarName()
Deprecated.static void
main(String[] args)
Deprecated.static void
printJcommanderUsageOnConsole()
Deprecated.static void
setStatusCodeOrExit(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.
-
setStatusCodeOrExit
public static void setStatusCodeOrExit(int status)
Deprecated.
-
printJcommanderUsageOnConsole
public static void printJcommanderUsageOnConsole()
Deprecated.
-
-