Source

javafx-gradle / gradle-javafx-plugin / src / main / groovy / org / bitbucket / shemnon / javafxplugin / tasks / JavaFXDeployTask.groovy

Diff from to

File gradle-javafx-plugin/src/main/groovy/org/bitbucket/shemnon/javafxplugin/tasks/JavaFXDeployTask.groovy

 import net.sf.image4j.codec.ico.ICOEncoder
 import org.bitbucket.shemnon.javafxplugin.IconInfo
 import org.bitbucket.shemnon.javafxplugin.JavaFXPluginExtension
+import org.gradle.api.GradleException
 import org.gradle.api.file.FileCollection
 import org.gradle.api.internal.ConventionTask
 import org.gradle.api.tasks.InputDirectory
 import org.gradle.api.tasks.OutputDirectory
 import org.gradle.api.tasks.TaskAction
 import org.gradle.internal.os.OperatingSystem
-import org.gradle.tooling.BuildException
 import org.gradle.util.ConfigureUtil
 
 import javax.imageio.ImageIO
                 getLogger().info("Java runtime to be bundled: $runtime")
                 rtFile = new File(runtime)
                 if (!rtFile.exists()) {
-                    throw new BuildException("No files found at specified runime path: $runtime")
+                    throw new GradleException("No Java Runtime found at specified runime path: $runtime")
                 }
             }
             deployParams.javaRuntimeSource = rtFile