org.apache.felix.obrplugin
public class RemoteFileManager extends Object
| Constructor Summary | |
|---|---|
| RemoteFileManager(WagonManager wm, Settings settings, Log log)
initialize main information. | |
| Method Summary | |
|---|---|
| void | connect(String id, String url)
connect the current object to repository given in constructor. |
| void | disconnect()
disconnect the current object. |
| File | get(String url, String suffix)
get a file from the current repository connected. |
| static ProxyInfo | getProxyInfo(Settings settings)
Convenience method to map a Proxy object from the user system settings to a ProxyInfo object. |
| boolean | isLockedFile(String fileName)
this method indicates if the targeted file is locked or not. |
| void | lockFile(String fileName, boolean ignoreLock) |
| void | put(File file, String url)
put a file on the current repository connected. |
| String | toString() |
| void | unlockFile(String fileName) |
Parameters: wm WagonManager provides by maven settings settings of the current project provides by maven log logger
Parameters: id repository id url repository url
Throws: MojoExecutionException
Parameters: url url to the targeted file suffix suggested file suffix
Returns: get a file descriptor on the required resource
Throws: MojoExecutionException
Parameters: settings project settings given by maven
Returns: a proxyInfo object instancied or null if no active proxy is define in the settings.xml
Parameters: remote connection manager fileName name targeted
Returns: true if the required file is locked, else false
Throws: MojoExecutionException
Parameters: file file to upload url url to copy file
Throws: MojoExecutionException