{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/comments/78040948","id":78040948,"diff_hunk":"@@ -125,6 +128,31 @@ public void runAppCommand(List<String> args) throws ProcessRunnerException {\n     logCommand(command);\n     processRunner.setEnvironment(environment);\n     processRunner.run(command.toArray(new String[command.size()]));\n+    processRunner.run(command.toArray(new String[command.size()]));\n+  }\n+\n+  /**\n+   * @return true iff the specified component is installed in the local environment\n+   */\n+  public boolean isComponentInstalled(String id) throws ProcessRunnerException {\n+    List<String> command = new ArrayList<>();\n+    command.add(getGCloudPath().toString());\n+    command.add(\"components\");\n+    command.add(\"list\");\n+    command.add(\"--format=json\");\n+    command.add(\"--filter=id:\" + id);\n+    \n+    if (stdOutput == null) {","path":"src/main/java/com/google/cloud/tools/appengine/cloudsdk/CloudSdk.java","position":84,"original_position":72,"commit_id":"7d5e3a2ea959c92ed58c58cc6a255f2a3dba0645","original_commit_id":"29147b0c66ac9c154d990808acfebec1ffc8f716","user":{"login":"elharo","id":1005544,"avatar_url":"https://avatars.githubusercontent.com/u/1005544?v=3","gravatar_id":"","url":"https://api.github.com/users/elharo","html_url":"https://github.com/elharo","followers_url":"https://api.github.com/users/elharo/followers","following_url":"https://api.github.com/users/elharo/following{/other_user}","gists_url":"https://api.github.com/users/elharo/gists{/gist_id}","starred_url":"https://api.github.com/users/elharo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elharo/subscriptions","organizations_url":"https://api.github.com/users/elharo/orgs","repos_url":"https://api.github.com/users/elharo/repos","events_url":"https://api.github.com/users/elharo/events{/privacy}","received_events_url":"https://api.github.com/users/elharo/received_events","type":"User","site_admin":false},"body":"There is a code path along which stdOutput is not set, basically if inheritProcessOutput is true. See line 472-478. I'm not sure if we really need inheritProcessOutput though. Maybe we can drop it? ","created_at":"2016-09-08T16:28:59Z","updated_at":"2016-09-08T16:28:59Z","html_url":"https://github.com/GoogleCloudPlatform/appengine-plugins-core/pull/207#discussion_r78040948","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/207","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/comments/78040948"},"html":{"href":"https://github.com/GoogleCloudPlatform/appengine-plugins-core/pull/207#discussion_r78040948"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/207","id":84461272,"html_url":"https://github.com/GoogleCloudPlatform/appengine-plugins-core/pull/207","diff_url":"https://github.com/GoogleCloudPlatform/appengine-plugins-core/pull/207.diff","patch_url":"https://github.com/GoogleCloudPlatform/appengine-plugins-core/pull/207.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues/207","number":207,"state":"open","locked":false,"title":"notice when app engine java components aren't installed","user":{"login":"elharo","id":1005544,"avatar_url":"https://avatars.githubusercontent.com/u/1005544?v=3","gravatar_id":"","url":"https://api.github.com/users/elharo","html_url":"https://github.com/elharo","followers_url":"https://api.github.com/users/elharo/followers","following_url":"https://api.github.com/users/elharo/following{/other_user}","gists_url":"https://api.github.com/users/elharo/gists{/gist_id}","starred_url":"https://api.github.com/users/elharo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elharo/subscriptions","organizations_url":"https://api.github.com/users/elharo/orgs","repos_url":"https://api.github.com/users/elharo/repos","events_url":"https://api.github.com/users/elharo/events{/privacy}","received_events_url":"https://api.github.com/users/elharo/received_events","type":"User","site_admin":false},"body":"@meltsufin @joaoandremartins @etanshaul @markpell \r\n\r\nfix #165\r\n\r\nUses gcloud components list","created_at":"2016-09-08T11:37:49Z","updated_at":"2016-09-08T16:28:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74aac679800ea0d80f8a792aba056a50b8f5fc49","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/207/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/207/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues/207/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/statuses/7d5e3a2ea959c92ed58c58cc6a255f2a3dba0645","head":{"label":"GoogleCloudPlatform:i165b","ref":"i165b","sha":"7d5e3a2ea959c92ed58c58cc6a255f2a3dba0645","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":"appengine-plugins-core","full_name":"GoogleCloudPlatform/appengine-plugins-core","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/appengine-plugins-core","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/deployments","created_at":"2016-03-17T13:42:30Z","updated_at":"2016-07-29T14:05:16Z","pushed_at":"2016-09-08T16:23:58Z","git_url":"git://github.com/GoogleCloudPlatform/appengine-plugins-core.git","ssh_url":"git@github.com:GoogleCloudPlatform/appengine-plugins-core.git","clone_url":"https://github.com/GoogleCloudPlatform/appengine-plugins-core.git","svn_url":"https://github.com/GoogleCloudPlatform/appengine-plugins-core","homepage":null,"size":720,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":33,"forks":2,"open_issues":33,"watchers":7,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:master","ref":"master","sha":"cce2dcf74789e4693091a1ee63dbe57b5c03b3f5","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":"appengine-plugins-core","full_name":"GoogleCloudPlatform/appengine-plugins-core","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/appengine-plugins-core","description":null,"fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/deployments","created_at":"2016-03-17T13:42:30Z","updated_at":"2016-07-29T14:05:16Z","pushed_at":"2016-09-08T16:23:58Z","git_url":"git://github.com/GoogleCloudPlatform/appengine-plugins-core.git","ssh_url":"git@github.com:GoogleCloudPlatform/appengine-plugins-core.git","clone_url":"https://github.com/GoogleCloudPlatform/appengine-plugins-core.git","svn_url":"https://github.com/GoogleCloudPlatform/appengine-plugins-core","homepage":null,"size":720,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":33,"forks":2,"open_issues":33,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/207"},"html":{"href":"https://github.com/GoogleCloudPlatform/appengine-plugins-core/pull/207"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues/207"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/appengine-plugins-core/statuses/7d5e3a2ea959c92ed58c58cc6a255f2a3dba0645"}}}}
{"actor":{"display_login":"elharo"}}