@Override public void processFile( String path ) throws ConsumerException { // Ignore paths like .index etc if ( !path.startsWith( "." ) ) { try { ArtifactReference artifact = repository.toArtifactReference( path ); updateVersionMetadata( artifact, path ); updateProjectMetadata( artifact, path ); } catch ( LayoutException e ) { log.info( "Not processing path that is not an artifact: {} ({})", path, e.getMessage( ) ); } } }
@Override public void processFile( String path ) throws ConsumerException { // Ignore paths like .index etc if ( !path.startsWith( "." ) ) { try { ArtifactReference artifact = repository.toArtifactReference( path ); updateVersionMetadata( artifact, path ); updateProjectMetadata( artifact, path ); } catch ( LayoutException e ) { log.info( "Not processing path that is not an artifact: {} ({})", path, e.getMessage() ); } } }
).filter( filetypes::matchesArtifactPattern ).findFirst().orElse( null ); if (result!=null) { return managedRepository.toArtifactReference( result );
ArtifactReference artifact = repository.toArtifactReference( path ); ArtifactReference newArtifactReference = repository.toArtifactReference( artifactFile.toAbsolutePath( ).toString() ); newArtifactReference.setVersion( version );
@Override public void processFile( String path ) throws ConsumerException { try { ArtifactReference reference = managedRepository.toArtifactReference( path ); Artifact artifact = artifactFactory.createArtifact( reference.getGroupId(), reference.getArtifactId(), reference.getVersion(), reference.getClassifier(), reference.getType() ); artifactConverter.convert( artifact, destinationRepository ); } catch ( LayoutException e ) { log.warn( "Unable to convert artifact: {} : {}",path , e.getMessage(), e ); } catch ( ArtifactConversionException e ) { log.warn( "Unable to convert artifact: {} : {}",path , e.getMessage(), e ); } }
@Override public void processFile( String path ) throws ConsumerException { try { ArtifactReference reference = managedRepository.toArtifactReference( path ); Artifact artifact = artifactFactory.createArtifact( reference.getGroupId(), reference.getArtifactId(), reference.getVersion(), reference.getClassifier(), reference.getType() ); artifactConverter.convert( artifact, destinationRepository ); } catch ( LayoutException e ) { log.warn( "Unable to convert artifact: {} : {}",path , e.getMessage(), e ); } catch ( ArtifactConversionException e ) { log.warn( "Unable to convert artifact: {} : {}",path , e.getMessage(), e ); } }
ArtifactReference artifact = repository.toArtifactReference( path );
ArtifactReference artifact = repository.toArtifactReference( path ); ArtifactReference newArtifactReference = repository.toArtifactReference( artifactFile.getAbsolutePath() ); newArtifactReference.setVersion( version );
ArtifactReference artifact = repository.toArtifactReference( path );
try artifact = managedRepositoryContent.toArtifactReference( resourcePath );
ArtifactReference artifactRef = repository.toArtifactReference( path );
ArtifactReference artifactRef = repository.toArtifactReference( path );