Class BuildProjectLauncher

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

An implementation of a Launcher that launches the build configuration. It expects that the JDrupes Builder project has already been compiled and its classes are available on the classpath.
  • 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

    • BuildProjectLauncher

      public BuildProjectLauncher(ClassLoader classloader, Path buildRoot, String[] args)
      Instantiates a new direct launcher. The classpath is scanned for classes that implement Project but do not implement Masked. One of these must also implement the RootProject interface. The latter is instantiated and registered as root project with all other classes found as direct sub projects.
      Parameters:
      classloader - the classloader
      buildRoot - the build root
      args - the arguments. Flags are processed in the constructor, command line arguments are processed in runCommands().
  • Method Details

    • rootProject

      Description copied from interface: Launcher
      Return the root project.
      Returns:
      the root project
    • runCommands

      public boolean runCommands()
      Execute the commands from the command line.
      Returns:
      true, if successful
    • main

      public static void main(String[] args)
      This main can be used to start the user's JDrupes Builder project from an IDE for debugging purposes. It expects that the JDrupes Builder project has already been compiled (typically by the IDE) and is available on the classpath.
      Parameters:
      args - the arguments