Commits

shemnon committed 5b20fd8

fix build exceptions

Comments (0)

Files changed (2)

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

samples/FullyExpressed/build.gradle

         linux {
             // linux doesn't care about id, it goes un-used at the moment
             category = 'Development'
-            javaRuntime = '/usr/lib/jvm/java-7-oracle'
+            // good luck finding a standard location for the JDK
+            //javaRuntime = '/usr/lib/jvm/java-7-oracle'
         }
     }