|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.obrplugin.RemoteFileManager
public class RemoteFileManager
this class is used to manage all connections by wagon.
| Constructor Summary | |
|---|---|
RemoteFileManager(org.apache.maven.artifact.manager.WagonManager wm,
org.apache.maven.settings.Settings settings,
org.apache.maven.plugin.logging.Log log)
initialize main information. |
|
| Method Summary | |
|---|---|
void |
connect(java.lang.String id,
java.lang.String url)
connect the current object to repository given in constructor. |
void |
disconnect()
disconnect the current object. |
java.io.File |
get(java.lang.String url,
java.lang.String suffix)
get a file from the current repository connected. |
static org.apache.maven.wagon.proxy.ProxyInfo |
getProxyInfo(org.apache.maven.settings.Settings settings)
Convenience method to map a Proxy object from the user system settings to a ProxyInfo object. |
boolean |
isLockedFile(java.lang.String fileName)
this method indicates if the targeted file is locked or not. |
void |
lockFile(java.lang.String fileName,
boolean ignoreLock)
|
void |
put(java.io.File file,
java.lang.String url)
put a file on the current repository connected. |
java.lang.String |
toString()
|
void |
unlockFile(java.lang.String fileName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteFileManager(org.apache.maven.artifact.manager.WagonManager wm,
org.apache.maven.settings.Settings settings,
org.apache.maven.plugin.logging.Log log)
wm - WagonManager provides by mavensettings - settings of the current project provides by mavenlog - logger| Method Detail |
|---|
public void disconnect()
public void connect(java.lang.String id,
java.lang.String url)
throws org.apache.maven.plugin.MojoExecutionException
id - repository idurl - repository url
org.apache.maven.plugin.MojoExecutionException
public java.io.File get(java.lang.String url,
java.lang.String suffix)
throws org.apache.maven.plugin.MojoExecutionException
url - url to the targeted filesuffix - suggested file suffix
org.apache.maven.plugin.MojoExecutionException
public void put(java.io.File file,
java.lang.String url)
throws org.apache.maven.plugin.MojoExecutionException
file - file to uploadurl - url to copy file
org.apache.maven.plugin.MojoExecutionExceptionpublic static org.apache.maven.wagon.proxy.ProxyInfo getProxyInfo(org.apache.maven.settings.Settings settings)
settings - project settings given by maven
public void lockFile(java.lang.String fileName,
boolean ignoreLock)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void unlockFile(java.lang.String fileName)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public boolean isLockedFile(java.lang.String fileName)
throws org.apache.maven.plugin.MojoExecutionException
fileName - name targeted
org.apache.maven.plugin.MojoExecutionExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||