Commits

shemnon  committed 3cbfd91

* fix app identifier
* use an app identifier in the ensemble app
* put some platform options in fully expressed

  • Participants
  • Parent commits a54f3fc

Comments (0)

Files changed (5)

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

                 'embedJNLP',
                 'height',
                 'iconInfos',
+                'id',
                 'installSystemWide',
                 'jvmArgs',
                 'licenseType',

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

     boolean embedLauncher = true
 
     // app info
+    String id
     String appID
     String appName
 
     double scale = 1 // for retina
     DeployParams.RunMode mode = DeployParams.RunMode.ALL
     private BufferedImage _image
-    protected file
+    File file
 
     public IconInfo(String href) {
         this.href = href

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

 
     FileCollection antJavaFXJar
 
+    String id
     String appID
     String appName
 
         deployParams.verbose = getVerbose()
 
         deployParams.appId = getAppID()
+        deployParams.id = getId()
         deployParams.appName = getAppName() // FIXME duplicate with title
         deployParams.applicationClass = getMainClass()
 

File samples/Ensemble2/build.gradle

     }
 
     windows {
-        appID = 'b533f663-1efd-489f-b910-4c7ec20c7fd0'
+        id = 'b533f663-1efd-489f-b910-4c7ec20c7fd0'
     }
 
     macosx {
+        id = 'net.java.openjdk.openjfx.Ensemble2'
         category = 'public.app-category.developer-tools'
     }
 }

File samples/FullyExpressed/build.gradle

 
 javafx {
 
+    // not every possible platform override, but ones that have a known impact
+    windows {
+        id = 'c533f663-1efd-489f-b910-4c7ec20c7fd0'
+        category='JavaFX Demos'
+    }
+
+    macosx {
+        id = 'net.java.openjdk.openjfx.Ensemble2'
+        category = 'public.app-category.developer-tools'
+    }
+
+    linux {
+        // linux doesn't care about id, it goes un-used at the moment
+        category='Development'
+    }
+
     debugKey {
         alias = 'buggyKey'
         keyPass = '123456'