Examples of ArtifactLocator


Examples of org.apache.maven.index.locator.ArtifactLocator

        File pom;
        File artifact;

        if ( file.getName().endsWith( ".pom" ) )
        {
            ArtifactLocator al = new ArtifactLocator( mapper );
            artifact = al.locate( file, context.getGavCalculator(), gav );

            // If we found the matching artifact, switch over to indexing that, instead of the pom
            if ( artifact != null )
            {
                gav = getGavFromPath( context, repositoryPath, artifact.getAbsolutePath() );
View Full Code Here

Examples of org.springframework.osgi.test.provisioning.ArtifactLocator

    // TODO: add a smarter mechanism which can handle 1 or 2 values CSVs
    for (int i = 0; i < artifactId.length; i++) {
      artifactId[i] = StringUtils.trimWhitespace(artifactId[i]);
    }

    ArtifactLocator aLocator = getLocator();

    return (artifactId.length == 3 ? aLocator.locateArtifact(artifactId[0], artifactId[1], artifactId[2])
        : aLocator.locateArtifact(artifactId[0], artifactId[1], artifactId[2], artifactId[3]));
  }
View Full Code Here

Examples of org.springframework.osgi.test.provisioning.ArtifactLocator

    // TODO: add a smarter mechanism which can handle 1 or 2 values CSVs
    for (int i = 0; i < artifactId.length; i++) {
      artifactId[i] = StringUtils.trimWhitespace(artifactId[i]);
    }

    ArtifactLocator aLocator = getLocator();

    return (artifactId.length == 3 ? aLocator.locateArtifact(artifactId[0], artifactId[1], artifactId[2])
        : aLocator.locateArtifact(artifactId[0], artifactId[1], artifactId[2], artifactId[3]));
  }
View Full Code Here

Examples of org.springframework.osgi.test.provisioning.ArtifactLocator

  private boolean isCloverEnabled() {
    return Boolean.getBoolean(CLOVER_PROPERTY);
  }

  protected ArtifactLocator getLocator() {
    ArtifactLocator defaultLocator = super.getLocator();
    // redirect to the clover artifacts
    if (isCloverEnabled()) {
      return new CloverClassifiedArtifactLocator(defaultLocator);
    }
    return defaultLocator;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.