Commits

shemnon  committed d161b1d

profiles were masking some defaults

  • Participants
  • Parent commits ac3b500

Comments (0)

Files changed (2)

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

 
         def jfxrtJarFile = project.files(findJFXJar())
         project.javafx {
+            profileMap = [:]
             jfxrtJar = jfxrtJarFile
             antJavaFXJar = project.files(findAntJavaFXJar())
+            signingMode = 'release'
+            embedLauncher = true
             appName = project.name //FIXME capatalize
             packaging = 'all'
-            signingMode = 'release'
+            width = 1024
+            height = 768
+            embedJNLP = false
+            updateMode = "background"
+            offlineAllowed = true
+            jvmArgs = []
+            systemProperties = [:]
+            arguments = []
+            iconInfos = []
         }
 
 

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

 
     public static final String NO_RUNTIME = '<NO RUNTIME>'
 
-    protected Map<String, JavaFXPluginExtension> profileMap = [:]
+    protected Map<String, JavaFXPluginExtension> profileMap
 
     // preliminaries
     FileCollection jfxrtJar
 
     String signingMode
 
-    boolean embedLauncher = true
+    boolean embedLauncher
 
     // app info
     String id
     String packaging
 
     // JNLP Packaging
-    int width = 1024
-    int height = 768
-    boolean embedJNLP = false
-    String updateMode = "background"
-    boolean offlineAllowed = true
+    int width
+    int height
+    boolean embedJNLP
+    String updateMode
+    boolean offlineAllowed
     String codebase
 
     // runtime stuff
     String mainClass
-    List<String> jvmArgs = []
-    Map<String, String> systemProperties = [:]
-    List<String> arguments = []
+    List<String> jvmArgs
+    Map<String, String> systemProperties
+    List<String> arguments
 
     String javaRuntime
 
     boolean menu
     boolean shortcut
 
-    protected List<IconInfo> iconInfos = []
+    protected List<IconInfo> iconInfos
     protected List<IconInfo> getIconInfos() { return iconInfos}
-    protected void setIconInfo(List<IconInfo> icons) {iconInfos = icons}
-
+    protected void setIconInfos(List<IconInfo> icons) {iconInfos = icons}
 
 
     public debugKey(Closure closure) {
     }
 
     JavaFXPluginExtension getProfile(String profile) {
-      return profileMap.get(profile)
+        return profileMap.get(profile)
     }
 
     protected void addIcon(String kind, String href) {