Class PathUtil
java.lang.Object
de.tracetronic.jenkins.plugins.ecutest.util.PathUtil
Utility class providing file path operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
copyRemoteFile
(FilePath src, FilePath dest) Copies a file from source to destination which can be on remote.static String
makeAbsolutePath
(String path, FilePath relativeTo) Builds an absolute path by given relative path.
-
Method Details
-
makeAbsolutePath
Builds an absolute path by given relative path.- Parameters:
path
- the path to make absoluterelativeTo
- the relative path- Returns:
- the absolute path
-
copyRemoteFile
public static boolean copyRemoteFile(FilePath src, FilePath dest) throws IOException, InterruptedException Copies a file from source to destination which can be on remote.- Parameters:
src
- the source filedest
- the destination file- Returns:
true
if successful,false
otherwise- Throws:
IOException
- signals that an I/O exception has occurredInterruptedException
- if the current thread is interrupted while waiting for the completion
-