Class ShellEnvironment

java.lang.Object
com.github.sormuras.bach.ShellEnvironment

public class ShellEnvironment extends Object
An enviroment used by Bach's Boot Script.
  • Method Details

    • build

      public static void build(String... args)
      Builds a project by delegating to the default build sequence.
      Parameters:
      args - the array of arguments
    • describeModule

      public static void describeModule(String module)
      Prints a module description of the given module.
      Parameters:
      module - the name of the module to describe
    • find

      public static void find(String glob)
      Prints a listing of all files matching the given glob pattern.
      Parameters:
      glob - the glob pattern
    • linkModule

      public static String linkModule(String module, String target)
      Links the given module name to the specified target, usually a URI of a remote JAR file.
      Parameters:
      module - the name of the module to link
      target - the target of the link, usually a URI of a remote JAR file
      Returns:
      the possibly expanded target of the link
    • listLoadedModules

      public static void listLoadedModules()
      Prints a list of all loaded modules.
    • listMissingModules

      public static void listMissingModules()
      Prints all missing modules.
    • listModuleLinks

      public static void listModuleLinks()
      Prints all module links.
    • listPublicStaticMethods

      public static void listPublicStaticMethods()
      Prints all public static method names.
    • listSystemModules

      public static void listSystemModules()
      Prints a list of all system modules.
    • listToolProviders

      public static void listToolProviders()
      Prints all available tool provider implementations.
      See Also:
      ToolProvider
    • loadModule

      public static void loadModule(String module)
      Loads the given module.
      Parameters:
      module - the name of the module to load
    • loadMissingModules

      public static void loadMissingModules()
      Loads all missing modules.
    • run

      public static void run(String tool, Object... args)
      Run the named tool passing the given arguments.
      Parameters:
      tool - the name of the tool to run
      args - the array of args to be passed to the tool as strings