{"action":"created","comment":{"url":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/comments/27410994","id":27410994,"diff_hunk":"@@ -101,6 +107,29 @@ public static ResourceLocator ofClasspathUrl(URL url) {\n     return new ResourceLocator(locator, Resources.asByteSource(url));\n   }\n \n+  /**\n+   * Creates a stream of resource locators.\n+   * <p>\n+   * This finds all occurrences of the resource name in the classpath and returns them.\n+   * \n+   * @param classpathResourceName  the classpath resource name\n+   * @return the resource locators\n+   */\n+  @FromString\n+  public static Stream<ResourceLocator> streamOfClasspathResources(String classpathResourceName) {\n+    ArgChecker.notNull(classpathResourceName, \"classpathResourceName\");\n+    try {\n+      ClassLoader classLoader = firstNonNull(\n+          Thread.currentThread().getContextClassLoader(),","path":"modules/collect/src/main/java/com/opengamma/collect/io/ResourceLocator.java","position":34,"original_position":34,"commit_id":"9b24a7112ad95d5fe16ce3e853209de5960da3c3","original_commit_id":"9b24a7112ad95d5fe16ce3e853209de5960da3c3","user":{"login":"jodastephen","id":213212,"avatar_url":"https://avatars.githubusercontent.com/u/213212?v=3","gravatar_id":"","url":"https://api.github.com/users/jodastephen","html_url":"https://github.com/jodastephen","followers_url":"https://api.github.com/users/jodastephen/followers","following_url":"https://api.github.com/users/jodastephen/following{/other_user}","gists_url":"https://api.github.com/users/jodastephen/gists{/gist_id}","starred_url":"https://api.github.com/users/jodastephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodastephen/subscriptions","organizations_url":"https://api.github.com/users/jodastephen/orgs","repos_url":"https://api.github.com/users/jodastephen/repos","events_url":"https://api.github.com/users/jodastephen/events{/privacy}","received_events_url":"https://api.github.com/users/jodastephen/received_events","type":"User","site_admin":false},"body":"Based off principles used in Spring and elsewhere - use thread classloader and fallback if null","created_at":"2015-03-30T17:17:54Z","updated_at":"2015-03-30T17:17:54Z","html_url":"https://github.com/OpenGamma/OG-Commons/pull/79#discussion_r27410994","pull_request_url":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/79","_links":{"self":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/comments/27410994"},"html":{"href":"https://github.com/OpenGamma/OG-Commons/pull/79#discussion_r27410994"},"pull_request":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/79"}}},"pull_request":{"url":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/79","id":32222251,"html_url":"https://github.com/OpenGamma/OG-Commons/pull/79","diff_url":"https://github.com/OpenGamma/OG-Commons/pull/79.diff","patch_url":"https://github.com/OpenGamma/OG-Commons/pull/79.patch","issue_url":"https://api.github.com/repos/OpenGamma/OG-Commons/issues/79","number":79,"state":"open","locked":false,"title":"STR-54 Enhance ini/properties","user":{"login":"jodastephen","id":213212,"avatar_url":"https://avatars.githubusercontent.com/u/213212?v=3","gravatar_id":"","url":"https://api.github.com/users/jodastephen","html_url":"https://github.com/jodastephen","followers_url":"https://api.github.com/users/jodastephen/followers","following_url":"https://api.github.com/users/jodastephen/following{/other_user}","gists_url":"https://api.github.com/users/jodastephen/gists{/gist_id}","starred_url":"https://api.github.com/users/jodastephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodastephen/subscriptions","organizations_url":"https://api.github.com/users/jodastephen/orgs","repos_url":"https://api.github.com/users/jodastephen/repos","events_url":"https://api.github.com/users/jodastephen/events{/privacy}","received_events_url":"https://api.github.com/users/jodastephen/received_events","type":"User","site_admin":false},"body":"* Add method to obtain a stream of `ResourceLocator`\r\n* Add chaining support to `IniFile`\r\n* Enhance API of `IniFile` and `PropertySet`\r\n* Switch `ExtendedEnum` to use ini files","created_at":"2015-03-30T12:38:58Z","updated_at":"2015-03-30T17:17:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d9a66219ad23db5662b653de559113e57f60dc3","assignee":{"login":"cjkent","id":98477,"avatar_url":"https://avatars.githubusercontent.com/u/98477?v=3","gravatar_id":"","url":"https://api.github.com/users/cjkent","html_url":"https://github.com/cjkent","followers_url":"https://api.github.com/users/cjkent/followers","following_url":"https://api.github.com/users/cjkent/following{/other_user}","gists_url":"https://api.github.com/users/cjkent/gists{/gist_id}","starred_url":"https://api.github.com/users/cjkent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjkent/subscriptions","organizations_url":"https://api.github.com/users/cjkent/orgs","repos_url":"https://api.github.com/users/cjkent/repos","events_url":"https://api.github.com/users/cjkent/events{/privacy}","received_events_url":"https://api.github.com/users/cjkent/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/79/commits","review_comments_url":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/79/comments","review_comment_url":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenGamma/OG-Commons/issues/79/comments","statuses_url":"https://api.github.com/repos/OpenGamma/OG-Commons/statuses/9b24a7112ad95d5fe16ce3e853209de5960da3c3","head":{"label":"OpenGamma:topic/STR-54","ref":"topic/STR-54","sha":"9b24a7112ad95d5fe16ce3e853209de5960da3c3","user":{"login":"OpenGamma","id":120064,"avatar_url":"https://avatars.githubusercontent.com/u/120064?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenGamma","html_url":"https://github.com/OpenGamma","followers_url":"https://api.github.com/users/OpenGamma/followers","following_url":"https://api.github.com/users/OpenGamma/following{/other_user}","gists_url":"https://api.github.com/users/OpenGamma/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGamma/subscriptions","organizations_url":"https://api.github.com/users/OpenGamma/orgs","repos_url":"https://api.github.com/users/OpenGamma/repos","events_url":"https://api.github.com/users/OpenGamma/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGamma/received_events","type":"Organization","site_admin":false},"repo":{"id":20916831,"name":"OG-Commons","full_name":"OpenGamma/OG-Commons","owner":{"login":"OpenGamma","id":120064,"avatar_url":"https://avatars.githubusercontent.com/u/120064?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenGamma","html_url":"https://github.com/OpenGamma","followers_url":"https://api.github.com/users/OpenGamma/followers","following_url":"https://api.github.com/users/OpenGamma/following{/other_user}","gists_url":"https://api.github.com/users/OpenGamma/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGamma/subscriptions","organizations_url":"https://api.github.com/users/OpenGamma/orgs","repos_url":"https://api.github.com/users/OpenGamma/repos","events_url":"https://api.github.com/users/OpenGamma/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGamma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenGamma/OG-Commons","description":"Libraries of common code supporting OpenGamma","fork":false,"url":"https://api.github.com/repos/OpenGamma/OG-Commons","forks_url":"https://api.github.com/repos/OpenGamma/OG-Commons/forks","keys_url":"https://api.github.com/repos/OpenGamma/OG-Commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenGamma/OG-Commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenGamma/OG-Commons/teams","hooks_url":"https://api.github.com/repos/OpenGamma/OG-Commons/hooks","issue_events_url":"https://api.github.com/repos/OpenGamma/OG-Commons/issues/events{/number}","events_url":"https://api.github.com/repos/OpenGamma/OG-Commons/events","assignees_url":"https://api.github.com/repos/OpenGamma/OG-Commons/assignees{/user}","branches_url":"https://api.github.com/repos/OpenGamma/OG-Commons/branches{/branch}","tags_url":"https://api.github.com/repos/OpenGamma/OG-Commons/tags","blobs_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenGamma/OG-Commons/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenGamma/OG-Commons/languages","stargazers_url":"https://api.github.com/repos/OpenGamma/OG-Commons/stargazers","contributors_url":"https://api.github.com/repos/OpenGamma/OG-Commons/contributors","subscribers_url":"https://api.github.com/repos/OpenGamma/OG-Commons/subscribers","subscription_url":"https://api.github.com/repos/OpenGamma/OG-Commons/subscription","commits_url":"https://api.github.com/repos/OpenGamma/OG-Commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenGamma/OG-Commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenGamma/OG-Commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenGamma/OG-Commons/contents/{+path}","compare_url":"https://api.github.com/repos/OpenGamma/OG-Commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenGamma/OG-Commons/merges","archive_url":"https://api.github.com/repos/OpenGamma/OG-Commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenGamma/OG-Commons/downloads","issues_url":"https://api.github.com/repos/OpenGamma/OG-Commons/issues{/number}","pulls_url":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenGamma/OG-Commons/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenGamma/OG-Commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenGamma/OG-Commons/labels{/name}","releases_url":"https://api.github.com/repos/OpenGamma/OG-Commons/releases{/id}","created_at":"2014-06-17T08:59:44Z","updated_at":"2015-03-27T13:26:45Z","pushed_at":"2015-03-30T13:29:39Z","git_url":"git://github.com/OpenGamma/OG-Commons.git","ssh_url":"git@github.com:OpenGamma/OG-Commons.git","clone_url":"https://github.com/OpenGamma/OG-Commons.git","svn_url":"https://github.com/OpenGamma/OG-Commons","homepage":"","size":3788,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":11,"default_branch":"master"}},"base":{"label":"OpenGamma:master","ref":"master","sha":"e835e00c024305a1aa0201c34f7061c1f9abc2ef","user":{"login":"OpenGamma","id":120064,"avatar_url":"https://avatars.githubusercontent.com/u/120064?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenGamma","html_url":"https://github.com/OpenGamma","followers_url":"https://api.github.com/users/OpenGamma/followers","following_url":"https://api.github.com/users/OpenGamma/following{/other_user}","gists_url":"https://api.github.com/users/OpenGamma/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGamma/subscriptions","organizations_url":"https://api.github.com/users/OpenGamma/orgs","repos_url":"https://api.github.com/users/OpenGamma/repos","events_url":"https://api.github.com/users/OpenGamma/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGamma/received_events","type":"Organization","site_admin":false},"repo":{"id":20916831,"name":"OG-Commons","full_name":"OpenGamma/OG-Commons","owner":{"login":"OpenGamma","id":120064,"avatar_url":"https://avatars.githubusercontent.com/u/120064?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenGamma","html_url":"https://github.com/OpenGamma","followers_url":"https://api.github.com/users/OpenGamma/followers","following_url":"https://api.github.com/users/OpenGamma/following{/other_user}","gists_url":"https://api.github.com/users/OpenGamma/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGamma/subscriptions","organizations_url":"https://api.github.com/users/OpenGamma/orgs","repos_url":"https://api.github.com/users/OpenGamma/repos","events_url":"https://api.github.com/users/OpenGamma/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGamma/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenGamma/OG-Commons","description":"Libraries of common code supporting OpenGamma","fork":false,"url":"https://api.github.com/repos/OpenGamma/OG-Commons","forks_url":"https://api.github.com/repos/OpenGamma/OG-Commons/forks","keys_url":"https://api.github.com/repos/OpenGamma/OG-Commons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenGamma/OG-Commons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenGamma/OG-Commons/teams","hooks_url":"https://api.github.com/repos/OpenGamma/OG-Commons/hooks","issue_events_url":"https://api.github.com/repos/OpenGamma/OG-Commons/issues/events{/number}","events_url":"https://api.github.com/repos/OpenGamma/OG-Commons/events","assignees_url":"https://api.github.com/repos/OpenGamma/OG-Commons/assignees{/user}","branches_url":"https://api.github.com/repos/OpenGamma/OG-Commons/branches{/branch}","tags_url":"https://api.github.com/repos/OpenGamma/OG-Commons/tags","blobs_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenGamma/OG-Commons/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenGamma/OG-Commons/languages","stargazers_url":"https://api.github.com/repos/OpenGamma/OG-Commons/stargazers","contributors_url":"https://api.github.com/repos/OpenGamma/OG-Commons/contributors","subscribers_url":"https://api.github.com/repos/OpenGamma/OG-Commons/subscribers","subscription_url":"https://api.github.com/repos/OpenGamma/OG-Commons/subscription","commits_url":"https://api.github.com/repos/OpenGamma/OG-Commons/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenGamma/OG-Commons/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenGamma/OG-Commons/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenGamma/OG-Commons/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenGamma/OG-Commons/contents/{+path}","compare_url":"https://api.github.com/repos/OpenGamma/OG-Commons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenGamma/OG-Commons/merges","archive_url":"https://api.github.com/repos/OpenGamma/OG-Commons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenGamma/OG-Commons/downloads","issues_url":"https://api.github.com/repos/OpenGamma/OG-Commons/issues{/number}","pulls_url":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenGamma/OG-Commons/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenGamma/OG-Commons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenGamma/OG-Commons/labels{/name}","releases_url":"https://api.github.com/repos/OpenGamma/OG-Commons/releases{/id}","created_at":"2014-06-17T08:59:44Z","updated_at":"2015-03-27T13:26:45Z","pushed_at":"2015-03-30T13:29:39Z","git_url":"git://github.com/OpenGamma/OG-Commons.git","ssh_url":"git@github.com:OpenGamma/OG-Commons.git","clone_url":"https://github.com/OpenGamma/OG-Commons.git","svn_url":"https://github.com/OpenGamma/OG-Commons","homepage":"","size":3788,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/79"},"html":{"href":"https://github.com/OpenGamma/OG-Commons/pull/79"},"issue":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/issues/79"},"comments":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/issues/79/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/79/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/pulls/79/commits"},"statuses":{"href":"https://api.github.com/repos/OpenGamma/OG-Commons/statuses/9b24a7112ad95d5fe16ce3e853209de5960da3c3"}}}}