Class BuildProjectLauncher
java.lang.Object
org.jdrupes.builder.startup.AbstractLauncher
org.jdrupes.builder.startup.BuildProjectLauncher
- All Implemented Interfaces:
Launcher
An implementation of a
Launcher that launches the build configuration.
It expects that the JDrupes Builder project has already been compiled
and its classes are available on the classpath.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.commons.cli.CommandLineThe command line.protected PropertiesThe JDrupes Builder properties read from the file.jdbld.propertiesin the root project. -
Constructor Summary
ConstructorsConstructorDescriptionBuildProjectLauncher(ClassLoader classloader, Path buildRoot, String[] args) Instantiates a new direct launcher. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis main can be used to start the user's JDrupes Builder project from an IDE for debugging purposes.Return the root project.booleanExecute the commands from the command line.Methods inherited from class AbstractLauncher
addCliProperties, baseOptions, configureLogging, findProjects, formatter, propertiesFromFiles, reportBuildException, resources
-
Field Details
-
jdbldProps
The JDrupes Builder properties read from the file.jdbld.propertiesin the root project. -
commandLine
The command line.
-
-
Constructor Details
-
BuildProjectLauncher
Instantiates a new direct launcher. The classpath is scanned for classes that implementProjectbut do not implementMasked. One of these must also implement theRootProjectinterface. The latter is instantiated and registered as root project with all other classes found as direct sub projects.- Parameters:
classloader- the classloaderbuildRoot- the build rootargs- the arguments. Flags are processed in the constructor, command line arguments are processed inrunCommands().
-
-
Method Details
-
rootProject
-
runCommands
Execute the commands from the command line.- Returns:
- true, if successful
-
main
This main can be used to start the user's JDrupes Builder project from an IDE for debugging purposes. It expects that the JDrupes Builder project has already been compiled (typically by the IDE) and is available on the classpath.- Parameters:
args- the arguments
-