{"action":"created","comment":{"url":"https://api.github.com/repos/gamerson/liferay-ide/pulls/comments/67781586","id":67781586,"diff_hunk":"@@ -69,48 +71,90 @@ private File checkStaticWrapperFile() throws IOException\n             {\n                 if( lib.exists() && lib.getName().endsWith( \"portal-kernel.jar\" ) )\n                 {\n-                    targetJarFile.add( lib );\n+                    portalkernelJar = lib;\n+                    break;\n                 }\n             }\n \n             libFiles = FileListing.getFileListing( new File( bundleServerPath.append( \"../osgi\" ).toOSString() ) );\n+            libFiles.add( portalkernelJar );\n \n-            for( File lib : libFiles )\n+            if( !libFiles.isEmpty() )\n             {\n-                if( lib.exists() && lib.getName().endsWith( \"api.jar\" ) )\n+                for( File lib : libFiles )\n                 {\n-                    targetJarFile.add( lib );\n+                    if( lib.getName().endsWith( \".lpkg\" ) )\n+                    {\n+                        try(JarFile jar = new JarFile( lib ))\n+                        {\n+                            Enumeration<JarEntry> enu = jar.entries();\n+\n+                            while( enu.hasMoreElements() )\n+                            {\n+                                JarEntry entry = enu.nextElement();\n+\n+                                String name = entry.getName();\n+\n+                                if( name.contains( \".api\" ) )","path":"tools/plugins/com.liferay.ide.project.core/src/com/liferay/ide/project/core/modules/ServiceWrapperCommand.java","position":62,"original_position":62,"commit_id":"3140947f7936295cc992497240f339999b2484f5","original_commit_id":"3140947f7936295cc992497240f339999b2484f5","user":{"login":"gamerson","id":595221,"avatar_url":"https://avatars.githubusercontent.com/u/595221?v=3","gravatar_id":"","url":"https://api.github.com/users/gamerson","html_url":"https://github.com/gamerson","followers_url":"https://api.github.com/users/gamerson/followers","following_url":"https://api.github.com/users/gamerson/following{/other_user}","gists_url":"https://api.github.com/users/gamerson/gists{/gist_id}","starred_url":"https://api.github.com/users/gamerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamerson/subscriptions","organizations_url":"https://api.github.com/users/gamerson/orgs","repos_url":"https://api.github.com/users/gamerson/repos","events_url":"https://api.github.com/users/gamerson/events{/privacy}","received_events_url":"https://api.github.com/users/gamerson/received_events","type":"User","site_admin":false},"body":"Lets use `contains(\".api-\") then","created_at":"2016-06-20T22:54:17Z","updated_at":"2016-06-20T22:54:17Z","html_url":"https://github.com/gamerson/liferay-ide/pull/1595#discussion_r67781586","pull_request_url":"https://api.github.com/repos/gamerson/liferay-ide/pulls/1595","_links":{"self":{"href":"https://api.github.com/repos/gamerson/liferay-ide/pulls/comments/67781586"},"html":{"href":"https://github.com/gamerson/liferay-ide/pull/1595#discussion_r67781586"},"pull_request":{"href":"https://api.github.com/repos/gamerson/liferay-ide/pulls/1595"}}},"pull_request":{"url":"https://api.github.com/repos/gamerson/liferay-ide/pulls/1595","id":73847347,"html_url":"https://github.com/gamerson/liferay-ide/pull/1595","diff_url":"https://github.com/gamerson/liferay-ide/pull/1595.diff","patch_url":"https://github.com/gamerson/liferay-ide/pull/1595.patch","issue_url":"https://api.github.com/repos/gamerson/liferay-ide/issues/1595","number":1595,"state":"closed","locked":false,"title":"Ide 2720","user":{"login":"lovettli","id":10591143,"avatar_url":"https://avatars.githubusercontent.com/u/10591143?v=3","gravatar_id":"","url":"https://api.github.com/users/lovettli","html_url":"https://github.com/lovettli","followers_url":"https://api.github.com/users/lovettli/followers","following_url":"https://api.github.com/users/lovettli/following{/other_user}","gists_url":"https://api.github.com/users/lovettli/gists{/gist_id}","starred_url":"https://api.github.com/users/lovettli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovettli/subscriptions","organizations_url":"https://api.github.com/users/lovettli/orgs","repos_url":"https://api.github.com/users/lovettli/repos","events_url":"https://api.github.com/users/lovettli/events{/privacy}","received_events_url":"https://api.github.com/users/lovettli/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-15T03:32:26Z","updated_at":"2016-06-20T22:54:17Z","closed_at":"2016-06-15T08:23:10Z","merged_at":"2016-06-15T08:23:10Z","merge_commit_sha":"3140947f7936295cc992497240f339999b2484f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gamerson/liferay-ide/pulls/1595/commits","review_comments_url":"https://api.github.com/repos/gamerson/liferay-ide/pulls/1595/comments","review_comment_url":"https://api.github.com/repos/gamerson/liferay-ide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gamerson/liferay-ide/issues/1595/comments","statuses_url":"https://api.github.com/repos/gamerson/liferay-ide/statuses/3140947f7936295cc992497240f339999b2484f5","head":{"label":"lovettli:IDE-2720","ref":"IDE-2720","sha":"3140947f7936295cc992497240f339999b2484f5","user":{"login":"lovettli","id":10591143,"avatar_url":"https://avatars.githubusercontent.com/u/10591143?v=3","gravatar_id":"","url":"https://api.github.com/users/lovettli","html_url":"https://github.com/lovettli","followers_url":"https://api.github.com/users/lovettli/followers","following_url":"https://api.github.com/users/lovettli/following{/other_user}","gists_url":"https://api.github.com/users/lovettli/gists{/gist_id}","starred_url":"https://api.github.com/users/lovettli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovettli/subscriptions","organizations_url":"https://api.github.com/users/lovettli/orgs","repos_url":"https://api.github.com/users/lovettli/repos","events_url":"https://api.github.com/users/lovettli/events{/privacy}","received_events_url":"https://api.github.com/users/lovettli/received_events","type":"User","site_admin":false},"repo":{"id":33589792,"name":"liferay-ide","full_name":"lovettli/liferay-ide","owner":{"login":"lovettli","id":10591143,"avatar_url":"https://avatars.githubusercontent.com/u/10591143?v=3","gravatar_id":"","url":"https://api.github.com/users/lovettli","html_url":"https://github.com/lovettli","followers_url":"https://api.github.com/users/lovettli/followers","following_url":"https://api.github.com/users/lovettli/following{/other_user}","gists_url":"https://api.github.com/users/lovettli/gists{/gist_id}","starred_url":"https://api.github.com/users/lovettli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovettli/subscriptions","organizations_url":"https://api.github.com/users/lovettli/orgs","repos_url":"https://api.github.com/users/lovettli/repos","events_url":"https://api.github.com/users/lovettli/events{/privacy}","received_events_url":"https://api.github.com/users/lovettli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lovettli/liferay-ide","description":"","fork":true,"url":"https://api.github.com/repos/lovettli/liferay-ide","forks_url":"https://api.github.com/repos/lovettli/liferay-ide/forks","keys_url":"https://api.github.com/repos/lovettli/liferay-ide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lovettli/liferay-ide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lovettli/liferay-ide/teams","hooks_url":"https://api.github.com/repos/lovettli/liferay-ide/hooks","issue_events_url":"https://api.github.com/repos/lovettli/liferay-ide/issues/events{/number}","events_url":"https://api.github.com/repos/lovettli/liferay-ide/events","assignees_url":"https://api.github.com/repos/lovettli/liferay-ide/assignees{/user}","branches_url":"https://api.github.com/repos/lovettli/liferay-ide/branches{/branch}","tags_url":"https://api.github.com/repos/lovettli/liferay-ide/tags","blobs_url":"https://api.github.com/repos/lovettli/liferay-ide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lovettli/liferay-ide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lovettli/liferay-ide/git/refs{/sha}","trees_url":"https://api.github.com/repos/lovettli/liferay-ide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lovettli/liferay-ide/statuses/{sha}","languages_url":"https://api.github.com/repos/lovettli/liferay-ide/languages","stargazers_url":"https://api.github.com/repos/lovettli/liferay-ide/stargazers","contributors_url":"https://api.github.com/repos/lovettli/liferay-ide/contributors","subscribers_url":"https://api.github.com/repos/lovettli/liferay-ide/subscribers","subscription_url":"https://api.github.com/repos/lovettli/liferay-ide/subscription","commits_url":"https://api.github.com/repos/lovettli/liferay-ide/commits{/sha}","git_commits_url":"https://api.github.com/repos/lovettli/liferay-ide/git/commits{/sha}","comments_url":"https://api.github.com/repos/lovettli/liferay-ide/comments{/number}","issue_comment_url":"https://api.github.com/repos/lovettli/liferay-ide/issues/comments{/number}","contents_url":"https://api.github.com/repos/lovettli/liferay-ide/contents/{+path}","compare_url":"https://api.github.com/repos/lovettli/liferay-ide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lovettli/liferay-ide/merges","archive_url":"https://api.github.com/repos/lovettli/liferay-ide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lovettli/liferay-ide/downloads","issues_url":"https://api.github.com/repos/lovettli/liferay-ide/issues{/number}","pulls_url":"https://api.github.com/repos/lovettli/liferay-ide/pulls{/number}","milestones_url":"https://api.github.com/repos/lovettli/liferay-ide/milestones{/number}","notifications_url":"https://api.github.com/repos/lovettli/liferay-ide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lovettli/liferay-ide/labels{/name}","releases_url":"https://api.github.com/repos/lovettli/liferay-ide/releases{/id}","deployments_url":"https://api.github.com/repos/lovettli/liferay-ide/deployments","created_at":"2015-04-08T06:48:32Z","updated_at":"2016-02-05T03:02:08Z","pushed_at":"2016-06-17T02:09:50Z","git_url":"git://github.com/lovettli/liferay-ide.git","ssh_url":"git@github.com:lovettli/liferay-ide.git","clone_url":"https://github.com/lovettli/liferay-ide.git","svn_url":"https://github.com/lovettli/liferay-ide","homepage":"","size":208381,"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":"gamerson:master","ref":"master","sha":"bc5e37520342f65900651ea80b995c08d1726592","user":{"login":"gamerson","id":595221,"avatar_url":"https://avatars.githubusercontent.com/u/595221?v=3","gravatar_id":"","url":"https://api.github.com/users/gamerson","html_url":"https://github.com/gamerson","followers_url":"https://api.github.com/users/gamerson/followers","following_url":"https://api.github.com/users/gamerson/following{/other_user}","gists_url":"https://api.github.com/users/gamerson/gists{/gist_id}","starred_url":"https://api.github.com/users/gamerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamerson/subscriptions","organizations_url":"https://api.github.com/users/gamerson/orgs","repos_url":"https://api.github.com/users/gamerson/repos","events_url":"https://api.github.com/users/gamerson/events{/privacy}","received_events_url":"https://api.github.com/users/gamerson/received_events","type":"User","site_admin":false},"repo":{"id":1926534,"name":"liferay-ide","full_name":"gamerson/liferay-ide","owner":{"login":"gamerson","id":595221,"avatar_url":"https://avatars.githubusercontent.com/u/595221?v=3","gravatar_id":"","url":"https://api.github.com/users/gamerson","html_url":"https://github.com/gamerson","followers_url":"https://api.github.com/users/gamerson/followers","following_url":"https://api.github.com/users/gamerson/following{/other_user}","gists_url":"https://api.github.com/users/gamerson/gists{/gist_id}","starred_url":"https://api.github.com/users/gamerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gamerson/subscriptions","organizations_url":"https://api.github.com/users/gamerson/orgs","repos_url":"https://api.github.com/users/gamerson/repos","events_url":"https://api.github.com/users/gamerson/events{/privacy}","received_events_url":"https://api.github.com/users/gamerson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gamerson/liferay-ide","description":"","fork":true,"url":"https://api.github.com/repos/gamerson/liferay-ide","forks_url":"https://api.github.com/repos/gamerson/liferay-ide/forks","keys_url":"https://api.github.com/repos/gamerson/liferay-ide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gamerson/liferay-ide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gamerson/liferay-ide/teams","hooks_url":"https://api.github.com/repos/gamerson/liferay-ide/hooks","issue_events_url":"https://api.github.com/repos/gamerson/liferay-ide/issues/events{/number}","events_url":"https://api.github.com/repos/gamerson/liferay-ide/events","assignees_url":"https://api.github.com/repos/gamerson/liferay-ide/assignees{/user}","branches_url":"https://api.github.com/repos/gamerson/liferay-ide/branches{/branch}","tags_url":"https://api.github.com/repos/gamerson/liferay-ide/tags","blobs_url":"https://api.github.com/repos/gamerson/liferay-ide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gamerson/liferay-ide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gamerson/liferay-ide/git/refs{/sha}","trees_url":"https://api.github.com/repos/gamerson/liferay-ide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gamerson/liferay-ide/statuses/{sha}","languages_url":"https://api.github.com/repos/gamerson/liferay-ide/languages","stargazers_url":"https://api.github.com/repos/gamerson/liferay-ide/stargazers","contributors_url":"https://api.github.com/repos/gamerson/liferay-ide/contributors","subscribers_url":"https://api.github.com/repos/gamerson/liferay-ide/subscribers","subscription_url":"https://api.github.com/repos/gamerson/liferay-ide/subscription","commits_url":"https://api.github.com/repos/gamerson/liferay-ide/commits{/sha}","git_commits_url":"https://api.github.com/repos/gamerson/liferay-ide/git/commits{/sha}","comments_url":"https://api.github.com/repos/gamerson/liferay-ide/comments{/number}","issue_comment_url":"https://api.github.com/repos/gamerson/liferay-ide/issues/comments{/number}","contents_url":"https://api.github.com/repos/gamerson/liferay-ide/contents/{+path}","compare_url":"https://api.github.com/repos/gamerson/liferay-ide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gamerson/liferay-ide/merges","archive_url":"https://api.github.com/repos/gamerson/liferay-ide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gamerson/liferay-ide/downloads","issues_url":"https://api.github.com/repos/gamerson/liferay-ide/issues{/number}","pulls_url":"https://api.github.com/repos/gamerson/liferay-ide/pulls{/number}","milestones_url":"https://api.github.com/repos/gamerson/liferay-ide/milestones{/number}","notifications_url":"https://api.github.com/repos/gamerson/liferay-ide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gamerson/liferay-ide/labels{/name}","releases_url":"https://api.github.com/repos/gamerson/liferay-ide/releases{/id}","deployments_url":"https://api.github.com/repos/gamerson/liferay-ide/deployments","created_at":"2011-06-20T23:49:28Z","updated_at":"2016-02-17T00:42:10Z","pushed_at":"2016-06-20T14:16:17Z","git_url":"git://github.com/gamerson/liferay-ide.git","ssh_url":"git@github.com:gamerson/liferay-ide.git","clone_url":"https://github.com/gamerson/liferay-ide.git","svn_url":"https://github.com/gamerson/liferay-ide","homepage":"","size":288037,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":5,"forks":6,"open_issues":5,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gamerson/liferay-ide/pulls/1595"},"html":{"href":"https://github.com/gamerson/liferay-ide/pull/1595"},"issue":{"href":"https://api.github.com/repos/gamerson/liferay-ide/issues/1595"},"comments":{"href":"https://api.github.com/repos/gamerson/liferay-ide/issues/1595/comments"},"review_comments":{"href":"https://api.github.com/repos/gamerson/liferay-ide/pulls/1595/comments"},"review_comment":{"href":"https://api.github.com/repos/gamerson/liferay-ide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gamerson/liferay-ide/pulls/1595/commits"},"statuses":{"href":"https://api.github.com/repos/gamerson/liferay-ide/statuses/3140947f7936295cc992497240f339999b2484f5"}}}}
{"actor":{"display_login":"gamerson"}}