Class Debug
java.lang.Object
com.github.rvesse.airline.jpms.debug.Debug
- All Implemented Interfaces:
ExampleRunnable
@Command(name="debug",
description="Debugs the visibility of resources within modules")
@ExitCodes(codes={0,127,255},
descriptions={"Successfully found some resources","No resources found","Help shown"})
public class Debug
extends Object
implements ExampleRunnable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate io.github.classgraph.ResourceList
filterResources
(io.github.classgraph.ScanResult scanResult) static void
int
run()
Runs the command and returns an exit code that the application should return
-
Field Details
-
help
-
modules
-
pattern
@Option(name={"-p","--pattern"}, title="ResourcePattern", description="Specifies a pattern to filter the returned resources") private String pattern -
showModuleName
@Option(name="--show-module-name", description="When set displays the Module name for each found resource") private boolean showModuleName -
testOpen
@Option(name="--test-open", description="When set tests whether each found resource can be successfully opened") private boolean testOpen -
testPrint
@Option(name="--test-print", description="When set implies --test-open and prints out the contents of the resources") private boolean testPrint
-
-
Constructor Details
-
Debug
public Debug()
-
-
Method Details
-
main
-
run
public int run()Description copied from interface:ExampleRunnable
Runs the command and returns an exit code that the application should return- Specified by:
run
in interfaceExampleRunnable
- Returns:
- Exit code
-
filterResources
private io.github.classgraph.ResourceList filterResources(io.github.classgraph.ScanResult scanResult)
-