aboutsummaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorIvan Dubrov <idubrov@guidewire.com>2014-04-28 13:30:49 -0700
committerIvan Dubrov <idubrov@guidewire.com>2014-04-28 13:30:49 -0700
commitf6872d68a9fca76623a44cd97eb2979b4b2785f8 (patch)
tree466834f02514838f617dfd95738084fb10e1911d /installer
parenta5b325fe811ead92112def2b90ab8fabfec9cbfd (diff)
downloaddcevm-f6872d68a9fca76623a44cd97eb2979b4b2785f8.tar.gz
dcevm-f6872d68a9fca76623a44cd97eb2979b4b2785f8.zip
Do not copy data in installer build when don't have anyfull-7u51+3
Diffstat (limited to 'installer')
-rw-r--r--installer/build.gradle9
1 files changed, 6 insertions, 3 deletions
diff --git a/installer/build.gradle b/installer/build.gradle
index f49ba255..98952219 100644
--- a/installer/build.gradle
+++ b/installer/build.gradle
@@ -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> {