GitHub PullRequestReviewCommentEvent at 2014-10-12 17:23:48
Repository: arquillian-spacelift
Actor: smiklosovic
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/comments/18748748","id":18748748,"diff_hunk":"@@ -0,0 +1,110 @@\n+/*\n+ * JBoss, Home of Professional Open Source\n+ * Copyright 2014, Red Hat Middleware LLC, and individual contributors\n+ * by the @authors tag. See the copyright.txt in the distribution for a\n+ * full listing of individual contributors.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.arquillian.spacelift.tool.basic;\n+\n+import java.io.BufferedOutputStream;\n+import java.io.File;\n+import java.io.FileInputStream;\n+import java.io.FileOutputStream;\n+import java.io.InputStream;\n+\n+import org.apache.commons.compress.archivers.ArchiveEntry;\n+import org.apache.commons.compress.archivers.ArchiveInputStream;\n+import org.arquillian.spacelift.tool.Tool;\n+\n+/**\n+ * Uncompress Tool\n+ *\n+ * @author <a href=\"asotobu@gmail.com\">Alex Soto</a>\n+ *\n+ */\n+public abstract class UncompressTool extends Tool<File, File> {\n+\n+    private static final int BUFFER = 2048;\n+\n+    private File dest;\n+\n+    protected abstract ArchiveInputStream compressedInputStream(InputStream compressedFile);\n+\n+    protected abstract int permissionsMode(ArchiveEntry archiveEntry);\n+\n+    /**\n+     *\n+     * @param pathToDestination\n+     *            destination where to unzip a file\n+     * @return\n+     */\n+    public UncompressTool toDir(String pathToDestination) {\n+        return toDir(new File(pathToDestination));\n+    }\n+\n+    /**\n+     *\n+     * @param destination\n+     *            destination where to unzip a file","path":"spacelift-impl/src/main/java/org/arquillian/spacelift/tool/basic/UncompressTool.java","position":58,"original_position":58,"commit_id":"b85d9403e145721d5d9186310ab36deb03d3f065","original_commit_id":"b85d9403e145721d5d9186310ab36deb03d3f065","user":{"login":"smiklosovic","id":588603,"avatar_url":"https://avatars.githubusercontent.com/u/588603?v=2","gravatar_id":"","url":"https://api.github.com/users/smiklosovic","html_url":"https://github.com/smiklosovic","followers_url":"https://api.github.com/users/smiklosovic/followers","following_url":"https://api.github.com/users/smiklosovic/following{/other_user}","gists_url":"https://api.github.com/users/smiklosovic/gists{/gist_id}","starred_url":"https://api.github.com/users/smiklosovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smiklosovic/subscriptions","organizations_url":"https://api.github.com/users/smiklosovic/orgs","repos_url":"https://api.github.com/users/smiklosovic/repos","events_url":"https://api.github.com/users/smiklosovic/events{/privacy}","received_events_url":"https://api.github.com/users/smiklosovic/received_events","type":"User","site_admin":false},"body":"... where to uncompress a file ... ","created_at":"2014-10-12T17:23:48Z","updated_at":"2014-10-12T17:23:48Z","html_url":"https://github.com/arquillian/arquillian-spacelift/pull/19#discussion_r18748748","pull_request_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/comments/18748748"},"html":{"href":"https://github.com/arquillian/arquillian-spacelift/pull/19#discussion_r18748748"},"pull_request":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/19","id":22616683,"html_url":"https://github.com/arquillian/arquillian-spacelift/pull/19","diff_url":"https://github.com/arquillian/arquillian-spacelift/pull/19.diff","patch_url":"https://github.com/arquillian/arquillian-spacelift/pull/19.patch","issue_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/issues/19","number":19,"state":"open","locked":false,"title":"resolves issues ARQ-1863 and ARQ-1864","user":{"login":"lordofthejars","id":1517153,"avatar_url":"https://avatars.githubusercontent.com/u/1517153?v=2","gravatar_id":"","url":"https://api.github.com/users/lordofthejars","html_url":"https://github.com/lordofthejars","followers_url":"https://api.github.com/users/lordofthejars/followers","following_url":"https://api.github.com/users/lordofthejars/following{/other_user}","gists_url":"https://api.github.com/users/lordofthejars/gists{/gist_id}","starred_url":"https://api.github.com/users/lordofthejars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordofthejars/subscriptions","organizations_url":"https://api.github.com/users/lordofthejars/orgs","repos_url":"https://api.github.com/users/lordofthejars/repos","events_url":"https://api.github.com/users/lordofthejars/events{/privacy}","received_events_url":"https://api.github.com/users/lordofthejars/received_events","type":"User","site_admin":false},"body":"resolves issues ARQ-1863 and ARQ-1864 by updating arquillian version to 1.1.5.Final and removing zip4j as dependency and add commons-compress library. Because of this change a new UnzipTool and UntarTool has been implemented, so Linux users that cannot use zip can still uncompress their files. \r\n\r\nA base Uncompress class has been created so common uncompress operations for uncompress algorithms can be implemented easier. ","created_at":"2014-10-12T15:13:01Z","updated_at":"2014-10-12T17:23:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d977aa5f6f851e6022f76a019455886f467539a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/19/commits","review_comments_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/19/comments","review_comment_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/comments/{number}","comments_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/issues/19/comments","statuses_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/statuses/b85d9403e145721d5d9186310ab36deb03d3f065","head":{"label":"lordofthejars:master","ref":"master","sha":"b85d9403e145721d5d9186310ab36deb03d3f065","user":{"login":"lordofthejars","id":1517153,"avatar_url":"https://avatars.githubusercontent.com/u/1517153?v=2","gravatar_id":"","url":"https://api.github.com/users/lordofthejars","html_url":"https://github.com/lordofthejars","followers_url":"https://api.github.com/users/lordofthejars/followers","following_url":"https://api.github.com/users/lordofthejars/following{/other_user}","gists_url":"https://api.github.com/users/lordofthejars/gists{/gist_id}","starred_url":"https://api.github.com/users/lordofthejars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordofthejars/subscriptions","organizations_url":"https://api.github.com/users/lordofthejars/orgs","repos_url":"https://api.github.com/users/lordofthejars/repos","events_url":"https://api.github.com/users/lordofthejars/events{/privacy}","received_events_url":"https://api.github.com/users/lordofthejars/received_events","type":"User","site_admin":false},"repo":{"id":24786721,"name":"arquillian-spacelift","full_name":"lordofthejars/arquillian-spacelift","owner":{"login":"lordofthejars","id":1517153,"avatar_url":"https://avatars.githubusercontent.com/u/1517153?v=2","gravatar_id":"","url":"https://api.github.com/users/lordofthejars","html_url":"https://github.com/lordofthejars","followers_url":"https://api.github.com/users/lordofthejars/followers","following_url":"https://api.github.com/users/lordofthejars/following{/other_user}","gists_url":"https://api.github.com/users/lordofthejars/gists{/gist_id}","starred_url":"https://api.github.com/users/lordofthejars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lordofthejars/subscriptions","organizations_url":"https://api.github.com/users/lordofthejars/orgs","repos_url":"https://api.github.com/users/lordofthejars/repos","events_url":"https://api.github.com/users/lordofthejars/events{/privacy}","received_events_url":"https://api.github.com/users/lordofthejars/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lordofthejars/arquillian-spacelift","description":"Support for running native code by Arquillian","fork":true,"url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift","forks_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/forks","keys_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/teams","hooks_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/hooks","issue_events_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/issues/events{/number}","events_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/events","assignees_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/assignees{/user}","branches_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/branches{/branch}","tags_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/tags","blobs_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/git/refs{/sha}","trees_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/statuses/{sha}","languages_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/languages","stargazers_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/stargazers","contributors_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/contributors","subscribers_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/subscribers","subscription_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/subscription","commits_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/commits{/sha}","git_commits_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/git/commits{/sha}","comments_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/comments{/number}","issue_comment_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/issues/comments/{number}","contents_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/contents/{+path}","compare_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/merges","archive_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/downloads","issues_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/issues{/number}","pulls_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/pulls{/number}","milestones_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/milestones{/number}","notifications_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/labels{/name}","releases_url":"https://api.github.com/repos/lordofthejars/arquillian-spacelift/releases{/id}","created_at":"2014-10-04T10:15:11Z","updated_at":"2014-10-12T15:05:21Z","pushed_at":"2014-10-12T15:09:07Z","git_url":"git://github.com/lordofthejars/arquillian-spacelift.git","ssh_url":"git@github.com:lordofthejars/arquillian-spacelift.git","clone_url":"https://github.com/lordofthejars/arquillian-spacelift.git","svn_url":"https://github.com/lordofthejars/arquillian-spacelift","homepage":null,"size":766,"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":"arquillian:master","ref":"master","sha":"298675ad8eea3700dc99f47a32a980f66e1961f1","user":{"login":"arquillian","id":330981,"avatar_url":"https://avatars.githubusercontent.com/u/330981?v=2","gravatar_id":"","url":"https://api.github.com/users/arquillian","html_url":"https://github.com/arquillian","followers_url":"https://api.github.com/users/arquillian/followers","following_url":"https://api.github.com/users/arquillian/following{/other_user}","gists_url":"https://api.github.com/users/arquillian/gists{/gist_id}","starred_url":"https://api.github.com/users/arquillian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arquillian/subscriptions","organizations_url":"https://api.github.com/users/arquillian/orgs","repos_url":"https://api.github.com/users/arquillian/repos","events_url":"https://api.github.com/users/arquillian/events{/privacy}","received_events_url":"https://api.github.com/users/arquillian/received_events","type":"Organization","site_admin":false},"repo":{"id":15584580,"name":"arquillian-spacelift","full_name":"arquillian/arquillian-spacelift","owner":{"login":"arquillian","id":330981,"avatar_url":"https://avatars.githubusercontent.com/u/330981?v=2","gravatar_id":"","url":"https://api.github.com/users/arquillian","html_url":"https://github.com/arquillian","followers_url":"https://api.github.com/users/arquillian/followers","following_url":"https://api.github.com/users/arquillian/following{/other_user}","gists_url":"https://api.github.com/users/arquillian/gists{/gist_id}","starred_url":"https://api.github.com/users/arquillian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arquillian/subscriptions","organizations_url":"https://api.github.com/users/arquillian/orgs","repos_url":"https://api.github.com/users/arquillian/repos","events_url":"https://api.github.com/users/arquillian/events{/privacy}","received_events_url":"https://api.github.com/users/arquillian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arquillian/arquillian-spacelift","description":"Support for running native code by Arquillian","fork":false,"url":"https://api.github.com/repos/arquillian/arquillian-spacelift","forks_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/forks","keys_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/teams","hooks_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/hooks","issue_events_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/issues/events{/number}","events_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/events","assignees_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/assignees{/user}","branches_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/branches{/branch}","tags_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/tags","blobs_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/git/refs{/sha}","trees_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/statuses/{sha}","languages_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/languages","stargazers_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/stargazers","contributors_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/contributors","subscribers_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/subscribers","subscription_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/subscription","commits_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/commits{/sha}","git_commits_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/git/commits{/sha}","comments_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/comments{/number}","issue_comment_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/issues/comments/{number}","contents_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/contents/{+path}","compare_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/merges","archive_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/downloads","issues_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/issues{/number}","pulls_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls{/number}","milestones_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/milestones{/number}","notifications_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/labels{/name}","releases_url":"https://api.github.com/repos/arquillian/arquillian-spacelift/releases{/id}","created_at":"2014-01-02T13:49:25Z","updated_at":"2014-10-02T13:25:30Z","pushed_at":"2014-05-26T10:24:50Z","git_url":"git://github.com/arquillian/arquillian-spacelift.git","ssh_url":"git@github.com:arquillian/arquillian-spacelift.git","clone_url":"https://github.com/arquillian/arquillian-spacelift.git","svn_url":"https://github.com/arquillian/arquillian-spacelift","homepage":null,"size":766,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":10,"forks":4,"open_issues":10,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/19"},"html":{"href":"https://github.com/arquillian/arquillian-spacelift/pull/19"},"issue":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/issues/19"},"comments":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/arquillian/arquillian-spacelift/statuses/b85d9403e145721d5d9186310ab36deb03d3f065"}}}}