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 void
finalize()
void
Transfer 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.void
Transfer an Ivy resource to a VFS repositoryMethods inherited from class org.apache.ivy.plugins.repository.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
protected void finalize() -
getResource
Get a VfsResource- Parameters:
vfsURI
- aString
identifying 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
- aString
identifying the VFS resource to be fetcheddestination
- aFile
identifying 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:
put
in classAbstractRepository
- Parameters:
source
- aFile
identifying the local file to transfer to the repositoryvfsURI
- aString
identifying the destination VFS Resource.overwrite
- whether to overwrite an existing resource.- Throws:
IOException
- on failure.- See Also:
-