public class LauncherUtils extends Object
Constructor and Description |
---|
LauncherUtils() |
Modifier and Type | Method and Description |
---|---|
static ProgramFile |
compile(Path sourceRootPath,
Path sourcePath,
boolean offline)
Compile and get the executable program file.
|
static BLauncherException |
createUsageException(String errorMsg) |
static ProgramFile |
getExecutableProgram(CompiledBinaryFile.ProgramFile programFile)
Get the executable program (
ProgramFile ) given the compiled program
(CompiledBinaryFile.ProgramFile ). |
static Path |
getSourceRootPath(String sourceRoot) |
static void |
loadConfigurations(Path sourceRootPath,
Map<String,String> runtimeParams,
String configFilePath,
boolean observeFlag)
Initializes the
ConfigRegistry and loads LogManager configs. |
static void |
runMain(ProgramFile programFile,
String[] args) |
static void |
runProgram(Path sourceRootPath,
Path sourcePath,
boolean runServices,
Map<String,String> runtimeParams,
String configFilePath,
String[] args,
boolean offline,
boolean observeFlag) |
static void |
runServices(ProgramFile programFile) |
public static void runProgram(Path sourceRootPath, Path sourcePath, boolean runServices, Map<String,String> runtimeParams, String configFilePath, String[] args, boolean offline, boolean observeFlag)
public static void runMain(ProgramFile programFile, String[] args)
public static void runServices(ProgramFile programFile)
public static BLauncherException createUsageException(String errorMsg)
public static ProgramFile compile(Path sourceRootPath, Path sourcePath, boolean offline)
sourceRootPath
- Path to the source rootsourcePath
- Path to the source from the source rootoffline
- Should the build call remote repospublic static ProgramFile getExecutableProgram(CompiledBinaryFile.ProgramFile programFile)
ProgramFile
) given the compiled program
(CompiledBinaryFile.ProgramFile
).programFile
- Compiled programpublic static void loadConfigurations(Path sourceRootPath, Map<String,String> runtimeParams, String configFilePath, boolean observeFlag)
ConfigRegistry
and loads LogManager
configs.sourceRootPath
- source directoryruntimeParams
- run time parametersconfigFilePath
- config file pathobserveFlag
- to indicate whether observability is enabledCopyright © 2018 WSO2. All rights reserved.