Class LauncherSupport
java.lang.Object
org.jdrupes.builder.core.LauncherSupport
Provides support for creating projects based on
AbstractProject.-
Method Summary
Modifier and TypeMethodDescriptionstatic RootProjectcreateProjects(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.static ResourceRequest<?>[]lookupCommand(RootProject project, String name) Lookup the command in the given root project.
-
Method Details
-
createProjects
public static RootProject createProjects(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:
rootProject- the root projectsubprojects- the sub projectsjdbldProps- the builder propertiescommandLine- the command line- Returns:
- the root project
-
lookupCommand
Lookup the command in the given root project.- Parameters:
project- the projectname- the name- Returns:
- the optional
-