Class LauncherSupport

java.lang.Object
org.jdrupes.builder.core.LauncherSupport

public final class LauncherSupport extends Object
Provides support for creating projects based on AbstractProject.
  • 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 project
      subprojects - the sub projects
      jdbldProps - the builder properties
      commandLine - the command line
      Returns:
      the root project
    • lookupCommand

      public static ResourceRequest<?>[] lookupCommand(RootProject project, String name)
      Lookup the command in the given root project.
      Parameters:
      project - the project
      name - the name
      Returns:
      the optional