Class JarFolderRunnerExternalJvm
- java.lang.Object
-
- com.diffplug.gradle.eclipserunner.JarFolderRunnerExternalJvm
-
- All Implemented Interfaces:
EclipseRunner
public class JarFolderRunnerExternalJvm extends Object implements EclipseRunner
Runs an `EclipseApp` in a new JVM using a folder containing a `plugins` folder with the necessary jars.
-
-
Constructor Summary
Constructors Constructor Description JarFolderRunnerExternalJvm(File rootDirectory)If you have a gradleProjectobject handy, useJarFolderRunnerExternalJvm(File, Project)instead, as it will be more reliable.JarFolderRunnerExternalJvm(File rootDirectory, File workingDirectory, Project project)JarFolderRunnerExternalJvm(File rootDirectory, Project project)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(List<String> args)Runs the eclipse instance with the given arguments.voidsetVmArgs(List<String> vmArgs)
-
-
-
Constructor Detail
-
JarFolderRunnerExternalJvm
public JarFolderRunnerExternalJvm(File rootDirectory)
If you have a gradleProjectobject handy, useJarFolderRunnerExternalJvm(File, Project)instead, as it will be more reliable. This constructor may fail if there are fancy classloaders at work.- Parameters:
rootDirectory- a directory which contains a `plugins` folder containing the OSGi jars needed to run applications.
-
JarFolderRunnerExternalJvm
public JarFolderRunnerExternalJvm(File rootDirectory, @Nullable Project project)
- Parameters:
rootDirectory- a directory which contains a `plugins` folder containing the OSGi jars needed to run applications.project- used to calculate the classpath of the newly launched JVM
-
JarFolderRunnerExternalJvm
public JarFolderRunnerExternalJvm(File rootDirectory, @Nullable File workingDirectory, @Nullable Project project)
- Parameters:
rootDirectory- a directory which contains a `plugins` folder containing the OSGi jars needed to run applications.project- used to calculate the classpath of the newly launched JVM
-
-
Method Detail
-
run
public void run(List<String> args) throws Exception
Description copied from interface:EclipseRunnerRuns the eclipse instance with the given arguments.- Specified by:
runin interfaceEclipseRunner- Throws:
Exception
-
-