Package sp.sd.flywayrunner.builder
Class Util
- java.lang.Object
-
- sp.sd.flywayrunner.builder.Util
-
public class Util extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static boolean
doesErrorExist(File logFile)
Simple routine to check for the string "Errors:" in a file.static <T extends ToolInstallation & EnvironmentSpecific<T> & NodeSpecific<T>>
TgetInstallation(T tool, EnvVars env, TaskListener listener, FilePath workspace)
-
-
-
Method Detail
-
doesErrorExist
protected static boolean doesErrorExist(File logFile) throws IOException
Simple routine to check for the string "Errors:" in a file.- Parameters:
logFile
- file to scan.- Returns:
- true if
ERROR_STRING
appears in file. - Throws:
IOException
-
getInstallation
public static <T extends ToolInstallation & EnvironmentSpecific<T> & NodeSpecific<T>> T getInstallation(@Nullable T tool, EnvVars env, TaskListener listener, FilePath workspace) throws IOException, InterruptedException
- Throws:
IOException
InterruptedException
-
-