java.lang.Object
com.github.sormuras.bach.ShellEnvironment
An enviroment used by Bach's Boot Script.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidBuilds a project by delegating to the default build sequence.static voiddescribeModule(String module)Prints a module description of the given module.static voidPrints a listing of all files matching the given glob pattern.static StringlinkModule(String module, String target)Links the given module name to the specified target, usually a URI of a remote JAR file.static voidPrints a list of all loaded modules.static voidPrints all missing modules.static voidPrints all module links.static voidPrints all public static method names.static voidPrints a list of all system modules.static voidPrints all available tool provider implementations.static voidLoads all missing modules.static voidloadModule(String module)Loads the given module.static voidRun the named tool passing the given arguments.
-
Method Details
-
build
Builds a project by delegating to the default build sequence.- Parameters:
args- the array of arguments
-
describeModule
Prints a module description of the given module.- Parameters:
module- the name of the module to describe
-
find
Prints a listing of all files matching the given glob pattern.- Parameters:
glob- the glob pattern
-
linkModule
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 linktarget- 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
Loads the given module.- Parameters:
module- the name of the module to load
-
loadMissingModules
public static void loadMissingModules()Loads all missing modules. -
run
Run the named tool passing the given arguments.- Parameters:
tool- the name of the tool to runargs- the array of args to be passed to the tool as strings
-