public class FileUtil extends Object
| Constructor and Description |
|---|
FileUtil() |
| Modifier and Type | Method and Description |
|---|---|
static File |
createTempDirectory() |
static void |
downloadRemotes(File outputDirectory,
List<String> remotes,
io.fabric8.maven.docker.util.Logger log) |
static String |
getAbsolutePath(String fileName)
Returns the absolute path to a file with name
fileName |
static String |
getAbsolutePath(URL url)
Returns the absolute path to a resource addressed by the given
url |
static File |
getRelativePath(File baseDir,
File file) |
static String |
stripPostfix(String text,
String postfix) |
static String |
stripPrefix(String text,
String prefix) |
public static File createTempDirectory()
public static String getAbsolutePath(String fileName)
fileNamefileName - the name of a filepublic static String getAbsolutePath(URL url)
urlurl - resource URLCopyright © 2019. All rights reserved.