Class VersionSpecification

    • Method Detail

      • toSelected

        public static Set<aQute.maven.api.Archive> toSelected​(VersionSpecification[] specs,
                                                              aQute.maven.api.Revision revision)
        Match a revision against the version specifications and return the archives that are matches by any specification.
        Parameters:
        specs - the specs
        revision - the revision
        Returns:
        the sets the result
      • toSelected

        public static Set<BoundArchivetoSelected​(VersionSpecification[] specs,
                                                   BoundRevision revision)
        Match a revision against the version specifications and return the archives that are matches by any specification.
        Parameters:
        specs - the specs
        revision - the revision
        Returns:
        the sets the result
      • isForced

        public static boolean isForced​(VersionSpecification[] specs,
                                       aQute.maven.api.Archive archive)
        Checks if is forced.
        Parameters:
        specs - the specs
        archive - the archive
        Returns:
        true, if is forced
      • excluded

        public static MavenVersionRange excluded​(VersionSpecification[] specs,
                                                 String artifact)
        Find the exclude version range for the artifact with the given name. Return MavenVersionRange.NONE if there is no exclude defined.
        Parameters:
        specs - the specs
        artifact - the artifact name
        Returns:
        the sets the result
      • matches

        public boolean matches​(String name)
        Match the given artifact name against the specification.
        Parameters:
        name - the name
        Returns:
        true, if it matches