Commits

shemnon committed fefa70f

play nice with non-existent files

Comments (0)

Files changed (1)

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

             project.fileTree("$project.libsDir/../signed").include("*.jar")
         }
         task.conventionMapping.resourcesDir = { convention, aware ->
-            project.sourceSets['package'].output.resourcesDir
+            def rd = project.sourceSets['package'].output.resourcesDir
+            if (!rd.exists()) rd.mkdirs()
+            rd
         }
 
         task.conventionMapping.distsDir = {convention, aware -> project.distsDir }