Class EclipseIniLauncher
java.lang.Object
com.diffplug.gradle.eclipserunner.EclipseIniLauncher
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 its
BundleContext.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRepresents a running instance of the equinox OSGi container. -
Constructor Summary
ConstructorsConstructorDescriptionEclipseIniLauncher(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
Modifier and TypeMethodDescriptionopen()Opens the eclipse runtime, and returns an instance ofEclipseIniLauncher.Runningwhich allows access to the underlyingBundleContext.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 Details
-
EclipseIniLauncher
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 Details
-
open
Opens the eclipse runtime, and returns an instance ofEclipseIniLauncher.Runningwhich allows access to the underlyingBundleContext.- Throws:
Exception
-
run
Runs the equinox launcher (callsopen()and immediately closes it).- Throws:
Exception
-
parseBundlesDotInfo
Parses `configuration/org.eclipse.equinox.simpleconfigurator/bundles.info` into a list of files.
-