]> source.dussan.org Git - dcevm.git/commitdiff
Do not copy data in installer build when don't have any full-7u51+3
authorIvan Dubrov <idubrov@guidewire.com>
Mon, 28 Apr 2014 20:30:49 +0000 (13:30 -0700)
committerIvan Dubrov <idubrov@guidewire.com>
Mon, 28 Apr 2014 20:30:49 +0000 (13:30 -0700)
installer/build.gradle

index f49ba255fd55f8ac428f044ab05fbc98ca885cde..9895221911745d879b410ab2d572bd9067d0b1f3 100644 (file)
@@ -27,9 +27,12 @@ sourceSets {
     }
 }
 
-task copyData << {
-    Files.createDirectories(processedData)
-    Files.walkFileTree(dataSource, new CopyDataVisitor(project));
+task copyData {
+    onlyIf { Files.exists(dataSource) }
+    doLast {
+        Files.createDirectories(processedData)
+        Files.walkFileTree(dataSource, new CopyDataVisitor(project));
+    }
 }
 
 class CopyDataVisitor extends SimpleFileVisitor<Path> {