Class RepoStatus

  • All Implemented Interfaces:
    java.lang.Comparable<RepoStatus>

    public class RepoStatus
    extends java.lang.Object
    implements java.lang.Comparable<RepoStatus>
    Determines where a P2Unit is available. The repo() method returns one of the following values:
    • maven central means the jar is on maven central. (MAVEN_CENTRAL)
    • maven central? means the jar on maven central according to this heuristic. (MAVEN_CENTRAL_INFERRED)
    • p2 4.25 to indicate that the jar is on p2. The part after the p2 is the last segment in the p2 repository URL to help disambiguate between multiple p2 repositories. (P2_)
    • Field Detail

      • MAVEN_

        public static final java.lang.String MAVEN_
        This unit is available on some maven server, determined after this token.
        See Also:
        Constant Field Values
      • MAVEN_CENTRAL

        public static final java.lang.String MAVEN_CENTRAL
        This unit is available on Maven Central because of a property maven-repository = eclipse.maven.central.mirror
        See Also:
        Constant Field Values
      • P2_

        public static final java.lang.String P2_
        This unit is only available in p2.
        See Also:
        Constant Field Values
    • Method Detail

      • coordinate

        public java.lang.String coordinate()
        group:artifact:version if isOnMavenCentral() else id:version.
      • repo

        public java.lang.String repo()
        UI string for showing where jars come from in a table, see class description.
      • compareTo

        public int compareTo​(RepoStatus o)
        Sorts on repo first, then based on coordinate.
        Specified by:
        compareTo in interface java.lang.Comparable<RepoStatus>