{"action":"created","comment":{"url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments/31872358","id":31872358,"diff_hunk":"@@ -86,17 +86,28 @@ class J2objcUtils {\n     // MUST be used only in @Input getJ2ObjCHome() methods to ensure UP-TO-DATE checks are correct\n     // @Input getJ2ObjCHome() method can be used freely inside the task action\n     static def j2objcHome(Project proj) {\n-        def result = proj.j2objcConfig.j2objcHome\n+        def localPropertiesFile = new File(proj.rootDir, 'local.properties')\n+        String result = null\n+        if (localPropertiesFile.exists()) {\n+            Properties localProperties = new Properties();\n+            localPropertiesFile.withInputStream {\n+                localProperties.load it\n+            }","path":"src/main/groovy/com/github/brunobowden/j2objcgradle/tasks/J2objcUtils.groovy","position":11,"original_position":11,"commit_id":"c8ae2f9316d676bbda1273a9424be29e1c5b6108","original_commit_id":"c8ae2f9316d676bbda1273a9424be29e1c5b6108","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"body":"no, that leaves the File descriptor open.  withInputStream ensures things get closed properly.","created_at":"2015-06-06T23:23:48Z","updated_at":"2015-06-06T23:23:48Z","html_url":"https://github.com/brunobowden/j2objc-gradle/pull/107#discussion_r31872358","pull_request_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments/31872358"},"html":{"href":"https://github.com/brunobowden/j2objc-gradle/pull/107#discussion_r31872358"},"pull_request":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/107","id":37097144,"html_url":"https://github.com/brunobowden/j2objc-gradle/pull/107","diff_url":"https://github.com/brunobowden/j2objc-gradle/pull/107.diff","patch_url":"https://github.com/brunobowden/j2objc-gradle/pull/107.patch","issue_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/107","number":107,"state":"open","locked":false,"title":"Load j2objcHome from local.properties or environment variable; Fixes …","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"body":"…#106.","created_at":"2015-06-06T21:34:17Z","updated_at":"2015-06-06T23:23:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1ae465c68b8c5779d2c14ac98fb18a4b6141bd03","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/107/commits","review_comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/107/comments","review_comment_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/107/comments","statuses_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/c8ae2f9316d676bbda1273a9424be29e1c5b6108","head":{"label":"advayDev1:localProp","ref":"localProp","sha":"c8ae2f9316d676bbda1273a9424be29e1c5b6108","user":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"repo":{"id":33487475,"name":"j2objc-gradle","full_name":"advayDev1/j2objc-gradle","owner":{"login":"advayDev1","id":11729521,"avatar_url":"https://avatars.githubusercontent.com/u/11729521?v=3","gravatar_id":"","url":"https://api.github.com/users/advayDev1","html_url":"https://github.com/advayDev1","followers_url":"https://api.github.com/users/advayDev1/followers","following_url":"https://api.github.com/users/advayDev1/following{/other_user}","gists_url":"https://api.github.com/users/advayDev1/gists{/gist_id}","starred_url":"https://api.github.com/users/advayDev1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advayDev1/subscriptions","organizations_url":"https://api.github.com/users/advayDev1/orgs","repos_url":"https://api.github.com/users/advayDev1/repos","events_url":"https://api.github.com/users/advayDev1/events{/privacy}","received_events_url":"https://api.github.com/users/advayDev1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/advayDev1/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":true,"url":"https://api.github.com/repos/advayDev1/j2objc-gradle","forks_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/advayDev1/j2objc-gradle/releases{/id}","created_at":"2015-04-06T14:55:35Z","updated_at":"2015-06-04T22:33:42Z","pushed_at":"2015-06-06T23:01:54Z","git_url":"git://github.com/advayDev1/j2objc-gradle.git","ssh_url":"git@github.com:advayDev1/j2objc-gradle.git","clone_url":"https://github.com/advayDev1/j2objc-gradle.git","svn_url":"https://github.com/advayDev1/j2objc-gradle","homepage":null,"size":597,"stargazers_count":1,"watchers_count":1,"language":"Groovy","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"brunobowden:master","ref":"master","sha":"f9a688f082897049633fa6f8b0992f1b90563653","user":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"repo":{"id":30206593,"name":"j2objc-gradle","full_name":"brunobowden/j2objc-gradle","owner":{"login":"brunobowden","id":679339,"avatar_url":"https://avatars.githubusercontent.com/u/679339?v=3","gravatar_id":"","url":"https://api.github.com/users/brunobowden","html_url":"https://github.com/brunobowden","followers_url":"https://api.github.com/users/brunobowden/followers","following_url":"https://api.github.com/users/brunobowden/following{/other_user}","gists_url":"https://api.github.com/users/brunobowden/gists{/gist_id}","starred_url":"https://api.github.com/users/brunobowden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunobowden/subscriptions","organizations_url":"https://api.github.com/users/brunobowden/orgs","repos_url":"https://api.github.com/users/brunobowden/repos","events_url":"https://api.github.com/users/brunobowden/events{/privacy}","received_events_url":"https://api.github.com/users/brunobowden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brunobowden/j2objc-gradle","description":"Gradle plugin for j2objc (Java to Objective-C transpiler)","fork":false,"url":"https://api.github.com/repos/brunobowden/j2objc-gradle","forks_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/forks","keys_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/teams","hooks_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/hooks","issue_events_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/events{/number}","events_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/events","assignees_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/assignees{/user}","branches_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/branches{/branch}","tags_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/tags","blobs_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/languages","stargazers_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/stargazers","contributors_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/contributors","subscribers_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/subscribers","subscription_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/subscription","commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/contents/{+path}","compare_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/merges","archive_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/downloads","issues_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues{/number}","pulls_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/labels{/name}","releases_url":"https://api.github.com/repos/brunobowden/j2objc-gradle/releases{/id}","created_at":"2015-02-02T20:22:07Z","updated_at":"2015-06-04T09:41:08Z","pushed_at":"2015-06-06T23:03:33Z","git_url":"git://github.com/brunobowden/j2objc-gradle.git","ssh_url":"git@github.com:brunobowden/j2objc-gradle.git","clone_url":"https://github.com/brunobowden/j2objc-gradle.git","svn_url":"https://github.com/brunobowden/j2objc-gradle","homepage":null,"size":1528,"stargazers_count":30,"watchers_count":30,"language":"Groovy","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":25,"forks":8,"open_issues":25,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/107"},"html":{"href":"https://github.com/brunobowden/j2objc-gradle/pull/107"},"issue":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/107"},"comments":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/brunobowden/j2objc-gradle/statuses/c8ae2f9316d676bbda1273a9424be29e1c5b6108"}}}}