Class EclipseIniLauncher
- java.lang.Object
-
- com.diffplug.gradle.eclipserunner.EclipseIniLauncher
-
public class EclipseIniLauncher extends Object
Given a directory containing osgi jars, this class verifies that the core bundles are available, and provides an API for instantiating the OSGi runtime and accessing itsBundleContext.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classEclipseIniLauncher.RunningRepresents a running instance of the equinox OSGi container.
-
Constructor Summary
Constructors Constructor Description EclipseIniLauncher(File installationRoot)Wraps a directory of jars in the launcher API, and ensures the the directory contains the plugins required to run a barebones equinox instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EclipseIniLauncher.Runningopen()Opens the eclipse runtime, and returns an instance ofEclipseIniLauncher.Runningwhich allows access to the underlyingBundleContext.static List<File>parseBundlesDotInfo(File eclipseRoot)Parses `configuration/org.eclipse.equinox.simpleconfigurator/bundles.info` into a list of files.voidrun()Runs the equinox launcher (callsopen()and immediately closes it).
-
-
-
Constructor Detail
-
EclipseIniLauncher
public EclipseIniLauncher(File installationRoot) throws FileNotFoundException, IOException
Wraps a directory of jars in the launcher API, and ensures the the directory contains the plugins required to run a barebones equinox instance.- Throws:
FileNotFoundExceptionIOException
-
-
Method Detail
-
open
public EclipseIniLauncher.Running open() throws Exception
Opens the eclipse runtime, and returns an instance ofEclipseIniLauncher.Runningwhich allows access to the underlyingBundleContext.- Throws:
Exception
-
run
public void run() throws ExceptionRuns the equinox launcher (callsopen()and immediately closes it).- Throws:
Exception
-
-