Source

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

Diff from to

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, Map> profileMap = [:]
 
     // preliminaries
     FileCollection jfxrtJar
 
     String signingMode
 
-    boolean embedLauncher
+    boolean embedLauncher = true
 
     // app info
     String id
     String packaging
 
     // JNLP Packaging
-    int width
-    int height
-    boolean embedJNLP
-    String updateMode
-    boolean offlineAllowed
+    int width = 1024
+    int height = 768
+    boolean embedJNLP = false
+    String updateMode = "background"
+    boolean offlineAllowed = true
     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 setIconInfos(List<IconInfo> icons) {iconInfos = icons}
 
         ConfigureUtil.configure(closure, new MethodToMap(map: profileMap))
     }
 
-    JavaFXPluginExtension getProfile(String profile) {
+    Map getProfile(String profile) {
         return profileMap.get(profile)
     }