Class MbrUpdater
java.lang.Object
aQute.bnd.repository.maven.provider.MbrUpdater
Functionality originating from MbrCommand and used by RepoActions to allow
updating revisions in a MavenBndRepository.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordContainer for a MavenVersion which may or may not be available from maven central.static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateUpdateRevisions(aQute.lib.collections.MultiMap<Archive, aQute.bnd.version.MavenVersion> updates) Calculates the new revisions for each archive.static aQute.lib.collections.MultiMap<Archive,aQute.bnd.version.MavenVersion> getUpdates(MbrUpdater.Scope scope, Collection<MavenBndRepository> repos, Collection<Archive> archives, boolean snapshotlike) booleanUpdates the repo with the new revisions from the map.
-
Constructor Details
-
MbrUpdater
-
-
Method Details
-
getUpdates
public static aQute.lib.collections.MultiMap<Archive,aQute.bnd.version.MavenVersion> getUpdates(MbrUpdater.Scope scope, Collection<MavenBndRepository> repos, Collection<Archive> archives, boolean snapshotlike) throws Exception - Throws:
Exception
-
calculateUpdateRevisions
public Map<Archive,MbrUpdater.MavenVersionResult> calculateUpdateRevisions(aQute.lib.collections.MultiMap<Archive, aQute.bnd.version.MavenVersion> updates) Calculates the new revisions for each archive.- Parameters:
updates-- Returns:
- a map the revision for each archive.
-
update
Updates the repo with the new revisions from the map.- Parameters:
map-- Returns:
trueif there were changes.falseotherwise.- Throws:
IOException
-