You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/05/27 19:42:14 UTC

incubator-ignite git commit: # ignite-899: java read

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-456 e2b2e87e7 -> 92dc2a221


# ignite-899: java read


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

Branch: refs/heads/ignite-456
Commit: 92dc2a2210abece8017edc8ac9bbaed9ee92c2d7
Parents: e2b2e87
Author: null <null>
Authored: Wed May 27 20:42:11 2015 +0300
Committer: null <null>
Committed: Wed May 27 20:42:11 2015 +0300

----------------------------------------------------------------------
 dev-tools/src/main/groovy/jiraslurp.groovy | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/92dc2a22/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 04681fc..61734dc 100644
--- a/dev-tools/src/main/groovy/jiraslurp.groovy
+++ b/dev-tools/src/main/groovy/jiraslurp.groovy
@@ -315,8 +315,16 @@ def applyPatch = { jira, attachementURL ->
     conn.setRequestProperty("X-Content-Type-Options", "nosniff");
     conn.connect();
 
+    // Read response.
+    BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));
+
+    String text = "";
+    String line;
 
-    def text = conn.inputStream.text
+    while ((line = br.readLine()) != null)
+        text += line
+
+    br.close();
 
     println text