| Type | Name and description |
|---|---|
static org.slf4j.Logger |
logger_ |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static int |
copyDirectory(java.nio.file.Path source, java.nio.file.Path target, boolean skipIfIdentical = true)Copies descendent files and directories recursively from the source directory into the target directory. |
|
static void |
deleteDirectory(java.nio.file.Path directory)delete the directory recursively. the specified directory will be deleted. |
|
static void |
deleteDirectoryContents(java.nio.file.Path targetDirectory)delete the files and directories contained in the targetDirectory recursively, the targetDirectory itself will be retained. |
|
static java.nio.file.Path |
downloadFile(java.lang.String remoteUrl, java.lang.String localDir)Usage example: Path file = downloadFile('http://central.maven.org/maven2/ru/yandex/qatools/ashot/ashot/1.5.4/ashot-1.5.4.jar', 'Drivers') |
|
static java.nio.file.Path |
downloadFile(java.lang.String remoteUrl, java.nio.file.Path localDir) |
|
static java.nio.file.Path |
downloadFile(java.net.URL remoteUrl, java.lang.String localDir) |
|
static java.nio.file.Path |
downloadFile(java.net.URL remoteUrl, java.nio.file.Path localDir)Usage example: Path file = downloadFile(new URL('http://central.maven.org/maven2/ru/yandex/qatools/ashot/ashot/1.5.4/ashot-1.5.4.jar'), Paths.get('Drivers')) |
|
static java.lang.String |
getClassShortName(java.lang.Class clazz)Returns a short name of a Class stripping the package. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Copies descendent files and directories recursively from the source directory into the target directory.
source - a directory from which files and directories are copiedtarget - a directory into which files and directories are copiedskipExisting - default to truedelete the directory recursively. the specified directory will be deleted.
delete the files and directories contained in the targetDirectory recursively, the targetDirectory itself will be retained.
Usage example:
Path file = downloadFile('http://central.maven.org/maven2/ru/yandex/qatools/ashot/ashot/1.5.4/ashot-1.5.4.jar', 'Drivers')remoteUrl - of the file to downloadlocalDir - where the file is savedUsage example:
Path file = downloadFile(new URL('http://central.maven.org/maven2/ru/yandex/qatools/ashot/ashot/1.5.4/ashot-1.5.4.jar'), Paths.get('Drivers'))remoteUrl - of the file to downloadlocalDir - where the file is savedReturns a short name of a Class stripping the package. For example, if
com.kazurayam.visualtestinginks.gradle.Helpersis given as
clazz, then returns
Helpers
clazz - Class instance