Class TaskUtil

java.lang.Object
ch.so.agi.gretl.util.TaskUtil

public class TaskUtil extends Object
Utility Class with methods used in the Tasks.
  • Constructor Details

    • TaskUtil

      public TaskUtil()
  • Method Details

    • toGradleException

      public static org.gradle.api.GradleException toGradleException(Exception ex)
      Used to Convert a thrown Exception into a GradleException. GradleException must be thrown to halt the Execution of the gradle build. GretlException intances are converted, all other Exceptions are wrapped (nested)
    • createAbsolutePath

      public static File createAbsolutePath(Object filePath, org.gradle.api.Project gradleProject)
      Converts the given path relative to the gradle project to a absolute path and returns the absolute path.