@Override public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository ) { return localRepository.pathOfLocalRepositoryMetadata( metadata, repository ); }
public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository ) { return userLocalArtifactRepository.pathOfLocalRepositoryMetadata( metadata, repository ); }
private Date getLocalCopyLastModified( ArtifactRepository localRepository, RepositoryMetadata metadata ) { String metadataPath = localRepository.pathOfLocalRepositoryMetadata( metadata, localRepository ); File metadataFile = new File( localRepository.getBasedir(), metadataPath ); return metadataFile.isFile() ? new Date( metadataFile.lastModified() ) : null; }
public String getPathForLocalMetadata( Metadata metadata ) { return delegate.pathOfLocalRepositoryMetadata( new ArtifactMetadataAdapter( metadata ), delegate ); }
public String getPathForRemoteMetadata( Metadata metadata, RemoteRepository repository, String context ) { return delegate.pathOfLocalRepositoryMetadata( new ArtifactMetadataAdapter( metadata ), new ArtifactRepositoryAdapter( repository ) ); }
public void storeInLocalRepository( ArtifactRepository localRepository, ArtifactRepository remoteRepository ) throws RepositoryMetadataStoreException { File f = transformedFile == null ? originalFile : transformedFile; if ( f == null ) { return; } File destination = new File( localRepository.getBasedir(), localRepository.pathOfLocalRepositoryMetadata( this, remoteRepository ) ); // ---------------------------------------------------------------------------- // I'm fully aware that the file could just be moved using File.rename but // there are bugs in various JVM that have problems doing this across // different filesystem. So we'll incur the small hit to actually copy // here and be safe. jvz. // ---------------------------------------------------------------------------- try { FileUtils.copyFile( f, destination ); } catch ( IOException e ) { throw new RepositoryMetadataStoreException( "Error copying POM to the local repository.", e ); } }
public void storeInLocalRepository( ArtifactRepository localRepository, ArtifactRepository remoteRepository ) throws RepositoryMetadataStoreException { File destination = new File( localRepository.getBasedir(), localRepository.pathOfLocalRepositoryMetadata( this, remoteRepository ) ); // ---------------------------------------------------------------------------- // I'm fully aware that the file could just be moved using File.rename but // there are bugs in various JVM that have problems doing this across // different filesystem. So we'll incur the small hit to actually copy // here and be safe. jvz. // ---------------------------------------------------------------------------- try { FileUtils.copyFile( file, destination ); } catch ( IOException e ) { throw new RepositoryMetadataStoreException( "Error copying POM to the local repository.", e ); } }
new File( localRepo.getBasedir(), localRepo.pathOfLocalRepositoryMetadata( metadata, remoteRepository ) );
localRepository.pathOfLocalRepositoryMetadata( this, remoteRepository ) );
localRepository.pathOfLocalRepositoryMetadata( repoMetadata, remoteRepository ) );
localRepository.pathOfLocalRepositoryMetadata( metadata, deploymentRepository ) );
new File( localRepo.getBasedir(), localRepo.pathOfLocalRepositoryMetadata( metadata, repository ) ); boolean update;
public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository ) { return artifactRepository.pathOfLocalRepositoryMetadata( metadata, repository ); } public String getUrl()
public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository repository ) { return artifactRepository.pathOfLocalRepositoryMetadata( metadata, repository ); } public String getUrl()
/** * Gets the path of the specified artifact metadata within the local repository. Note that the returned path need * not exist (yet). * * @param metadata The artifact metadata whose local repo path should be determined, must not be <code>null</code>. * @return The absolute path to the artifact metadata when installed, never <code>null</code>. */ protected File getLocalRepoFile( ArtifactMetadata metadata ) { String path = localRepository.pathOfLocalRepositoryMetadata( metadata, localRepository ); return new File( localRepository.getBasedir(), path ); }
public void storeInLocalRepository( ArtifactRepository localRepository, ArtifactRepository remoteRepository ) throws RepositoryMetadataStoreException { File destination = new File( localRepository.getBasedir(), localRepository.pathOfLocalRepositoryMetadata( this, remoteRepository ) ); try { FileUtils.copyFile( file, destination ); } catch ( IOException e ) { throw new RepositoryMetadataStoreException( "Error copying ASC to the local repository.", e ); } }
public void storeInLocalRepository( ArtifactRepository localRepository, ArtifactRepository remoteRepository ) throws RepositoryMetadataStoreException { File destination = new File( localRepository.getBasedir(), localRepository.pathOfLocalRepositoryMetadata( this, remoteRepository ) ); destination.getParentFile().mkdirs(); Writer writer = null; try { writer = WriterFactory.newXmlWriter( destination ); new DecorationXpp3Writer().write( writer, decoration ); writer.close(); writer = null; } catch ( IOException e ) { throw new RepositoryMetadataStoreException( "Error saving in local repository", e ); } finally { IOUtil.close( writer ); } }
String path = localRepository.pathOfLocalRepositoryMetadata(o, deploymentRepository); File destination = new File(localRepository.getBasedir(), path); addFile(destination, "adding site descriptor file : ", result, includePattern, excludePattern);
o.getClass().getSimpleName())) { String path = localRepository.pathOfLocalRepositoryMetadata( o, deploymentRepository); File destination = new File(