Class TychoProjectUtils


  • public class TychoProjectUtils
    extends java.lang.Object
    • Field Detail

      • TYCHO_NOT_CONFIGURED

        private static final java.lang.String TYCHO_NOT_CONFIGURED
        See Also:
        Constant Field Values
    • Constructor Detail

      • TychoProjectUtils

        public TychoProjectUtils()
    • Method Detail

      • getDependencyArtifacts

        public static DependencyArtifacts getDependencyArtifacts​(org.apache.maven.project.MavenProject project)
                                                          throws java.lang.IllegalStateException
        Returns the DependencyArtifacts instance associated with the given project.
        Parameters:
        project - a Tycho project
        Returns:
        the resolved dependencies of the given project; never null
        Throws:
        java.lang.IllegalStateException - if the given project does not have the resolved project dependencies stored
      • getTargetPlatformConfiguration

        public static TargetPlatformConfiguration getTargetPlatformConfiguration​(org.apache.maven.project.MavenProject project)
                                                                          throws java.lang.IllegalStateException
        Returns the TargetPlatformConfiguration instance associated with the given project.
        Parameters:
        project - a Tycho project
        Returns:
        the target platform configuration for the given project; never null
        Throws:
        java.lang.IllegalStateException - if the given project does not have an associated target platform configuration
      • getTargetPlatform

        public static TargetPlatform getTargetPlatform​(org.apache.maven.project.MavenProject project)
        Returns the final target platform of the given project.
      • getTargetPlatformIfAvailable

        public static TargetPlatform getTargetPlatformIfAvailable​(org.apache.maven.project.MavenProject project)
        Returns the final target platform of the given project, or null if the target platform is not available. Projects with -Dtycho.targetPlatform use the legacy LocalDependencyResolver, which doesn't provide the TargetPlatform interface.
      • getExecutionEnvironmentConfiguration

        public static ExecutionEnvironmentConfiguration getExecutionEnvironmentConfiguration​(org.apache.maven.project.MavenProject project)
      • getDependencySeeds

        public static java.util.List<DependencySeed> getDependencySeeds​(org.apache.maven.project.MavenProject project)
        Returns the (editable) list of DependencySeeds for the given project.