Class LauncherSupport
java.lang.Object
org.jdrupes.builder.core.LauncherSupport
Provides support for creating projects based on
AbstractProject.-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Method Details
-
createProjects
public 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
-