Class LauncherBase
java.lang.Object
org.jdrupes.builder.core.LauncherBase
- Direct Known Subclasses:
AbstractLauncher
The Class LauncherBase.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ScopedValue<DefaultBuildContext> The ScopedValue for the build context. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultBuildContextcontext()Returns the context.protected static AbstractRootProjectcreateProjects(Path buildRoot, Class<? extends RootProject> rootProject, List<Class<? extends Project>> subprojects, Properties jdbldProps, org.apache.commons.cli.CommandLine commandLine) Creates and initializes the root project and the sub projects.
-
Field Details
-
scopedBuildContext
The ScopedValue for the build context.
-
-
Constructor Details
-
LauncherBase
public LauncherBase()Initializes a new launcher base.
-
-
Method Details
-
context
-
createProjects
protected static AbstractRootProject createProjects(Path buildRoot, Class<? extends RootProject> rootProject, List<Class<? extends Project>> subprojects, Properties jdbldProps, org.apache.commons.cli.CommandLine commandLine) Creates and initializes the root project and the sub projects. Adds the sub projects to the root project automatically. This method should be used if the launcher detects the sub projects e.g. by reflection and the root project does not add its sub projects itself.- Parameters:
buildRoot- the build rootrootProject- the root projectsubprojects- the sub projectsjdbldProps- the builder propertiescommandLine- the command line- Returns:
- the root project
-