diff options
author | Ivan Dubrov <idubrov@guidewire.com> | 2014-04-28 13:30:49 -0700 |
---|---|---|
committer | Ivan Dubrov <idubrov@guidewire.com> | 2014-04-28 13:30:49 -0700 |
commit | f6872d68a9fca76623a44cd97eb2979b4b2785f8 (patch) | |
tree | 466834f02514838f617dfd95738084fb10e1911d /installer | |
parent | a5b325fe811ead92112def2b90ab8fabfec9cbfd (diff) | |
download | dcevm-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.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> { |