Class FileUtil
- java.lang.Object
-
- org.jenkinsci.plugins.sqlplus.script.runner.FileUtil
-
public class FileUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addExit(String content, FilePath filePath)
static void
addExitInTheEnd(FilePath filePath)
static FilePath
createTempScript(Run<?,?> build, FilePath workspace, String content, boolean agentMachine)
static boolean
findFile(String name, File file)
static boolean
hasExitCode(FilePath filePath)
-
-
-
Method Detail
-
hasExitCode
public static boolean hasExitCode(FilePath filePath) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
addExit
public static void addExit(String content, FilePath filePath) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
addExitInTheEnd
public static void addExitInTheEnd(FilePath filePath) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
createTempScript
public static FilePath createTempScript(Run<?,?> build, FilePath workspace, String content, boolean agentMachine) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-