Commits

shemnon committed eb119b2

Some strings may be non-existent paths. Don't attempt to copy them.

  • Participants
  • Parent commits 75d469d

Comments (0)

Files changed (1)

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

             FileCollection runtimeClasspath = project.convention.getPlugin(JavaPluginConvention).sourceSets[SourceSet.MAIN_SOURCE_SET_NAME].runtimeClasspath;
             Configuration providedRuntime = project.configurations[PROVIDED_RUNTIME_CONFIGURATION_NAME];
             project.files(runtimeClasspath - providedRuntime, project.configurations.archives.artifacts.files.collect{it}).
-                    findAll {!it.directory}.
+                    findAll {File f -> f.exists() && !f.directory}.
                     each {
                         ant.copy(
                                 file: it,