Package dev.equo.solstice.p2
Class RepoStatus
java.lang.Object
dev.equo.solstice.p2.RepoStatus
- All Implemented Interfaces:
Comparable<RepoStatus>
Determines where a P2Unit is available. The
repo() method returns one of the following
values:
maven centralmeans 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.25to 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis unit is available on some maven server, determined after this token.static final StringThis unit is available on Maven Central because of a propertymaven-repository = eclipse.maven.central.mirrorstatic final StringThis unit is probably available on Maven Central because of the logic in MavenCentralMapping.javastatic final StringThis unit is only available in p2. -
Method Summary
Modifier and TypeMethodDescriptionintSorts on repo first, then based on coordinate.group:artifact:version ifisOnMavenCentral()else id:version.static RepoStatusbooleanrepo()UI string for showing where jars come from in a table, see class description.
-
Field Details
-
MAVEN_
This unit is available on some maven server, determined after this token.- See Also:
-
MAVEN_CENTRAL
This unit is available on Maven Central because of a propertymaven-repository = eclipse.maven.central.mirror- See Also:
-
MAVEN_CENTRAL_INFERRED
This unit is probably available on Maven Central because of the logic in MavenCentralMapping.java- See Also:
-
P2_
This unit is only available in p2.- See Also:
-
-
Method Details
-
isOnMavenCentral
public boolean isOnMavenCentral() -
coordinate
group:artifact:version ifisOnMavenCentral()else id:version. -
repo
UI string for showing where jars come from in a table, see class description. -
forUnit
-
compareTo
Sorts on repo first, then based on coordinate.- Specified by:
compareToin interfaceComparable<RepoStatus>
-