Class LaunchpadEnvironment
- java.lang.Object
-
- org.apache.sling.maven.slingstart.run.LaunchpadEnvironment
-
public class LaunchpadEnvironment extends Object
Common settings for all launchpad instances.
-
-
Field Summary
Fields Modifier and Type Field Description static StringWORK_DIR_NAMEThe work directory created by starting launchpad.
-
Constructor Summary
Constructors Constructor Description LaunchpadEnvironment(File launchpadJar, boolean cleanWorkingDirectory, boolean shutdownOnExit, int readyTimeOutSec, String debug)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDebug()intgetReadyTimeOutSec()booleanisShutdownOnExit()Fileprepare(File folder)Prepare a new instance.
-
-
-
Field Detail
-
WORK_DIR_NAME
public static final String WORK_DIR_NAME
The work directory created by starting launchpad.- See Also:
- Constant Field Values
-
-
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.
-
-