public ArtifactContext( File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav ) throws IllegalArgumentException { if ( artifactInfo == null ) { throw new IllegalArgumentException( "Parameter artifactInfo must not be null." ); } this.pom = pom; this.artifact = artifact; this.metadata = metadata; this.artifactInfo = artifactInfo; this.gav = gav == null ? artifactInfo.calculateGav() : gav; }
public ArtifactContext( File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav ) throws IllegalArgumentException { if ( artifactInfo == null ) { throw new IllegalArgumentException( "Parameter artifactInfo must not be null." ); } this.pom = pom; this.artifact = artifact; this.metadata = metadata; this.artifactInfo = artifactInfo; this.gav = gav == null ? artifactInfo.calculateGav() : gav; }
public ArtifactContext( File pom, File artifact, File metadata, ArtifactInfo artifactInfo, Gav gav ) throws IllegalArgumentException { if ( artifactInfo == null ) { throw new IllegalArgumentException( "Parameter artifactInfo must not be null." ); } this.pom = pom; this.artifact = artifact; this.metadata = metadata; this.artifactInfo = artifactInfo; this.gav = gav == null ? artifactInfo.calculateGav() : gav; }
public void addArtifactToIndex( String repository, File artifactFile, String groupId, String artifactId, String version, String extension, String classifier ) throws IOException { ArtifactInfo artifactInfo = new ArtifactInfo( repository, groupId, artifactId, version, classifier, extension ); if ( extension != null ) { artifactInfo.setFieldValue( MAVEN.EXTENSION, extension ); } LOGGER.debug( "Adding artifact: {}; repo: {}; type: {}", new String[]{ artifactInfo.getUinfo(), repository, extension } ); getIndexer().addArtifactsToIndex( asList( new ArtifactContext( null, artifactFile, null, artifactInfo, artifactInfo.calculateGav() ) ), indexingContext ); }
final ArtifactContext ac = new ArtifactContext(null, null, null, ai, ai.calculateGav()); if (contextPath == null || context.getGavCalculator().gavToPath(ac.getGav()).startsWith(contextPath)) {
ArtifactContext ac = new ArtifactContext( null, null, null, ai, ai.calculateGav() );
ArtifactContext ac = new ArtifactContext( null, null, null, ai, ai.calculateGav() );
ArtifactContext ac = new ArtifactContext( null, null, null, ai, ai.calculateGav() );