Class BuildArtifactMatcher

java.lang.Object
com.polarion.alm.builder.util.BuildArtifactMatcher

public class BuildArtifactMatcher extends Object
Matching selectors and artifacts.
Version:
$Revision$ $Date$
Author:
Stepan Roh, Polarion Software
See Also:
  • Method Details

    • matches

      public static boolean matches(IBuildArtifactSelector selector, IBuildArtifact artifact)
      Match.
      Parameters:
      selector - selector
      artifact - build artifact
      Returns:
      true if matches, false otherwise
    • matches

      public static boolean matches(Collection selectors, IBuildArtifact artifact)
      Match.

      Empty collection matches everything.

      Parameters:
      selectors - Collection of IBuildArtifactSelectors
      artifact - build artifact
      Returns:
      true if matches, false otherwise
    • matches

      public static boolean matches(IBuildArtifactSelector selector, String groupId, String artifactId, String repoTag)
      Match.
      Parameters:
      selector - selector
      groupId - group id
      artifactId - artifatc id
      repoTag - repository tag
      Returns:
      true if matches, false otherwise
    • matches

      public static boolean matches(Collection selectors, String groupId, String artifactId, String repoTag)
      Match.

      Empty collection matches everything.

      Parameters:
      selectors - Collection of IBuildArtifactSelectors
      groupId - group id
      artifactId - artifatc id
      repoTag - repository tag
      Returns:
      true if matches, false otherwise