Class BootstrapLauncher
java.lang.Object
org.jdrupes.builder.startup.AbstractLauncher
org.jdrupes.builder.startup.BootstrapLauncher
- All Implemented Interfaces:
Launcher
A default implementation of a
Launcher. The launcher first builds
the user's JDrupes Builder project, using the JDrupes Builder project
defined by BootstrapRoot and BootstrapBuild. The default action
of BootstrapRoot adds the results from the bootstrap build
to the classpath and launches the actual JDrupes Builder project.-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildBuilderProject(Class<? extends RootProject> rootPrjCls, String[] args) Executes a build.static voidThe main method.Root project.Methods inherited from class AbstractLauncher
addCliProperties, baseOptions, configureLogging, findProjects, propertiesFromFiles, resources, runBuild, unwrapBuildException
-
Field Details
-
jdbldProps
The JDrupes Builder properties read from the file.jdbld.propertiesin the root project. -
commandLine
The command line.
-
-
Constructor Details
-
BootstrapLauncher
public BootstrapLauncher()Initializes a new bootstrap launcher.
-
-
Method Details
-
buildBuilderProject
Executes a build. An instance of the class passed as argument is created and used as root project for the build.
Unless the root project is the only project, the root project must declare dependencies, else the subprojects won't be instantiated.
- Parameters:
rootPrjCls- the root projectargs- the args
-
rootProject
-
main
-