Class VfsRepository
java.lang.Object
org.apache.ivy.plugins.repository.AbstractRepository
org.apache.ivy.plugins.repository.vfs.VfsRepository
- All Implemented Interfaces:
Repository
Implementation of a VFS repository
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new Ivy VFS Repository InstanceVfsRepository(TimeoutConstraint timeoutConstraint) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()voidTransfer a VFS Resource from the repository to the local file system.getResource(String vfsURI) Get a VfsResourceReturn a listing of the contents of a parent directory.voidTransfer an Ivy resource to a VFS repositoryMethods inherited from class AbstractRepository
addTransferListener, fireTransferCompleted, fireTransferCompleted, fireTransferError, fireTransferError, fireTransferEvent, fireTransferInitiated, fireTransferProgress, fireTransferStarted, fireTransferStarted, getFileSeparator, getName, getTimeoutConstraint, hasTransferListener, put, removeTransferListener, setName, standardize, toString
-
Constructor Details
-
VfsRepository
public VfsRepository()Create a new Ivy VFS Repository Instance -
VfsRepository
-
-
Method Details
-
finalize
-
getResource
Get a VfsResource- Parameters:
vfsURI- aStringidentifying a VFS Resource- Returns:
- Resource
- Throws:
IOException- on failure- See Also:
-
get
Transfer a VFS Resource from the repository to the local file system.- Parameters:
srcVfsURI- aStringidentifying the VFS resource to be fetcheddestination- aFileidentifying the destination file- Throws:
IOException- on failure- See Also:
-
list
Return a listing of the contents of a parent directory. Listing is a set of strings representing VFS URIs.- Parameters:
vfsURI- providing identifying a VFS provided resource- Returns:
- List
- Throws:
IOException- on failure.- See Also:
-
put
Transfer an Ivy resource to a VFS repository- Overrides:
putin classAbstractRepository- Parameters:
source- aFileidentifying the local file to transfer to the repositoryvfsURI- aStringidentifying the destination VFS Resource.overwrite- whether to overwrite an existing resource.- Throws:
IOException- on failure.- See Also:
-