Class VfsRepository
- java.lang.Object
-
- org.apache.ivy.plugins.repository.AbstractRepository
-
- org.apache.ivy.plugins.repository.vfs.VfsRepository
-
- All Implemented Interfaces:
Repository
public class VfsRepository extends AbstractRepository
Implementation of a VFS repository
-
-
Constructor Summary
Constructors Constructor Description VfsRepository()
Create a new Ivy VFS Repository InstanceVfsRepository(TimeoutConstraint timeoutConstraint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
void
get(java.lang.String srcVfsURI, java.io.File destination)
Transfer a VFS Resource from the repository to the local file system.Resource
getResource(java.lang.String vfsURI)
Get a VfsResourcejava.util.List<java.lang.String>
list(java.lang.String vfsURI)
Return a listing of the contents of a parent directory.void
put(java.io.File source, java.lang.String vfsURI, boolean overwrite)
Transfer an Ivy resource to a VFS repository-
Methods 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 Detail
-
VfsRepository
public VfsRepository()
Create a new Ivy VFS Repository Instance
-
VfsRepository
public VfsRepository(TimeoutConstraint timeoutConstraint)
-
-
Method Detail
-
finalize
protected void finalize()
- Overrides:
finalize
in classjava.lang.Object
-
getResource
public Resource getResource(java.lang.String vfsURI) throws java.io.IOException
Get a VfsResource- Parameters:
vfsURI
- aString
identifying a VFS Resource- Returns:
- Resource
- Throws:
java.io.IOException
- on failure- See Also:
- "Supported File Systems in the jakarta-commons-vfs documentation"
-
get
public void get(java.lang.String srcVfsURI, java.io.File destination) throws java.io.IOException
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:
java.io.IOException
- on failure- See Also:
- "Supported File Systems in the jakarta-commons-vfs documentation"
-
list
public java.util.List<java.lang.String> list(java.lang.String vfsURI) throws java.io.IOException
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:
java.io.IOException
- on failure.- See Also:
- "Supported File Systems in the jakarta-commons-vfs documentation"
-
put
public void put(java.io.File source, java.lang.String vfsURI, boolean overwrite) throws java.io.IOException
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:
java.io.IOException
- on failure.- See Also:
- "Supported File Systems in the jakarta-commons-vfs documentation"
-
-