geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From u..@apache.org
Subject [11/14] geode git commit: Don't download geode 1.2 every time a build runs
Date Tue, 22 Aug 2017 16:39:30 GMT
Don't download geode 1.2 every time a build runs

Removing the override flag, adding a onlyIf check


Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/6a7f3625
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/6a7f3625
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/6a7f3625

Branch: refs/heads/feature/GEODE-3416
Commit: 6a7f3625e08875eb6ab886e6ff11f50e76393bec
Parents: 5863fd5
Author: Dan Smith <upthewaterspout@apache.org>
Authored: Mon Aug 21 15:28:50 2017 -0700
Committer: Dan Smith <upthewaterspout@apache.org>
Committed: Mon Aug 21 15:29:10 2017 -0700

----------------------------------------------------------------------
 geode-old-versions/build.gradle | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/geode/blob/6a7f3625/geode-old-versions/build.gradle
----------------------------------------------------------------------
diff --git a/geode-old-versions/build.gradle b/geode-old-versions/build.gradle
index 3b7c2e5..7defb69 100644
--- a/geode-old-versions/build.gradle
+++ b/geode-old-versions/build.gradle
@@ -42,14 +42,16 @@ def addOldVersion(def source, def geodeVersion, def downloadInstall) {
 
   task "downloadZipFile${source}" (type: Download) {
     src "https://www.apache.org/dyn/closer.cgi?action=download&filename=geode/$geodeVersion/apache-geode-${geodeVersion}.tar.gz"
-    dest new File(buildDir, "apache-geode-${geodeVersion}.tar.gz")
-    overwrite false
+    def destFile = new File(buildDir, "apache-geode-${geodeVersion}.tar.gz")
+    dest destFile
+    onlyIf {!destFile.exists()}
   }
 
   task "downloadSHA${source}" (type: Download) {
     src "https://www.apache.org/dist/geode/${geodeVersion}/apache-geode-${geodeVersion}.tar.gz.sha256"
-    dest new File(buildDir, "apache-geode-${geodeVersion}.tar.gz.sha256")
-    overwrite false
+    def destFile =  new File(buildDir, "apache-geode-${geodeVersion}.tar.gz.sha256")
+    dest destFile
+    onlyIf {!destFile.exists()}
   }
 
 


Mime
View raw message