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

  • Constructor Details

    • BootstrapLauncher

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

      Instantiates a new bootstrap launcher. 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
  • Method Details

    • provide

      public <T extends Resource> Stream<T> provide(ResourceRequest<T> request)
      Description copied from interface: Launcher
      Provide the requested resources from the root project.
      Type Parameters:
      T - the requested type
      Parameters:
      request - the request
      Returns:
      the stream
    • main

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