Package net.sourceforge.pmd.cli
Class PMDCommandLineInterface
- java.lang.Object
-
- net.sourceforge.pmd.cli.PMDCommandLineInterface
-
public final class PMDCommandLineInterface extends Object
- Author:
- Romain Pelisse <belaran@gmail.com>
-
-
Field Summary
Fields Modifier and Type Field Description static int
ERROR_STATUS
static int
NO_ERRORS_STATUS
static String
NO_EXIT_AFTER_RUN
static String
PROG_NAME
static String
STATUS_CODE_PROPERTY
static int
VIOLATIONS_FOUND
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
buildUsageText()
static String
buildUsageText(com.beust.jcommander.JCommander jcommander)
static PMDParameters
extractParameters(PMDParameters arguments, String[] args, String progName)
static String
jarName()
static void
main(String[] args)
For testing purpose only...static void
run(String[] args)
static void
setStatusCodeOrExit(int status)
-
-
-
Field Detail
-
PROG_NAME
public static final String PROG_NAME
- See Also:
- Constant Field Values
-
NO_EXIT_AFTER_RUN
public static final String NO_EXIT_AFTER_RUN
- See Also:
- Constant Field Values
-
STATUS_CODE_PROPERTY
public static final String STATUS_CODE_PROPERTY
- See Also:
- Constant Field Values
-
NO_ERRORS_STATUS
public static final int NO_ERRORS_STATUS
- See Also:
- Constant Field Values
-
ERROR_STATUS
public static final int ERROR_STATUS
- See Also:
- Constant Field Values
-
VIOLATIONS_FOUND
public static final int VIOLATIONS_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractParameters
public static PMDParameters extractParameters(PMDParameters arguments, String[] args, String progName)
-
buildUsageText
public static String buildUsageText()
-
buildUsageText
public static String buildUsageText(com.beust.jcommander.JCommander jcommander)
-
main
public static void main(String[] args)
For testing purpose only...- Parameters:
args
-
-
jarName
public static String jarName()
-
run
public static void run(String[] args)
-
setStatusCodeOrExit
public static void setStatusCodeOrExit(int status)
-
-