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 java.lang.Object implements ExampleRunnable
-
-
Field Summary
Fields Modifier and Type Field Description private HelpOption<Debug>
help
private java.util.List<java.lang.String>
modules
private java.lang.String
pattern
private boolean
showModuleName
private boolean
testOpen
private boolean
testPrint
-
Constructor Summary
Constructors Constructor Description Debug()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private io.github.classgraph.ResourceList
filterResources(io.github.classgraph.ScanResult scanResult)
static void
main(java.lang.String[] args)
int
run()
Runs the command and returns an exit code that the application should return
-
-
-
Field Detail
-
help
@AirlineModule private HelpOption<Debug> help
-
modules
@Option(name={"-m","--modules"}, title="ModuleName", description="Specifies one/more module(s) to scan. If not specified scans all modules.") private java.util.List<java.lang.String> modules
-
pattern
@Option(name={"-p","--pattern"}, title="ResourcePattern", description="Specifies a pattern to filter the returned resources") private java.lang.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
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
-
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)
-
-