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​(ReactorProject 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​(ReactorProject 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​(ReactorProject project)
        Returns the final target platform of the given project.
      • getTargetPlatformIfAvailable

        public static TargetPlatform getTargetPlatformIfAvailable​(ReactorProject 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.