changeset 4034:35d6c5456e67

Gradle build: added ant to the .libs for the sake of FXPackager
author Richard Bair <richard.bair@oracle.com>
date Fri, 21 Jun 2013 16:09:16 -0700
parents ca9851d83c7d
children 07ee4aa067ee
files build.gradle
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Fri Jun 21 16:04:16 2013 -0700
+++ b/build.gradle	Fri Jun 21 16:09:16 2013 -0700
@@ -1409,6 +1409,23 @@
     }
 
     jar.dependsOn buildJavaFXPackager
+
+    classes << {
+        // Copy all of the download libraries to .libs for the sake of the IDEs
+        File libsDir = rootProject.file(".libs");
+        File antLib = new File(libsDir, "ant-1.8.2.jar")
+        if (!antLib.exists()) {
+            libsDir.mkdirs();
+            for (File f : configurations.compile.files) {
+                copy {
+                    into libsDir
+                    from f.getParentFile()
+                    include "**/ant-1.8.2.jar"
+                    includeEmptyDirs = false
+                }
+            }
+        }
+    }
 }
 
 allprojects {