ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: # ignite-456: move validate file deletion
Date Mon, 18 May 2015 17:38:48 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-456 f304025a9 -> be7f7e63a


# ignite-456: move validate file deletion


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/be7f7e63
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/be7f7e63
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/be7f7e63

Branch: refs/heads/ignite-456
Commit: be7f7e63a7d4e3f581c8199a19138bf761b3159c
Parents: f304025
Author: Artem Shutak <ashutak@gridgain.com>
Authored: Mon May 18 20:39:38 2015 +0300
Committer: Artem Shutak <ashutak@gridgain.com>
Committed: Mon May 18 20:39:38 2015 +0300

----------------------------------------------------------------------
 dev-tools/src/main/groovy/jiraslurp.groovy | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/be7f7e63/dev-tools/src/main/groovy/jiraslurp.groovy
----------------------------------------------------------------------
diff --git a/dev-tools/src/main/groovy/jiraslurp.groovy b/dev-tools/src/main/groovy/jiraslurp.groovy
index b387a57..69dc9f6 100644
--- a/dev-tools/src/main/groovy/jiraslurp.groovy
+++ b/dev-tools/src/main/groovy/jiraslurp.groovy
@@ -37,8 +37,6 @@ def readHistory = {
     if (validated.exists()) {
         // TODO use commented way.
         validated_list = validated.text.split('\n')
-
-        validated.delete()
     }
 
     // TODO use it way.
@@ -106,6 +104,9 @@ def checkForAttachments = {
     // Write everything back to persist the list
     def validated = new File(validated_filename)
 
+    if (validated.exists())
+        validated.delete()
+
     validated << list.join('\n')
 }
 


Mime
View raw message