Package sp.sd.flywayrunner.builder
Class Util
java.lang.Object
sp.sd.flywayrunner.builder.Util
-
Method Summary
Modifier and TypeMethodDescriptionprotected static booleandoesErrorExist(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 Details
-
doesErrorExist
Simple routine to check for the string "Errors:" in a file.- Parameters:
logFile- file to scan.- Returns:
- true if
ERROR_STRINGappears 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:
IOExceptionInterruptedException
-