From f6872d68a9fca76623a44cd97eb2979b4b2785f8 Mon Sep 17 00:00:00 2001 From: Ivan Dubrov Date: Mon, 28 Apr 2014 13:30:49 -0700 Subject: Do not copy data in installer build when don't have any --- installer/build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'installer') 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 { -- cgit v1.2.3