{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/comments/71997442","id":71997442,"diff_hunk":"@@ -0,0 +1,54 @@\n+/*\n+ * The MIT License\n+ *\n+ * Copyright 2016 Martin Hjelmqvist.\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+package com.synopsys.arc.jenkinsci.plugins.extratoolinstallers.installers;\n+\n+import hudson.FilePath;\n+import java.net.URL;\n+import org.junit.Test;\n+import static org.junit.Assert.*;\n+import org.junit.Rule;\n+import org.junit.rules.TemporaryFolder;\n+\n+/**\n+ * Testing the extraction process.\n+ *\n+ * @author Martin Hjelmqvist <martin@hjelmqvist.eu>.\n+ */\n+public class RarFilePathTest {\n+\n+    @Rule\n+    public TemporaryFolder temp = new TemporaryFolder();\n+\n+    /**\n+     * Performs an installation/extraction of a sample tool.\n+     * @throws Exception If the installation fails, an exception is thrown.\n+     */\n+    @Test\n+    public void installIfNecessaryPerformsInstallation() throws Exception {","path":"src/test/java/com/synopsys/arc/jenkinsci/plugins/extratoolinstallers/installers/RarFilePathTest.java","position":48,"original_position":48,"commit_id":"53993ec0ed677ca15201b797c1d67026390f8e22","original_commit_id":"53993ec0ed677ca15201b797c1d67026390f8e22","user":{"login":"oleg-nenashev","id":3000480,"avatar_url":"https://avatars.githubusercontent.com/u/3000480?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"body":"Also makes sense to test remote operation on the Jenkins slave","created_at":"2016-07-24T23:01:32Z","updated_at":"2016-07-24T23:01:32Z","html_url":"https://github.com/jenkinsci/extra-tool-installers-plugin/pull/4#discussion_r71997442","pull_request_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/comments/71997442"},"html":{"href":"https://github.com/jenkinsci/extra-tool-installers-plugin/pull/4#discussion_r71997442"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/4","id":73240788,"html_url":"https://github.com/jenkinsci/extra-tool-installers-plugin/pull/4","diff_url":"https://github.com/jenkinsci/extra-tool-installers-plugin/pull/4.diff","patch_url":"https://github.com/jenkinsci/extra-tool-installers-plugin/pull/4.patch","issue_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/issues/4","number":4,"state":"open","locked":false,"title":"Added a standalone installer for RAR-files.","user":{"login":"Preyfix","id":11959494,"avatar_url":"https://avatars.githubusercontent.com/u/11959494?v=3","gravatar_id":"","url":"https://api.github.com/users/Preyfix","html_url":"https://github.com/Preyfix","followers_url":"https://api.github.com/users/Preyfix/followers","following_url":"https://api.github.com/users/Preyfix/following{/other_user}","gists_url":"https://api.github.com/users/Preyfix/gists{/gist_id}","starred_url":"https://api.github.com/users/Preyfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preyfix/subscriptions","organizations_url":"https://api.github.com/users/Preyfix/orgs","repos_url":"https://api.github.com/users/Preyfix/repos","events_url":"https://api.github.com/users/Preyfix/events{/privacy}","received_events_url":"https://api.github.com/users/Preyfix/received_events","type":"User","site_admin":false},"body":"The goal is to extend this plugin with a standalone tool installer for RAR-files.\r\nCurrently the installer is visible in the Global Tool Configuration view in Jenkins, but the extraction process is not fully implemented yet. At the moment, however, if anything from JUnrar is initialized the installer disappears from the configuration view (hence the large portion of commented code in the extraction method (Lines 274-325)).\r\nAlso getting a huge amount of warnings when compiling with Maven.\r\nStack trace when using \"mvn package\": [Stack-trace-output.txt](https://github.com/jenkinsci/extra-tool-installers-plugin/files/307329/Stack-trace-output.txt)\r\n\r\n\r\nNot sure what the problem is and what to do next. All feedback is welcome.","created_at":"2016-06-09T16:01:08Z","updated_at":"2016-07-24T23:01:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"96e88937f18452a464362050d4a185296cb98a48","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/4/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/4/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/issues/4/comments","statuses_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/statuses/53993ec0ed677ca15201b797c1d67026390f8e22","head":{"label":"Preyfix:master","ref":"master","sha":"53993ec0ed677ca15201b797c1d67026390f8e22","user":{"login":"Preyfix","id":11959494,"avatar_url":"https://avatars.githubusercontent.com/u/11959494?v=3","gravatar_id":"","url":"https://api.github.com/users/Preyfix","html_url":"https://github.com/Preyfix","followers_url":"https://api.github.com/users/Preyfix/followers","following_url":"https://api.github.com/users/Preyfix/following{/other_user}","gists_url":"https://api.github.com/users/Preyfix/gists{/gist_id}","starred_url":"https://api.github.com/users/Preyfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preyfix/subscriptions","organizations_url":"https://api.github.com/users/Preyfix/orgs","repos_url":"https://api.github.com/users/Preyfix/repos","events_url":"https://api.github.com/users/Preyfix/events{/privacy}","received_events_url":"https://api.github.com/users/Preyfix/received_events","type":"User","site_admin":false},"repo":{"id":54470729,"name":"extra-tool-installers-plugin","full_name":"Preyfix/extra-tool-installers-plugin","owner":{"login":"Preyfix","id":11959494,"avatar_url":"https://avatars.githubusercontent.com/u/11959494?v=3","gravatar_id":"","url":"https://api.github.com/users/Preyfix","html_url":"https://github.com/Preyfix","followers_url":"https://api.github.com/users/Preyfix/followers","following_url":"https://api.github.com/users/Preyfix/following{/other_user}","gists_url":"https://api.github.com/users/Preyfix/gists{/gist_id}","starred_url":"https://api.github.com/users/Preyfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preyfix/subscriptions","organizations_url":"https://api.github.com/users/Preyfix/orgs","repos_url":"https://api.github.com/users/Preyfix/repos","events_url":"https://api.github.com/users/Preyfix/events{/privacy}","received_events_url":"https://api.github.com/users/Preyfix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Preyfix/extra-tool-installers-plugin","description":"Jenkins plugin. Provides generic tool installers","fork":true,"url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin","forks_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/forks","keys_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/teams","hooks_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/hooks","issue_events_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/events","assignees_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/tags","blobs_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/languages","stargazers_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/stargazers","contributors_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/contributors","subscribers_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/subscribers","subscription_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/subscription","commits_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/merges","archive_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/downloads","issues_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/labels{/name}","releases_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/Preyfix/extra-tool-installers-plugin/deployments","created_at":"2016-03-22T11:45:40Z","updated_at":"2016-03-22T11:45:41Z","pushed_at":"2016-07-23T19:46:22Z","git_url":"git://github.com/Preyfix/extra-tool-installers-plugin.git","ssh_url":"git@github.com:Preyfix/extra-tool-installers-plugin.git","clone_url":"https://github.com/Preyfix/extra-tool-installers-plugin.git","svn_url":"https://github.com/Preyfix/extra-tool-installers-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Extra+Tool+Installers+Plugin","size":71,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"jenkinsci:master","ref":"master","sha":"8b71bead26acaaf921205619e0804e05d47f5b0c","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":11544390,"name":"extra-tool-installers-plugin","full_name":"jenkinsci/extra-tool-installers-plugin","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/extra-tool-installers-plugin","description":"Jenkins plugin. Provides generic tool installers","fork":true,"url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin","forks_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/forks","keys_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/teams","hooks_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/events","assignees_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/tags","blobs_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/subscription","commits_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/merges","archive_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/downloads","issues_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/releases{/id}","deployments_url":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/deployments","created_at":"2013-07-20T08:35:07Z","updated_at":"2014-01-19T08:31:28Z","pushed_at":"2016-07-23T19:46:23Z","git_url":"git://github.com/jenkinsci/extra-tool-installers-plugin.git","ssh_url":"git@github.com:jenkinsci/extra-tool-installers-plugin.git","clone_url":"https://github.com/jenkinsci/extra-tool-installers-plugin.git","svn_url":"https://github.com/jenkinsci/extra-tool-installers-plugin","homepage":"https://wiki.jenkins-ci.org/display/JENKINS/Extra+Tool+Installers+Plugin","size":73,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/4"},"html":{"href":"https://github.com/jenkinsci/extra-tool-installers-plugin/pull/4"},"issue":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/issues/4"},"comments":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/extra-tool-installers-plugin/statuses/53993ec0ed677ca15201b797c1d67026390f8e22"}}}}
{"actor":{"display_login":"oleg-nenashev"}}