com.github.goldin.plugins.copy
Class NetworkUtils
java.lang.Object
com.github.goldin.plugins.copy.NetworkUtils
- All Implemented Interfaces:
- groovy.lang.GroovyObject
public class NetworkUtils
- extends Object
- implements groovy.lang.GroovyObject
|
Method Summary |
static Object |
download(CopyResource resource,
String remotePath,
File targetDirectory,
boolean verbose,
com.github.goldin.gcommons.util.GroovyConfig groovyConfig)
|
static void |
ftpDownload(File localDirectory,
String remotePath,
CopyResource resource,
com.github.goldin.gcommons.util.GroovyConfig groovyConfig,
boolean verbose)
|
static void |
ftpUpload(File file,
String remotePath,
boolean verbose)
|
static org.apache.maven.plugin.logging.Log |
getLog()
|
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String property)
|
static File |
httpDownload(File parentDirectory,
String httpUrl,
boolean verbose)
|
Object |
invokeMethod(String method,
Object arguments)
|
static void |
scpDownload(File localDirectory,
String remotePath,
boolean verbose)
|
static void |
scpUpload(File file,
String remotePath,
boolean verbose)
|
void |
setMetaClass(groovy.lang.MetaClass mc)
|
void |
setProperty(String property,
Object value)
|
static void |
sshexec(String command,
String username,
String password,
String host,
String directory)
|
static void |
upload(String[] remotePaths,
File directory,
List<String> includes,
List<String> excludes,
boolean verbose,
boolean failIfNotFound)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkUtils
public NetworkUtils()
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass in interface groovy.lang.GroovyObject
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass in interface groovy.lang.GroovyObject
invokeMethod
public Object invokeMethod(String method,
Object arguments)
- Specified by:
invokeMethod in interface groovy.lang.GroovyObject
getProperty
public Object getProperty(String property)
- Specified by:
getProperty in interface groovy.lang.GroovyObject
setProperty
public void setProperty(String property,
Object value)
- Specified by:
setProperty in interface groovy.lang.GroovyObject
getLog
public static org.apache.maven.plugin.logging.Log getLog()
download
public static Object download(CopyResource resource,
String remotePath,
File targetDirectory,
boolean verbose,
com.github.goldin.gcommons.util.GroovyConfig groovyConfig)
upload
public static void upload(String[] remotePaths,
File directory,
List<String> includes,
List<String> excludes,
boolean verbose,
boolean failIfNotFound)
httpDownload
public static File httpDownload(File parentDirectory,
String httpUrl,
boolean verbose)
sshexec
public static void sshexec(String command,
String username,
String password,
String host,
String directory)
ftpDownload
public static void ftpDownload(File localDirectory,
String remotePath,
CopyResource resource,
com.github.goldin.gcommons.util.GroovyConfig groovyConfig,
boolean verbose)
ftpUpload
public static void ftpUpload(File file,
String remotePath,
boolean verbose)
scpDownload
public static void scpDownload(File localDirectory,
String remotePath,
boolean verbose)
scpUpload
public static void scpUpload(File file,
String remotePath,
boolean verbose)
Copyright © 2012. All Rights Reserved.