Class BootstrapProjectLauncher
java.lang.Object
org.jdrupes.builder.startup.AbstractLauncher
org.jdrupes.builder.startup.BootstrapProjectLauncher
- All Implemented Interfaces:
AutoCloseable, Launcher
An implementation of a Launcher that bootstraps the build.
The BootstrapProjectLauncher uses the built-in BootstrapRoot and
BootstrapBuild to assemble a JDrupes Builder Project (the
bootstrap project) that includes the JavaCompiler for compiling
the JDrupes Builder configuration provided by the user.
The launcher then requests the supplied and exposed classes from
the bootstrap project, including in particular the RootProject of
the user's build configuration. The launcher uses these classes as
classpath for creating the BuildProjectLauncher
-
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
ConstructorsConstructorDescriptionBootstrapProjectLauncher(Class<? extends RootProject> rootPrjCls, String[] args) Initializes a new bootstrap launcher. -
Method Summary
Modifier and TypeMethodDescriptionbuildBuildProjectLauncher(Class<? extends RootProject> rootPrjCls, String[] args) Builds the build project launcher.voidclose()Close the launcher.static voidThe main method.Regenerate root project, seeCleanliness.Return the root project.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
-
BootstrapProjectLauncher
Initializes a new bootstrap launcher.- Parameters:
rootPrjCls- the root project classargs- the arguments
-
-
Method Details
-
close
Description copied from interface:LauncherClose the launcher. The re-declaration of this method removes theIOException, which is never thrown. -
buildBuildProjectLauncher
public BuildProjectLauncher buildBuildProjectLauncher(Class<? extends RootProject> rootPrjCls, String[] args) Builds the build project launcher.- Parameters:
rootPrjCls- the root projectargs- the args- Returns:
- the builds the project launcher
-
rootProject
-
regenerateRootProject
Description copied from interface:LauncherRegenerate root project, seeCleanliness.- Returns:
- the root project
-
main
-