Class TychoProjectUtils


  • public class TychoProjectUtils
    extends Object
    • Constructor Detail

      • TychoProjectUtils

        public TychoProjectUtils()
    • Method Detail

      • getDependencyArtifacts

        public static DependencyArtifacts getDependencyArtifacts​(org.apache.maven.project.MavenProject project)
                                                          throws 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:
        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 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:
        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 List<DependencySeed> getDependencySeeds​(org.apache.maven.project.MavenProject project)
        Returns the (editable) list of DependencySeeds for the given project.