| Package | Description |
|---|---|
| com.cloudbees.clickstack.util |
| Modifier and Type | Method and Description |
|---|---|
static void |
Files2.chmodAddReadExecute(Path path) |
static void |
Files2.chmodAddReadWrite(Path path) |
static void |
Files2.chmodReadExecute(Path path)
Deprecated.
|
static void |
Files2.chmodReadOnly(Path path) |
static void |
Files2.chmodReadWrite(Path path)
Deprecated.
|
static void |
Files2.chmodSetReadOnly(Path path) |
static Path |
Files2.copyArtifactToDirectory(Path sourceDir,
String artifactId,
Path dest) |
static void |
Files2.copyDirectoryContent(Path srcDir,
Path destDir)
Copy content for
srcDir to destDir |
static Path |
Files2.copyToDirectory(Path srcFile,
Path destDir)
Copy given
srcFile to given destDir. |
static void |
Files2.deleteDirectory(Path dir)
Delete given
dir and its content (rm -rf). |
static void |
Files2.dump(Path path)
For debugging purpose.
|
static Path |
Files2.findArtifact(Path srcDir,
String artifactId)
Find jar file with name beginning with given
artifactId in given srcDir. |
static Path |
Files2.findArtifact(Path srcDir,
String artifactId,
String type)
Find a file matching
$artifactId*$type in the given srcDir. |
static Path |
Files2.findUniqueChildDirectory(Path srcDir) |
static Path |
Files2.findUniqueDirectoryBeginningWith(Path srcDir,
String pattern) |
static Path |
Files2.findUniqueFolderBeginningWith(Path source,
String pattern)
|
static void |
HttpUtils.get(URL url,
Path destFile)
Save the content of the given
url to the given destFile. |
static void |
Files2.untgz(Path tgzFile,
Path destDir)
TODO recopy file permissions
Uncompress the specified tgz file to the specified destination directory.
|
static void |
Files2.untgz(String tgzFilename,
String destDirname)
Uncompress the specified tgz file to the specified destination directory.
|
static void |
Files2.unzip(Path zipFile,
Path destDir) |
static void |
Files2.unzip(String zipFilename,
String destDirname)
Unzips the specified zip file to the specified destination directory.
|
static void |
Files2.unzipSubDirectoryIfExists(Path zipFile,
String zipSubPath,
Path destDir)
Copy every file of given
zipFile beginning with given zipSubPath to destDir |
static Path |
Files2.unzipSubFileIfExists(Path zipFile,
String zipSubPath,
Path destDir)
Copy every file of given
zipFile beginning with given zipSubPath to destDir |
Copyright © 2013. All Rights Reserved.