Class BootstrapLauncher

java.lang.Object
org.jdrupes.builder.startup.AbstractLauncher
org.jdrupes.builder.startup.BootstrapLauncher
All Implemented Interfaces:
Launcher

public class BootstrapLauncher extends AbstractLauncher
A default implementation of a Launcher. The launcher first builds the user's JDrupes Builder project, using the JDrupes Builder project defined by BootstrapRoot and BootstrapBuild. The default action of BootstrapRoot adds the results from the bootstrap build to the classpath and launches the actual JDrupes Builder project.
  • Field Details

    • jdbldProps

      The JDrupes Builder properties read from the file .jdbld.properties in the root project.
    • commandLine

      protected org.apache.commons.cli.CommandLine commandLine
      The command line.
  • Constructor Details

    • BootstrapLauncher

      Initializes a new bootstrap launcher.
  • Method Details

    • buildBuilderProject

      public void buildBuilderProject(Class<? extends RootProject> rootPrjCls, String[] args)

      Executes a build. An instance of the class passed as argument is created and used as root project for the build.

      Unless the root project is the only project, the root project must declare dependencies, else the subprojects won't be instantiated.

      Parameters:
      rootPrjCls - the root project
      args - the args
    • rootProject

      Root project.
      Returns:
      the root project
    • main

      public static void main(String[] args)
      The main method.
      Parameters:
      args - the arguments