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 and Description |
---|
JarFolderRunnerExternalJvm(File rootDirectory)
If you have a gradle
Project object handy, use JarFolderRunnerExternalJvm(File, Project) instead, as it will be more reliable. |
JarFolderRunnerExternalJvm(File rootDirectory,
Project project) |
Modifier and Type | Method and Description |
---|---|
void |
run(List<String> args)
Runs the eclipse instance with the given arguments.
|
public JarFolderRunnerExternalJvm(File rootDirectory)
If you have a gradle Project
object handy, use JarFolderRunnerExternalJvm(File, Project)
instead, as it will be more reliable. This constructor may fail if there are fancy classloaders at work.
rootDirectory
- a directory which contains a plugins
folder containing the OSGi jars needed to run applications.public JarFolderRunnerExternalJvm(File rootDirectory, @Nullable Project project)
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 JVMpublic void run(List<String> args) throws Exception
EclipseRunner
Runs the eclipse instance with the given arguments.
run
in interface EclipseRunner
Exception