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 Details

    • help

    • modules

      @Option(name={"-m","--modules"}, title="ModuleName", description="Specifies one/more module(s) to scan. If not specified scans all modules.") private List<String> 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

      public static void main(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 interface ExampleRunnable
      Returns:
      Exit code
    • filterResources

      private io.github.classgraph.ResourceList filterResources(io.github.classgraph.ScanResult scanResult)