Class LaunchpadEnvironment


  • public class LaunchpadEnvironment
    extends Object
    Common settings for all launchpad instances.
    • Field Detail

      • WORK_DIR_NAME

        public static final String WORK_DIR_NAME
        The work directory created by starting launchpad.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LaunchpadEnvironment

        public LaunchpadEnvironment​(File launchpadJar,
                                    boolean cleanWorkingDirectory,
                                    boolean shutdownOnExit,
                                    int readyTimeOutSec,
                                    String debug)
    • Method Detail

      • isShutdownOnExit

        public boolean isShutdownOnExit()
      • getReadyTimeOutSec

        public int getReadyTimeOutSec()
      • prepare

        public File prepare​(File folder)
                     throws IOException
        Prepare a new instance.
        Parameters:
        folder - The target folder for the instance
        Returns:
        The launchpad jar
        Throws:
        IOException - if an error occurs.
      • getDebug

        public String getDebug()
        Returns:
        the global debug parameter for all Sling instances. Set through StartMojo.debug.