{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/comments/58150616","id":58150616,"diff_hunk":"@@ -0,0 +1,56 @@\n+/**\n+ * Copyright 2015 Google Inc. All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not use this file except\n+ * in compliance with the License. You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software distributed under the License\n+ * is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n+ * or implied. See the License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+package com.google.cloud.tools.internal.process;\n+\n+import com.google.cloud.tools.internal.process.io.StreamConsumer;\n+\n+import java.io.IOException;\n+\n+/**\n+ * Process Runner impl that allows for specialized stream consumption\n+ */\n+public class StreamConsumingProcessRunner implements ProcessRunner {\n+\n+  private final StreamConsumer streamConsumer;","path":"src/main/java/com/google/cloud/tools/internal/process/StreamConsumingProcessRunner.java","position":25,"original_position":25,"commit_id":"22a1069486af50954cea55465aedc8c3f8a9203f","original_commit_id":"22a1069486af50954cea55465aedc8c3f8a9203f","user":{"login":"joaoandremartins","id":3290856,"avatar_url":"https://avatars.githubusercontent.com/u/3290856?v=3","gravatar_id":"","url":"https://api.github.com/users/joaoandremartins","html_url":"https://github.com/joaoandremartins","followers_url":"https://api.github.com/users/joaoandremartins/followers","following_url":"https://api.github.com/users/joaoandremartins/following{/other_user}","gists_url":"https://api.github.com/users/joaoandremartins/gists{/gist_id}","starred_url":"https://api.github.com/users/joaoandremartins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaoandremartins/subscriptions","organizations_url":"https://api.github.com/users/joaoandremartins/orgs","repos_url":"https://api.github.com/users/joaoandremartins/repos","events_url":"https://api.github.com/users/joaoandremartins/events{/privacy}","received_events_url":"https://api.github.com/users/joaoandremartins/received_events","type":"User","site_admin":false},"body":"What use cases will this class cover? I didn't find the need to read from streams while I was implementing the gcloud and dev_appserver interfaces.","created_at":"2016-04-01T01:00:52Z","updated_at":"2016-04-01T01:00:52Z","html_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java/pull/9#discussion_r58150616","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/comments/58150616"},"html":{"href":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java/pull/9#discussion_r58150616"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/9","id":64721444,"html_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java/pull/9","diff_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java/pull/9.diff","patch_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java/pull/9.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues/9","number":9,"state":"open","locked":false,"title":"Create execution abstraction","user":{"login":"loosebazooka","id":1304826,"avatar_url":"https://avatars.githubusercontent.com/u/1304826?v=3","gravatar_id":"","url":"https://api.github.com/users/loosebazooka","html_url":"https://github.com/loosebazooka","followers_url":"https://api.github.com/users/loosebazooka/followers","following_url":"https://api.github.com/users/loosebazooka/following{/other_user}","gists_url":"https://api.github.com/users/loosebazooka/gists{/gist_id}","starred_url":"https://api.github.com/users/loosebazooka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loosebazooka/subscriptions","organizations_url":"https://api.github.com/users/loosebazooka/orgs","repos_url":"https://api.github.com/users/loosebazooka/repos","events_url":"https://api.github.com/users/loosebazooka/events{/privacy}","received_events_url":"https://api.github.com/users/loosebazooka/received_events","type":"User","site_admin":false},"body":"Also move package paths -> com.google.gcloud.tools.action.app","created_at":"2016-03-31T01:11:22Z","updated_at":"2016-04-01T01:00:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"124076635a1c17056d639bf0f65a090e514689f4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/9/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/9/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues/9/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/statuses/22a1069486af50954cea55465aedc8c3f8a9203f","head":{"label":"GoogleCloudPlatform:updateCode","ref":"updateCode","sha":"22a1069486af50954cea55465aedc8c3f8a9203f","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":54120965,"name":"app-tools-lib-for-java","full_name":"GoogleCloudPlatform/app-tools-lib-for-java","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/deployments","created_at":"2016-03-17T13:42:30Z","updated_at":"2016-03-24T13:21:23Z","pushed_at":"2016-03-31T01:11:22Z","git_url":"git://github.com/GoogleCloudPlatform/app-tools-lib-for-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/app-tools-lib-for-java.git","clone_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java.git","svn_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java","homepage":null,"size":113,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:code","ref":"code","sha":"2105fa8a350dcd00b6a20b305cffe0c7c0e051f2","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":54120965,"name":"app-tools-lib-for-java","full_name":"GoogleCloudPlatform/app-tools-lib-for-java","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/deployments","created_at":"2016-03-17T13:42:30Z","updated_at":"2016-03-24T13:21:23Z","pushed_at":"2016-03-31T01:11:22Z","git_url":"git://github.com/GoogleCloudPlatform/app-tools-lib-for-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/app-tools-lib-for-java.git","clone_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java.git","svn_url":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java","homepage":null,"size":113,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/9"},"html":{"href":"https://github.com/GoogleCloudPlatform/app-tools-lib-for-java/pull/9"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues/9"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/app-tools-lib-for-java/statuses/22a1069486af50954cea55465aedc8c3f8a9203f"}}}}