Package scala_maven
Class TychoUtilities
- java.lang.Object
-
- scala_maven.TychoUtilities
-
public class TychoUtilities extends java.lang.Object
Grossly hacky utility class which provides the fully unpacked OSGi classpath (ie. including nested .jars) when used in the context of Tycho and Maven 3. The use of reflection is required to avoid wiring in a dependency on either Tycho or Maven 3.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.reflect.Method
getContextValueMethod
private static java.lang.reflect.Method
getLocationsMethod
private static java.lang.String
TychoConstants_CTX_ECLIPSE_PLUGIN_CLASSPATH
-
Constructor Summary
Constructors Constructor Description TychoUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>
addOsgiClasspathElements(org.apache.maven.project.MavenProject project, java.util.List<java.lang.String> defaultClasspathElements)
private static java.lang.Object
getContextValue(org.apache.maven.project.MavenProject project, java.lang.String key)
private static java.util.List<java.io.File>
getLocations(java.lang.Object classpathEntry)
-
-
-
Field Detail
-
TychoConstants_CTX_ECLIPSE_PLUGIN_CLASSPATH
private static final java.lang.String TychoConstants_CTX_ECLIPSE_PLUGIN_CLASSPATH
- See Also:
- Constant Field Values
-
getContextValueMethod
private static final java.lang.reflect.Method getContextValueMethod
-
getLocationsMethod
private static final java.lang.reflect.Method getLocationsMethod
-
-
Method Detail
-
addOsgiClasspathElements
public static java.util.List<java.lang.String> addOsgiClasspathElements(org.apache.maven.project.MavenProject project, java.util.List<java.lang.String> defaultClasspathElements)
-
getContextValue
private static java.lang.Object getContextValue(org.apache.maven.project.MavenProject project, java.lang.String key)
-
getLocations
private static java.util.List<java.io.File> getLocations(java.lang.Object classpathEntry)
-
-