Commits

shemnon committed a54f3fc

fix some conventional problems with the field names

Comments (0)

Files changed (1)

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

 package org.bitbucket.shemnon.javafxplugin.tasks
 
 import com.sun.javafx.tools.packager.DeployParams
-import com.sun.javafx.tools.packager.DeployParams.RunMode
 import com.sun.javafx.tools.packager.Log
 import com.sun.javafx.tools.packager.PackagerLib
 import com.sun.javafx.tools.packager.bundlers.Bundler
     // deploy/info attributes
     String category
     String copyright
-    String description
+    String deployDescription
     String licenseType
     String vendor
     List<IconInfo> iconInfos = []
         //boolean isSwingApp;
         //boolean includeDT;
         //java.lang.String placeholder;
-        //java.lang.String appId;
         //java.util.List<com.sun.javafx.tools.ant.Callback> callbacks;
         //java.util.List<com.sun.javafx.tools.packager.DeployParams.Template> templates;
         //java.lang.String jrePlatform;
 
         deployParams.verbose = getVerbose()
 
-        deployParams.id = getAppID()
+        deployParams.appId = getAppID()
         deployParams.appName = getAppName() // FIXME duplicate with title
         deployParams.applicationClass = getMainClass()
 
         deployParams.title = getAppName()
         deployParams.category = getCategory()
         deployParams.copyright = getCopyright()
-        deployParams.description = getDescription()
+        deployParams.description = getDeployDescription()
         deployParams.licenseType = getLicenseType()
         deployParams.vendor = getVendor()
 
     }
 
     protected void processIcons(File destination) {
-        if (iconInfos.isEmpty()) {
+        if (getIconInfos().isEmpty()) {
             // if nothing is configured, use the convention
             loadConventialIcons('shortcut')
             loadConventialIcons('volume')
 
     protected void processWindowsIco(String kind, File destination) {
         Map<Integer, BufferedImage> images = new TreeMap<Integer, BufferedImage>()
-        for (IconInfo ii : iconInfos) {
+        for (IconInfo ii : getIconInfos()) {
             if (kind == ii.kind) {
                 BufferedImage icon = getImage(ii)
                 if (icon == null) {
     }
 
     protected void processLinuxIcons(File destination) {
-        IconInfo largestIcon
+        IconInfo largestIcon = null
         for (IconInfo ii : getIconInfos()) {
             if ('shortcut' == ii.kind) {
                 BufferedImage icon = getImage(ii)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.