{"action":"created","comment":{"url":"https://api.github.com/repos/graalvm/mx/pulls/comments/76121851","id":76121851,"diff_hunk":"@@ -0,0 +1,99 @@\n+#!/usr/bin/env python2.7\n+#\n+# ----------------------------------------------------------------------------------------------------\n+#\n+# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.\n+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n+#\n+# This code is free software; you can redistribute it and/or modify it\n+# under the terms of the GNU General Public License version 2 only, as\n+# published by the Free Software Foundation.\n+#\n+# This code is distributed in the hope that it will be useful, but WITHOUT\n+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n+# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n+# version 2 for more details (a copy is included in the LICENSE file that\n+# accompanied this code).\n+#\n+# You should have received a copy of the GNU General Public License version\n+# 2 along with this work; if not, write to the Free Software Foundation,\n+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n+#\n+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\n+# or visit www.oracle.com if you need additional information or have any\n+# questions.\n+#\n+# ----------------------------------------------------------------------------------------------------\n+#\n+\n+import mx\n+import os\n+import tempfile\n+import shutil\n+from os.path import join, exists\n+\n+def _should_test_project(p):\n+    if not p.isJavaProject():\n+        return False\n+    if hasattr(p, 'jackpot'):\n+        return p.jackpot.lower() == 'true'\n+    if p.name.endswith('.test'):\n+        return False\n+    return True\n+\n+def jackpot(args, suite=None):\n+    \"\"\"run Jackpot 3.0 against non-test Java projects\"\"\"\n+    jackpotHome = mx.get_env('JACKPOT_HOME', None)\n+    if jackpotHome:\n+        jackpotJar = join(jackpotHome, 'jackpot.jar')\n+    else:\n+        jackpotJar = mx.library('JACKPOT').get_path(resolve=True)\n+    assert exists(jackpotJar)\n+    if suite is None:\n+        suite = mx._primary_suite\n+    nonTestProjects = [p for p in mx.projects() if _should_test_project(p)]\n+    if not nonTestProjects:\n+        return 0\n+    cache = tempfile.mkdtemp(prefix='jackpot-mx-cache', dir=mx._mx_suite.dir)","path":"mx_jackpot.py","position":57,"original_position":57,"commit_id":"ce3ba9623431c61d3b59c7c07193e6f8be8011ee","original_commit_id":"ce3ba9623431c61d3b59c7c07193e6f8be8011ee","user":{"login":"dougxc","id":5080087,"avatar_url":"https://avatars.githubusercontent.com/u/5080087?v=3","gravatar_id":"","url":"https://api.github.com/users/dougxc","html_url":"https://github.com/dougxc","followers_url":"https://api.github.com/users/dougxc/followers","following_url":"https://api.github.com/users/dougxc/following{/other_user}","gists_url":"https://api.github.com/users/dougxc/gists{/gist_id}","starred_url":"https://api.github.com/users/dougxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougxc/subscriptions","organizations_url":"https://api.github.com/users/dougxc/orgs","repos_url":"https://api.github.com/users/dougxc/repos","events_url":"https://api.github.com/users/dougxc/events{/privacy}","received_events_url":"https://api.github.com/users/dougxc/received_events","type":"User","site_admin":false},"body":"This cache doesn't appear to be used?","created_at":"2016-08-24T19:23:48Z","updated_at":"2016-08-24T19:23:48Z","html_url":"https://github.com/graalvm/mx/pull/119#discussion_r76121851","pull_request_url":"https://api.github.com/repos/graalvm/mx/pulls/119","_links":{"self":{"href":"https://api.github.com/repos/graalvm/mx/pulls/comments/76121851"},"html":{"href":"https://github.com/graalvm/mx/pull/119#discussion_r76121851"},"pull_request":{"href":"https://api.github.com/repos/graalvm/mx/pulls/119"}}},"pull_request":{"url":"https://api.github.com/repos/graalvm/mx/pulls/119","id":82590288,"html_url":"https://github.com/graalvm/mx/pull/119","diff_url":"https://github.com/graalvm/mx/pull/119.diff","patch_url":"https://github.com/graalvm/mx/pull/119.patch","issue_url":"https://api.github.com/repos/graalvm/mx/issues/119","number":119,"state":"open","locked":false,"title":"Adding Jackpot 3.0 support","user":{"login":"jlahoda","id":124144,"avatar_url":"https://avatars.githubusercontent.com/u/124144?v=3","gravatar_id":"","url":"https://api.github.com/users/jlahoda","html_url":"https://github.com/jlahoda","followers_url":"https://api.github.com/users/jlahoda/followers","following_url":"https://api.github.com/users/jlahoda/following{/other_user}","gists_url":"https://api.github.com/users/jlahoda/gists{/gist_id}","starred_url":"https://api.github.com/users/jlahoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlahoda/subscriptions","organizations_url":"https://api.github.com/users/jlahoda/orgs","repos_url":"https://api.github.com/users/jlahoda/repos","events_url":"https://api.github.com/users/jlahoda/events{/privacy}","received_events_url":"https://api.github.com/users/jlahoda/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nThis patch adds a support for Jackpot 3.0 - Jackpot 3.0 interprets custom hint files, and reports warnings as appropriate. To use it, it should suffice to do \"mx jackpot\", similarly to \"mx findbugs\".\r\n\r\nComments are welcome!\r\n\r\nThanks!","created_at":"2016-08-24T18:08:47Z","updated_at":"2016-08-24T19:23:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4aad5ddfa002ec6e9a691afb89ea06b3e4285935","assignee":{"login":"dougxc","id":5080087,"avatar_url":"https://avatars.githubusercontent.com/u/5080087?v=3","gravatar_id":"","url":"https://api.github.com/users/dougxc","html_url":"https://github.com/dougxc","followers_url":"https://api.github.com/users/dougxc/followers","following_url":"https://api.github.com/users/dougxc/following{/other_user}","gists_url":"https://api.github.com/users/dougxc/gists{/gist_id}","starred_url":"https://api.github.com/users/dougxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougxc/subscriptions","organizations_url":"https://api.github.com/users/dougxc/orgs","repos_url":"https://api.github.com/users/dougxc/repos","events_url":"https://api.github.com/users/dougxc/events{/privacy}","received_events_url":"https://api.github.com/users/dougxc/received_events","type":"User","site_admin":false},"assignees":[{"login":"dougxc","id":5080087,"avatar_url":"https://avatars.githubusercontent.com/u/5080087?v=3","gravatar_id":"","url":"https://api.github.com/users/dougxc","html_url":"https://github.com/dougxc","followers_url":"https://api.github.com/users/dougxc/followers","following_url":"https://api.github.com/users/dougxc/following{/other_user}","gists_url":"https://api.github.com/users/dougxc/gists{/gist_id}","starred_url":"https://api.github.com/users/dougxc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougxc/subscriptions","organizations_url":"https://api.github.com/users/dougxc/orgs","repos_url":"https://api.github.com/users/dougxc/repos","events_url":"https://api.github.com/users/dougxc/events{/privacy}","received_events_url":"https://api.github.com/users/dougxc/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/graalvm/mx/pulls/119/commits","review_comments_url":"https://api.github.com/repos/graalvm/mx/pulls/119/comments","review_comment_url":"https://api.github.com/repos/graalvm/mx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graalvm/mx/issues/119/comments","statuses_url":"https://api.github.com/repos/graalvm/mx/statuses/ce3ba9623431c61d3b59c7c07193e6f8be8011ee","head":{"label":"jlahoda:jackpot30","ref":"jackpot30","sha":"ce3ba9623431c61d3b59c7c07193e6f8be8011ee","user":{"login":"jlahoda","id":124144,"avatar_url":"https://avatars.githubusercontent.com/u/124144?v=3","gravatar_id":"","url":"https://api.github.com/users/jlahoda","html_url":"https://github.com/jlahoda","followers_url":"https://api.github.com/users/jlahoda/followers","following_url":"https://api.github.com/users/jlahoda/following{/other_user}","gists_url":"https://api.github.com/users/jlahoda/gists{/gist_id}","starred_url":"https://api.github.com/users/jlahoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlahoda/subscriptions","organizations_url":"https://api.github.com/users/jlahoda/orgs","repos_url":"https://api.github.com/users/jlahoda/repos","events_url":"https://api.github.com/users/jlahoda/events{/privacy}","received_events_url":"https://api.github.com/users/jlahoda/received_events","type":"User","site_admin":false},"repo":{"id":51531656,"name":"mx","full_name":"jlahoda/mx","owner":{"login":"jlahoda","id":124144,"avatar_url":"https://avatars.githubusercontent.com/u/124144?v=3","gravatar_id":"","url":"https://api.github.com/users/jlahoda","html_url":"https://github.com/jlahoda","followers_url":"https://api.github.com/users/jlahoda/followers","following_url":"https://api.github.com/users/jlahoda/following{/other_user}","gists_url":"https://api.github.com/users/jlahoda/gists{/gist_id}","starred_url":"https://api.github.com/users/jlahoda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlahoda/subscriptions","organizations_url":"https://api.github.com/users/jlahoda/orgs","repos_url":"https://api.github.com/users/jlahoda/repos","events_url":"https://api.github.com/users/jlahoda/events{/privacy}","received_events_url":"https://api.github.com/users/jlahoda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jlahoda/mx","description":"Command-line tool used for the development of Graal projects.","fork":true,"url":"https://api.github.com/repos/jlahoda/mx","forks_url":"https://api.github.com/repos/jlahoda/mx/forks","keys_url":"https://api.github.com/repos/jlahoda/mx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jlahoda/mx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jlahoda/mx/teams","hooks_url":"https://api.github.com/repos/jlahoda/mx/hooks","issue_events_url":"https://api.github.com/repos/jlahoda/mx/issues/events{/number}","events_url":"https://api.github.com/repos/jlahoda/mx/events","assignees_url":"https://api.github.com/repos/jlahoda/mx/assignees{/user}","branches_url":"https://api.github.com/repos/jlahoda/mx/branches{/branch}","tags_url":"https://api.github.com/repos/jlahoda/mx/tags","blobs_url":"https://api.github.com/repos/jlahoda/mx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jlahoda/mx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jlahoda/mx/git/refs{/sha}","trees_url":"https://api.github.com/repos/jlahoda/mx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jlahoda/mx/statuses/{sha}","languages_url":"https://api.github.com/repos/jlahoda/mx/languages","stargazers_url":"https://api.github.com/repos/jlahoda/mx/stargazers","contributors_url":"https://api.github.com/repos/jlahoda/mx/contributors","subscribers_url":"https://api.github.com/repos/jlahoda/mx/subscribers","subscription_url":"https://api.github.com/repos/jlahoda/mx/subscription","commits_url":"https://api.github.com/repos/jlahoda/mx/commits{/sha}","git_commits_url":"https://api.github.com/repos/jlahoda/mx/git/commits{/sha}","comments_url":"https://api.github.com/repos/jlahoda/mx/comments{/number}","issue_comment_url":"https://api.github.com/repos/jlahoda/mx/issues/comments{/number}","contents_url":"https://api.github.com/repos/jlahoda/mx/contents/{+path}","compare_url":"https://api.github.com/repos/jlahoda/mx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jlahoda/mx/merges","archive_url":"https://api.github.com/repos/jlahoda/mx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jlahoda/mx/downloads","issues_url":"https://api.github.com/repos/jlahoda/mx/issues{/number}","pulls_url":"https://api.github.com/repos/jlahoda/mx/pulls{/number}","milestones_url":"https://api.github.com/repos/jlahoda/mx/milestones{/number}","notifications_url":"https://api.github.com/repos/jlahoda/mx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jlahoda/mx/labels{/name}","releases_url":"https://api.github.com/repos/jlahoda/mx/releases{/id}","deployments_url":"https://api.github.com/repos/jlahoda/mx/deployments","created_at":"2016-02-11T17:21:07Z","updated_at":"2016-02-11T17:21:08Z","pushed_at":"2016-08-24T19:11:45Z","git_url":"git://github.com/jlahoda/mx.git","ssh_url":"git@github.com:jlahoda/mx.git","clone_url":"https://github.com/jlahoda/mx.git","svn_url":"https://github.com/jlahoda/mx","homepage":"","size":22728,"stargazers_count":0,"watchers_count":0,"language":"Python","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":0,"default_branch":"master"}},"base":{"label":"graalvm:master","ref":"master","sha":"d91fc3d4f79f9ea8b8a04a23cae436f16e970b20","user":{"login":"graalvm","id":10176827,"avatar_url":"https://avatars.githubusercontent.com/u/10176827?v=3","gravatar_id":"","url":"https://api.github.com/users/graalvm","html_url":"https://github.com/graalvm","followers_url":"https://api.github.com/users/graalvm/followers","following_url":"https://api.github.com/users/graalvm/following{/other_user}","gists_url":"https://api.github.com/users/graalvm/gists{/gist_id}","starred_url":"https://api.github.com/users/graalvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graalvm/subscriptions","organizations_url":"https://api.github.com/users/graalvm/orgs","repos_url":"https://api.github.com/users/graalvm/repos","events_url":"https://api.github.com/users/graalvm/events{/privacy}","received_events_url":"https://api.github.com/users/graalvm/received_events","type":"Organization","site_admin":false},"repo":{"id":50361890,"name":"mx","full_name":"graalvm/mx","owner":{"login":"graalvm","id":10176827,"avatar_url":"https://avatars.githubusercontent.com/u/10176827?v=3","gravatar_id":"","url":"https://api.github.com/users/graalvm","html_url":"https://github.com/graalvm","followers_url":"https://api.github.com/users/graalvm/followers","following_url":"https://api.github.com/users/graalvm/following{/other_user}","gists_url":"https://api.github.com/users/graalvm/gists{/gist_id}","starred_url":"https://api.github.com/users/graalvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graalvm/subscriptions","organizations_url":"https://api.github.com/users/graalvm/orgs","repos_url":"https://api.github.com/users/graalvm/repos","events_url":"https://api.github.com/users/graalvm/events{/privacy}","received_events_url":"https://api.github.com/users/graalvm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graalvm/mx","description":"Command-line tool used for the development of Graal projects.","fork":false,"url":"https://api.github.com/repos/graalvm/mx","forks_url":"https://api.github.com/repos/graalvm/mx/forks","keys_url":"https://api.github.com/repos/graalvm/mx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graalvm/mx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graalvm/mx/teams","hooks_url":"https://api.github.com/repos/graalvm/mx/hooks","issue_events_url":"https://api.github.com/repos/graalvm/mx/issues/events{/number}","events_url":"https://api.github.com/repos/graalvm/mx/events","assignees_url":"https://api.github.com/repos/graalvm/mx/assignees{/user}","branches_url":"https://api.github.com/repos/graalvm/mx/branches{/branch}","tags_url":"https://api.github.com/repos/graalvm/mx/tags","blobs_url":"https://api.github.com/repos/graalvm/mx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graalvm/mx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graalvm/mx/git/refs{/sha}","trees_url":"https://api.github.com/repos/graalvm/mx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graalvm/mx/statuses/{sha}","languages_url":"https://api.github.com/repos/graalvm/mx/languages","stargazers_url":"https://api.github.com/repos/graalvm/mx/stargazers","contributors_url":"https://api.github.com/repos/graalvm/mx/contributors","subscribers_url":"https://api.github.com/repos/graalvm/mx/subscribers","subscription_url":"https://api.github.com/repos/graalvm/mx/subscription","commits_url":"https://api.github.com/repos/graalvm/mx/commits{/sha}","git_commits_url":"https://api.github.com/repos/graalvm/mx/git/commits{/sha}","comments_url":"https://api.github.com/repos/graalvm/mx/comments{/number}","issue_comment_url":"https://api.github.com/repos/graalvm/mx/issues/comments{/number}","contents_url":"https://api.github.com/repos/graalvm/mx/contents/{+path}","compare_url":"https://api.github.com/repos/graalvm/mx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graalvm/mx/merges","archive_url":"https://api.github.com/repos/graalvm/mx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graalvm/mx/downloads","issues_url":"https://api.github.com/repos/graalvm/mx/issues{/number}","pulls_url":"https://api.github.com/repos/graalvm/mx/pulls{/number}","milestones_url":"https://api.github.com/repos/graalvm/mx/milestones{/number}","notifications_url":"https://api.github.com/repos/graalvm/mx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graalvm/mx/labels{/name}","releases_url":"https://api.github.com/repos/graalvm/mx/releases{/id}","deployments_url":"https://api.github.com/repos/graalvm/mx/deployments","created_at":"2016-01-25T15:56:38Z","updated_at":"2016-07-20T04:22:53Z","pushed_at":"2016-08-24T19:11:46Z","git_url":"git://github.com/graalvm/mx.git","ssh_url":"git@github.com:graalvm/mx.git","clone_url":"https://github.com/graalvm/mx.git","svn_url":"https://github.com/graalvm/mx","homepage":"","size":22570,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":12,"forks":25,"open_issues":12,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graalvm/mx/pulls/119"},"html":{"href":"https://github.com/graalvm/mx/pull/119"},"issue":{"href":"https://api.github.com/repos/graalvm/mx/issues/119"},"comments":{"href":"https://api.github.com/repos/graalvm/mx/issues/119/comments"},"review_comments":{"href":"https://api.github.com/repos/graalvm/mx/pulls/119/comments"},"review_comment":{"href":"https://api.github.com/repos/graalvm/mx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graalvm/mx/pulls/119/commits"},"statuses":{"href":"https://api.github.com/repos/graalvm/mx/statuses/ce3ba9623431c61d3b59c7c07193e6f8be8011ee"}}}}
{"actor":{"display_login":"dougxc"}}