{"action":"created","comment":{"url":"https://api.github.com/repos/openscore/score-language/pulls/comments/24520844","id":24520844,"diff_hunk":"@@ -0,0 +1,35 @@\n+/*******************************************************************************\n+ * (c) Copyright 2014 Hewlett-Packard Development Company, L.P.\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Apache License v2.0 which accompany this distribution.\n+ *\n+ * The Apache License is available at\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *******************************************************************************/\n+package org.openscore.lang.tools.verifier;\n+\n+import org.openscore.lang.tools.verifier.configuration.VerifierSpringConfiguration;\n+import org.springframework.context.ApplicationContext;\n+import org.springframework.context.annotation.AnnotationConfigApplicationContext;\n+\n+/*\n+ * Created by stoneo on 1/11/2015.\n+ */\n+public class SlangFilesVerifier {\n+\n+    public static void main(String[] args) {\n+        String repositoryPath = args[0];\n+        ApplicationContext context = new AnnotationConfigApplicationContext(VerifierSpringConfiguration.class);\n+        VerifierHelper verifierHelper = context.getBean(VerifierHelper.class);\n+        try {\n+            verifierHelper.verifyAllSlangFilesInDirAreValid(repositoryPath);\n+            System.out.println(\"SUCCESS: All slang files under directory: \\\"\" + repositoryPath + \"\\\" are valid.\");\n+            System.exit(0);\n+        } catch (Exception e) {\n+            System.out.println(e.getMessage() + \"\\n\\nFAILURE: Validation of slang files under directory: \\\"\" + repositoryPath + \"\\\" failed.\");\n+            System.exit(1);","path":"score-lang-content-verifier/src/main/java/org/openscore/lang/tools/verifier/SlangFilesVerifier.java","position":31,"original_position":31,"commit_id":"3ded0f1566b17d7da0fea802302ac3cb059b57fb","original_commit_id":"3ded0f1566b17d7da0fea802302ac3cb059b57fb","user":{"login":"orius123","id":4418018,"avatar_url":"https://avatars.githubusercontent.com/u/4418018?v=3","gravatar_id":"","url":"https://api.github.com/users/orius123","html_url":"https://github.com/orius123","followers_url":"https://api.github.com/users/orius123/followers","following_url":"https://api.github.com/users/orius123/following{/other_user}","gists_url":"https://api.github.com/users/orius123/gists{/gist_id}","starred_url":"https://api.github.com/users/orius123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orius123/subscriptions","organizations_url":"https://api.github.com/users/orius123/orgs","repos_url":"https://api.github.com/users/orius123/repos","events_url":"https://api.github.com/users/orius123/events{/privacy}","received_events_url":"https://api.github.com/users/orius123/received_events","type":"User","site_admin":false},"body":"Doesn't throwing an exception exit with error code anyway?","created_at":"2015-02-11T18:44:49Z","updated_at":"2015-02-11T18:44:49Z","html_url":"https://github.com/openscore/score-language/pull/101#discussion_r24520844","pull_request_url":"https://api.github.com/repos/openscore/score-language/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/openscore/score-language/pulls/comments/24520844"},"html":{"href":"https://github.com/openscore/score-language/pull/101#discussion_r24520844"},"pull_request":{"href":"https://api.github.com/repos/openscore/score-language/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/openscore/score-language/pulls/101","id":29109328,"html_url":"https://github.com/openscore/score-language/pull/101","diff_url":"https://github.com/openscore/score-language/pull/101.diff","patch_url":"https://github.com/openscore/score-language/pull/101.patch","issue_url":"https://api.github.com/repos/openscore/score-language/issues/101","number":101,"state":"open","locked":false,"title":"Add verifier tool for slang content","user":{"login":"oritstone","id":7547370,"avatar_url":"https://avatars.githubusercontent.com/u/7547370?v=3","gravatar_id":"","url":"https://api.github.com/users/oritstone","html_url":"https://github.com/oritstone","followers_url":"https://api.github.com/users/oritstone/followers","following_url":"https://api.github.com/users/oritstone/following{/other_user}","gists_url":"https://api.github.com/users/oritstone/gists{/gist_id}","starred_url":"https://api.github.com/users/oritstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oritstone/subscriptions","organizations_url":"https://api.github.com/users/oritstone/orgs","repos_url":"https://api.github.com/users/oritstone/repos","events_url":"https://api.github.com/users/oritstone/events{/privacy}","received_events_url":"https://api.github.com/users/oritstone/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-11T17:12:40Z","updated_at":"2015-02-11T18:44:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d816a89415b117154b792e9dfee0a477f8e66048","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openscore/score-language/pulls/101/commits","review_comments_url":"https://api.github.com/repos/openscore/score-language/pulls/101/comments","review_comment_url":"https://api.github.com/repos/openscore/score-language/pulls/comments/{number}","comments_url":"https://api.github.com/repos/openscore/score-language/issues/101/comments","statuses_url":"https://api.github.com/repos/openscore/score-language/statuses/3ded0f1566b17d7da0fea802302ac3cb059b57fb","head":{"label":"openscore:add-verifier-tool-for-slang-content","ref":"add-verifier-tool-for-slang-content","sha":"3ded0f1566b17d7da0fea802302ac3cb059b57fb","user":{"login":"openscore","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/openscore","html_url":"https://github.com/openscore","followers_url":"https://api.github.com/users/openscore/followers","following_url":"https://api.github.com/users/openscore/following{/other_user}","gists_url":"https://api.github.com/users/openscore/gists{/gist_id}","starred_url":"https://api.github.com/users/openscore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscore/subscriptions","organizations_url":"https://api.github.com/users/openscore/orgs","repos_url":"https://api.github.com/users/openscore/repos","events_url":"https://api.github.com/users/openscore/events{/privacy}","received_events_url":"https://api.github.com/users/openscore/received_events","type":"Organization","site_admin":false},"repo":{"id":28305425,"name":"score-language","full_name":"openscore/score-language","owner":{"login":"openscore","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/openscore","html_url":"https://github.com/openscore","followers_url":"https://api.github.com/users/openscore/followers","following_url":"https://api.github.com/users/openscore/following{/other_user}","gists_url":"https://api.github.com/users/openscore/gists{/gist_id}","starred_url":"https://api.github.com/users/openscore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscore/subscriptions","organizations_url":"https://api.github.com/users/openscore/orgs","repos_url":"https://api.github.com/users/openscore/repos","events_url":"https://api.github.com/users/openscore/events{/privacy}","received_events_url":"https://api.github.com/users/openscore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openscore/score-language","description":"score DSL and CLI = Slang (score-language)","fork":false,"url":"https://api.github.com/repos/openscore/score-language","forks_url":"https://api.github.com/repos/openscore/score-language/forks","keys_url":"https://api.github.com/repos/openscore/score-language/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openscore/score-language/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openscore/score-language/teams","hooks_url":"https://api.github.com/repos/openscore/score-language/hooks","issue_events_url":"https://api.github.com/repos/openscore/score-language/issues/events{/number}","events_url":"https://api.github.com/repos/openscore/score-language/events","assignees_url":"https://api.github.com/repos/openscore/score-language/assignees{/user}","branches_url":"https://api.github.com/repos/openscore/score-language/branches{/branch}","tags_url":"https://api.github.com/repos/openscore/score-language/tags","blobs_url":"https://api.github.com/repos/openscore/score-language/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openscore/score-language/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openscore/score-language/git/refs{/sha}","trees_url":"https://api.github.com/repos/openscore/score-language/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openscore/score-language/statuses/{sha}","languages_url":"https://api.github.com/repos/openscore/score-language/languages","stargazers_url":"https://api.github.com/repos/openscore/score-language/stargazers","contributors_url":"https://api.github.com/repos/openscore/score-language/contributors","subscribers_url":"https://api.github.com/repos/openscore/score-language/subscribers","subscription_url":"https://api.github.com/repos/openscore/score-language/subscription","commits_url":"https://api.github.com/repos/openscore/score-language/commits{/sha}","git_commits_url":"https://api.github.com/repos/openscore/score-language/git/commits{/sha}","comments_url":"https://api.github.com/repos/openscore/score-language/comments{/number}","issue_comment_url":"https://api.github.com/repos/openscore/score-language/issues/comments/{number}","contents_url":"https://api.github.com/repos/openscore/score-language/contents/{+path}","compare_url":"https://api.github.com/repos/openscore/score-language/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openscore/score-language/merges","archive_url":"https://api.github.com/repos/openscore/score-language/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openscore/score-language/downloads","issues_url":"https://api.github.com/repos/openscore/score-language/issues{/number}","pulls_url":"https://api.github.com/repos/openscore/score-language/pulls{/number}","milestones_url":"https://api.github.com/repos/openscore/score-language/milestones{/number}","notifications_url":"https://api.github.com/repos/openscore/score-language/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openscore/score-language/labels{/name}","releases_url":"https://api.github.com/repos/openscore/score-language/releases{/id}","created_at":"2014-12-21T16:32:24Z","updated_at":"2015-02-11T14:58:46Z","pushed_at":"2015-02-11T16:45:26Z","git_url":"git://github.com/openscore/score-language.git","ssh_url":"git@github.com:openscore/score-language.git","clone_url":"https://github.com/openscore/score-language.git","svn_url":"https://github.com/openscore/score-language","homepage":"http://openscore.io","size":3219,"stargazers_count":22,"watchers_count":22,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":43,"forks":10,"open_issues":43,"watchers":22,"default_branch":"master"}},"base":{"label":"openscore:master","ref":"master","sha":"5b45a1c942fb47308f3da3793967fc71540f8cc5","user":{"login":"openscore","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/openscore","html_url":"https://github.com/openscore","followers_url":"https://api.github.com/users/openscore/followers","following_url":"https://api.github.com/users/openscore/following{/other_user}","gists_url":"https://api.github.com/users/openscore/gists{/gist_id}","starred_url":"https://api.github.com/users/openscore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscore/subscriptions","organizations_url":"https://api.github.com/users/openscore/orgs","repos_url":"https://api.github.com/users/openscore/repos","events_url":"https://api.github.com/users/openscore/events{/privacy}","received_events_url":"https://api.github.com/users/openscore/received_events","type":"Organization","site_admin":false},"repo":{"id":28305425,"name":"score-language","full_name":"openscore/score-language","owner":{"login":"openscore","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/openscore","html_url":"https://github.com/openscore","followers_url":"https://api.github.com/users/openscore/followers","following_url":"https://api.github.com/users/openscore/following{/other_user}","gists_url":"https://api.github.com/users/openscore/gists{/gist_id}","starred_url":"https://api.github.com/users/openscore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscore/subscriptions","organizations_url":"https://api.github.com/users/openscore/orgs","repos_url":"https://api.github.com/users/openscore/repos","events_url":"https://api.github.com/users/openscore/events{/privacy}","received_events_url":"https://api.github.com/users/openscore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openscore/score-language","description":"score DSL and CLI = Slang (score-language)","fork":false,"url":"https://api.github.com/repos/openscore/score-language","forks_url":"https://api.github.com/repos/openscore/score-language/forks","keys_url":"https://api.github.com/repos/openscore/score-language/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openscore/score-language/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openscore/score-language/teams","hooks_url":"https://api.github.com/repos/openscore/score-language/hooks","issue_events_url":"https://api.github.com/repos/openscore/score-language/issues/events{/number}","events_url":"https://api.github.com/repos/openscore/score-language/events","assignees_url":"https://api.github.com/repos/openscore/score-language/assignees{/user}","branches_url":"https://api.github.com/repos/openscore/score-language/branches{/branch}","tags_url":"https://api.github.com/repos/openscore/score-language/tags","blobs_url":"https://api.github.com/repos/openscore/score-language/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openscore/score-language/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openscore/score-language/git/refs{/sha}","trees_url":"https://api.github.com/repos/openscore/score-language/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openscore/score-language/statuses/{sha}","languages_url":"https://api.github.com/repos/openscore/score-language/languages","stargazers_url":"https://api.github.com/repos/openscore/score-language/stargazers","contributors_url":"https://api.github.com/repos/openscore/score-language/contributors","subscribers_url":"https://api.github.com/repos/openscore/score-language/subscribers","subscription_url":"https://api.github.com/repos/openscore/score-language/subscription","commits_url":"https://api.github.com/repos/openscore/score-language/commits{/sha}","git_commits_url":"https://api.github.com/repos/openscore/score-language/git/commits{/sha}","comments_url":"https://api.github.com/repos/openscore/score-language/comments{/number}","issue_comment_url":"https://api.github.com/repos/openscore/score-language/issues/comments/{number}","contents_url":"https://api.github.com/repos/openscore/score-language/contents/{+path}","compare_url":"https://api.github.com/repos/openscore/score-language/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openscore/score-language/merges","archive_url":"https://api.github.com/repos/openscore/score-language/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openscore/score-language/downloads","issues_url":"https://api.github.com/repos/openscore/score-language/issues{/number}","pulls_url":"https://api.github.com/repos/openscore/score-language/pulls{/number}","milestones_url":"https://api.github.com/repos/openscore/score-language/milestones{/number}","notifications_url":"https://api.github.com/repos/openscore/score-language/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openscore/score-language/labels{/name}","releases_url":"https://api.github.com/repos/openscore/score-language/releases{/id}","created_at":"2014-12-21T16:32:24Z","updated_at":"2015-02-11T14:58:46Z","pushed_at":"2015-02-11T16:45:26Z","git_url":"git://github.com/openscore/score-language.git","ssh_url":"git@github.com:openscore/score-language.git","clone_url":"https://github.com/openscore/score-language.git","svn_url":"https://github.com/openscore/score-language","homepage":"http://openscore.io","size":3219,"stargazers_count":22,"watchers_count":22,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":43,"forks":10,"open_issues":43,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openscore/score-language/pulls/101"},"html":{"href":"https://github.com/openscore/score-language/pull/101"},"issue":{"href":"https://api.github.com/repos/openscore/score-language/issues/101"},"comments":{"href":"https://api.github.com/repos/openscore/score-language/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/openscore/score-language/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/openscore/score-language/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/openscore/score-language/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/openscore/score-language/statuses/3ded0f1566b17d7da0fea802302ac3cb059b57fb"}}}}