diff options
Diffstat (limited to 'installer')
-rw-r--r-- | installer/build.gradle | 9 |
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> { |