Package scala_maven

Class 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.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • TychoUtilities

        public TychoUtilities()
    • 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)