Commits

shemnon committed e347280

resolve properties relative to the project root
make loud println info statements

Comments (0)

Files changed (1)

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

             def props = project.properties
             def mode = props['javafx.signingMode']  ?: jfxc.signingMode
             String keyFile = props?."javafx.${mode}Key.keyStore"
-            return keyFile == null ? jfxc?."${mode}Key"?.keyStore : new File(keyFile)
+            return keyFile == null ? jfxc?."${mode}Key"?.keyStore : new File(project.projectDir, keyFile)
         }
 
         task.conventionMapping.outdir = {convention, aware -> project.libsDir}
     to the directory that contains jfxrt.jar, or set JAVA_HOME.""")
             throw new GradleException("jfxrt.jar file not found");
         }
-        println "JavaFX runtime jar: ${jfxrtJar}"
+        project.logger.info("JavaFX runtime jar: ${jfxrtJar}")
         return jfxrtJar
     }
 
     to the directory that contains jfxrt.jar, or set JAVA_HOME.""")
             throw new GradleException("ant-javafx.jar file not found");
         }
-        println "JavaFX ant jar: ${antjfxjar}"
+        project.logger.info("JavaFX ant jar: ${antjfxjar}")
         return antjfxjar
     }
 }