Commits

shemnon  committed 86dce18

conventional icon

  • Participants
  • Parent commits 3f01602

Comments (0)

Files changed (3)

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

         iconInfos.add(ii)
     }
 
+    protected void loadConventialIcons(String kind) {
+        // this convention is non-configurable, hence it gets hard coded
+        project.fileTree('src/deploy/package', { include "$kind*.png"}).visit { fileDetails ->
+            addIcon(kind, fileDetails.path)
+        }
+    }
+
     protected void processIcons(File destination) {
+        if (iconInfos.isEmpty()) {
+            // if nothing is configured, use the convention
+            loadConventialIcons('shortcut')
+            loadConventialIcons('volume')
+            loadConventialIcons('setup')
+        }
         if (Os.isFamily(Os.FAMILY_MAC)) {
             processMacOSXIcons(destination);
         }

File samples/brickbreaker/build.gradle

 apply from: 'https://repository-javafx-gradle-plugin.forge.cloudbees.com/snapshot/javafx.plugin'
+
+version = '1.8.0.0'

File samples/brickbreaker/src/deploy/package/shortcut.png

Added
New image