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 gradleProject
object 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 void
run(List<String> args)
Runs the eclipse instance with the given arguments.void
setVmArgs(List<String> vmArgs)
-
-
-
Constructor Detail
-
JarFolderRunnerExternalJvm
public JarFolderRunnerExternalJvm(File rootDirectory)
If you have a gradleProject
object 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:EclipseRunner
Runs the eclipse instance with the given arguments.- Specified by:
run
in interfaceEclipseRunner
- Throws:
Exception
-
-