{"action":"created","comment":{"url":"https://api.github.com/repos/fusesource/fuseide/pulls/comments/61061051","id":61061051,"diff_hunk":"@@ -0,0 +1,128 @@\n+package org.fusesource.ide.server.karaf.core.server.subsystems.publish;\n+\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.util.jar.Attributes;\n+import java.util.jar.JarFile;\n+import java.util.jar.Manifest;\n+\n+import org.eclipse.core.resources.IFile;\n+import org.eclipse.core.resources.IProject;\n+import org.eclipse.core.resources.IResource;\n+import org.eclipse.core.resources.IResourceVisitor;\n+import org.eclipse.core.runtime.CoreException;\n+import org.eclipse.core.runtime.IPath;\n+import org.eclipse.wst.server.core.IModule;\n+import org.fusesource.ide.server.karaf.core.util.KarafUtils;\n+\n+public class ModuleBundleVersionUtility {\n+\tpublic static class BundleDetails {\n+\t\tprivate String symbolicName, version;\n+\n+\t\tpublic BundleDetails(String symbolicName, String version) {\n+\t\t\tthis.symbolicName = symbolicName;\n+\t\t\tthis.version = version;\n+\t\t}\n+\t\tpublic String getSymbolicName() {\n+\t\t\treturn symbolicName;\n+\t\t}\n+\t\tpublic String getVersion() {\n+\t\t\treturn version;\n+\t\t}\n+\t}\n+\t\n+\tpublic BundleDetails getBundleDetails(IModule[] module, IPath srcFile) {\n+\t\tString moduleTypeId = module[0].getModuleType().getId(); ","path":"servers/plugins/org.fusesource.ide.server.karaf.core/src/org/fusesource/ide/server/karaf/core/server/subsystems/publish/ModuleBundleVersionUtility.java","position":46,"original_position":35,"commit_id":"2ece7d7d11fe70d4e77c1f5850bce23ab142e114","original_commit_id":"15370d20a9ea667ffbf90e0b44f7afba013e30f4","user":{"login":"lhein","id":435853,"avatar_url":"https://avatars.githubusercontent.com/u/435853?v=3","gravatar_id":"","url":"https://api.github.com/users/lhein","html_url":"https://github.com/lhein","followers_url":"https://api.github.com/users/lhein/followers","following_url":"https://api.github.com/users/lhein/following{/other_user}","gists_url":"https://api.github.com/users/lhein/gists{/gist_id}","starred_url":"https://api.github.com/users/lhein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhein/subscriptions","organizations_url":"https://api.github.com/users/lhein/orgs","repos_url":"https://api.github.com/users/lhein/repos","events_url":"https://api.github.com/users/lhein/events{/privacy}","received_events_url":"https://api.github.com/users/lhein/received_events","type":"User","site_admin":false},"body":"pretty sure","created_at":"2016-04-26T10:11:07Z","updated_at":"2016-04-26T10:11:07Z","html_url":"https://github.com/fusesource/fuseide/pull/497#discussion_r61061051","pull_request_url":"https://api.github.com/repos/fusesource/fuseide/pulls/497","_links":{"self":{"href":"https://api.github.com/repos/fusesource/fuseide/pulls/comments/61061051"},"html":{"href":"https://github.com/fusesource/fuseide/pull/497#discussion_r61061051"},"pull_request":{"href":"https://api.github.com/repos/fusesource/fuseide/pulls/497"}}},"pull_request":{"url":"https://api.github.com/repos/fusesource/fuseide/pulls/497","id":67712198,"html_url":"https://github.com/fusesource/fuseide/pull/497","diff_url":"https://github.com/fusesource/fuseide/pull/497.diff","patch_url":"https://github.com/fusesource/fuseide/pull/497.patch","issue_url":"https://api.github.com/repos/fusesource/fuseide/issues/497","number":497,"state":"open","locked":false,"title":"basic new camel project wizard (templates still missing) - FUSETOOLS-1718","user":{"login":"lhein","id":435853,"avatar_url":"https://avatars.githubusercontent.com/u/435853?v=3","gravatar_id":"","url":"https://api.github.com/users/lhein","html_url":"https://github.com/lhein","followers_url":"https://api.github.com/users/lhein/followers","following_url":"https://api.github.com/users/lhein/following{/other_user}","gists_url":"https://api.github.com/users/lhein/gists{/gist_id}","starred_url":"https://api.github.com/users/lhein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhein/subscriptions","organizations_url":"https://api.github.com/users/lhein/orgs","repos_url":"https://api.github.com/users/lhein/repos","events_url":"https://api.github.com/users/lhein/events{/privacy}","received_events_url":"https://api.github.com/users/lhein/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-25T12:37:35Z","updated_at":"2016-04-26T10:11:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffdb254ad47f2e11e2b765ca390886b3f0838f46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fusesource/fuseide/pulls/497/commits","review_comments_url":"https://api.github.com/repos/fusesource/fuseide/pulls/497/comments","review_comment_url":"https://api.github.com/repos/fusesource/fuseide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fusesource/fuseide/issues/497/comments","statuses_url":"https://api.github.com/repos/fusesource/fuseide/statuses/2ece7d7d11fe70d4e77c1f5850bce23ab142e114","head":{"label":"lhein:FUSETOOLS-1718","ref":"FUSETOOLS-1718","sha":"2ece7d7d11fe70d4e77c1f5850bce23ab142e114","user":{"login":"lhein","id":435853,"avatar_url":"https://avatars.githubusercontent.com/u/435853?v=3","gravatar_id":"","url":"https://api.github.com/users/lhein","html_url":"https://github.com/lhein","followers_url":"https://api.github.com/users/lhein/followers","following_url":"https://api.github.com/users/lhein/following{/other_user}","gists_url":"https://api.github.com/users/lhein/gists{/gist_id}","starred_url":"https://api.github.com/users/lhein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhein/subscriptions","organizations_url":"https://api.github.com/users/lhein/orgs","repos_url":"https://api.github.com/users/lhein/repos","events_url":"https://api.github.com/users/lhein/events{/privacy}","received_events_url":"https://api.github.com/users/lhein/received_events","type":"User","site_admin":false},"repo":{"id":16341811,"name":"fuseide","full_name":"lhein/fuseide","owner":{"login":"lhein","id":435853,"avatar_url":"https://avatars.githubusercontent.com/u/435853?v=3","gravatar_id":"","url":"https://api.github.com/users/lhein","html_url":"https://github.com/lhein","followers_url":"https://api.github.com/users/lhein/followers","following_url":"https://api.github.com/users/lhein/following{/other_user}","gists_url":"https://api.github.com/users/lhein/gists{/gist_id}","starred_url":"https://api.github.com/users/lhein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhein/subscriptions","organizations_url":"https://api.github.com/users/lhein/orgs","repos_url":"https://api.github.com/users/lhein/repos","events_url":"https://api.github.com/users/lhein/events{/privacy}","received_events_url":"https://api.github.com/users/lhein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lhein/fuseide","description":"Fuse IDE ","fork":true,"url":"https://api.github.com/repos/lhein/fuseide","forks_url":"https://api.github.com/repos/lhein/fuseide/forks","keys_url":"https://api.github.com/repos/lhein/fuseide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lhein/fuseide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lhein/fuseide/teams","hooks_url":"https://api.github.com/repos/lhein/fuseide/hooks","issue_events_url":"https://api.github.com/repos/lhein/fuseide/issues/events{/number}","events_url":"https://api.github.com/repos/lhein/fuseide/events","assignees_url":"https://api.github.com/repos/lhein/fuseide/assignees{/user}","branches_url":"https://api.github.com/repos/lhein/fuseide/branches{/branch}","tags_url":"https://api.github.com/repos/lhein/fuseide/tags","blobs_url":"https://api.github.com/repos/lhein/fuseide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lhein/fuseide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lhein/fuseide/git/refs{/sha}","trees_url":"https://api.github.com/repos/lhein/fuseide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lhein/fuseide/statuses/{sha}","languages_url":"https://api.github.com/repos/lhein/fuseide/languages","stargazers_url":"https://api.github.com/repos/lhein/fuseide/stargazers","contributors_url":"https://api.github.com/repos/lhein/fuseide/contributors","subscribers_url":"https://api.github.com/repos/lhein/fuseide/subscribers","subscription_url":"https://api.github.com/repos/lhein/fuseide/subscription","commits_url":"https://api.github.com/repos/lhein/fuseide/commits{/sha}","git_commits_url":"https://api.github.com/repos/lhein/fuseide/git/commits{/sha}","comments_url":"https://api.github.com/repos/lhein/fuseide/comments{/number}","issue_comment_url":"https://api.github.com/repos/lhein/fuseide/issues/comments{/number}","contents_url":"https://api.github.com/repos/lhein/fuseide/contents/{+path}","compare_url":"https://api.github.com/repos/lhein/fuseide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lhein/fuseide/merges","archive_url":"https://api.github.com/repos/lhein/fuseide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lhein/fuseide/downloads","issues_url":"https://api.github.com/repos/lhein/fuseide/issues{/number}","pulls_url":"https://api.github.com/repos/lhein/fuseide/pulls{/number}","milestones_url":"https://api.github.com/repos/lhein/fuseide/milestones{/number}","notifications_url":"https://api.github.com/repos/lhein/fuseide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lhein/fuseide/labels{/name}","releases_url":"https://api.github.com/repos/lhein/fuseide/releases{/id}","deployments_url":"https://api.github.com/repos/lhein/fuseide/deployments","created_at":"2014-01-29T10:39:17Z","updated_at":"2015-06-10T09:04:03Z","pushed_at":"2016-04-26T10:07:36Z","git_url":"git://github.com/lhein/fuseide.git","ssh_url":"git@github.com:lhein/fuseide.git","clone_url":"https://github.com/lhein/fuseide.git","svn_url":"https://github.com/lhein/fuseide","homepage":null,"size":147942,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"fusesource:master","ref":"master","sha":"da8aaa9b318daf03e35251d41140280a4efafb03","user":{"login":"fusesource","id":309484,"avatar_url":"https://avatars.githubusercontent.com/u/309484?v=3","gravatar_id":"","url":"https://api.github.com/users/fusesource","html_url":"https://github.com/fusesource","followers_url":"https://api.github.com/users/fusesource/followers","following_url":"https://api.github.com/users/fusesource/following{/other_user}","gists_url":"https://api.github.com/users/fusesource/gists{/gist_id}","starred_url":"https://api.github.com/users/fusesource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusesource/subscriptions","organizations_url":"https://api.github.com/users/fusesource/orgs","repos_url":"https://api.github.com/users/fusesource/repos","events_url":"https://api.github.com/users/fusesource/events{/privacy}","received_events_url":"https://api.github.com/users/fusesource/received_events","type":"Organization","site_admin":false},"repo":{"id":6250543,"name":"fuseide","full_name":"fusesource/fuseide","owner":{"login":"fusesource","id":309484,"avatar_url":"https://avatars.githubusercontent.com/u/309484?v=3","gravatar_id":"","url":"https://api.github.com/users/fusesource","html_url":"https://github.com/fusesource","followers_url":"https://api.github.com/users/fusesource/followers","following_url":"https://api.github.com/users/fusesource/following{/other_user}","gists_url":"https://api.github.com/users/fusesource/gists{/gist_id}","starred_url":"https://api.github.com/users/fusesource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusesource/subscriptions","organizations_url":"https://api.github.com/users/fusesource/orgs","repos_url":"https://api.github.com/users/fusesource/repos","events_url":"https://api.github.com/users/fusesource/events{/privacy}","received_events_url":"https://api.github.com/users/fusesource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusesource/fuseide","description":"JBoss Fuse Tooling for Apache Camel","fork":false,"url":"https://api.github.com/repos/fusesource/fuseide","forks_url":"https://api.github.com/repos/fusesource/fuseide/forks","keys_url":"https://api.github.com/repos/fusesource/fuseide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusesource/fuseide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusesource/fuseide/teams","hooks_url":"https://api.github.com/repos/fusesource/fuseide/hooks","issue_events_url":"https://api.github.com/repos/fusesource/fuseide/issues/events{/number}","events_url":"https://api.github.com/repos/fusesource/fuseide/events","assignees_url":"https://api.github.com/repos/fusesource/fuseide/assignees{/user}","branches_url":"https://api.github.com/repos/fusesource/fuseide/branches{/branch}","tags_url":"https://api.github.com/repos/fusesource/fuseide/tags","blobs_url":"https://api.github.com/repos/fusesource/fuseide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusesource/fuseide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusesource/fuseide/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusesource/fuseide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusesource/fuseide/statuses/{sha}","languages_url":"https://api.github.com/repos/fusesource/fuseide/languages","stargazers_url":"https://api.github.com/repos/fusesource/fuseide/stargazers","contributors_url":"https://api.github.com/repos/fusesource/fuseide/contributors","subscribers_url":"https://api.github.com/repos/fusesource/fuseide/subscribers","subscription_url":"https://api.github.com/repos/fusesource/fuseide/subscription","commits_url":"https://api.github.com/repos/fusesource/fuseide/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusesource/fuseide/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusesource/fuseide/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusesource/fuseide/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusesource/fuseide/contents/{+path}","compare_url":"https://api.github.com/repos/fusesource/fuseide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusesource/fuseide/merges","archive_url":"https://api.github.com/repos/fusesource/fuseide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusesource/fuseide/downloads","issues_url":"https://api.github.com/repos/fusesource/fuseide/issues{/number}","pulls_url":"https://api.github.com/repos/fusesource/fuseide/pulls{/number}","milestones_url":"https://api.github.com/repos/fusesource/fuseide/milestones{/number}","notifications_url":"https://api.github.com/repos/fusesource/fuseide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusesource/fuseide/labels{/name}","releases_url":"https://api.github.com/repos/fusesource/fuseide/releases{/id}","deployments_url":"https://api.github.com/repos/fusesource/fuseide/deployments","created_at":"2012-10-16T19:45:49Z","updated_at":"2016-03-10T09:53:40Z","pushed_at":"2016-04-26T10:07:36Z","git_url":"git://github.com/fusesource/fuseide.git","ssh_url":"git@github.com:fusesource/fuseide.git","clone_url":"https://github.com/fusesource/fuseide.git","svn_url":"https://github.com/fusesource/fuseide","homepage":"http://tools.jboss.org/features/apachecamel.html","size":145063,"stargazers_count":50,"watchers_count":50,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":71,"mirror_url":null,"open_issues_count":4,"forks":71,"open_issues":4,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fusesource/fuseide/pulls/497"},"html":{"href":"https://github.com/fusesource/fuseide/pull/497"},"issue":{"href":"https://api.github.com/repos/fusesource/fuseide/issues/497"},"comments":{"href":"https://api.github.com/repos/fusesource/fuseide/issues/497/comments"},"review_comments":{"href":"https://api.github.com/repos/fusesource/fuseide/pulls/497/comments"},"review_comment":{"href":"https://api.github.com/repos/fusesource/fuseide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fusesource/fuseide/pulls/497/commits"},"statuses":{"href":"https://api.github.com/repos/fusesource/fuseide/statuses/2ece7d7d11fe70d4e77c1f5850bce23ab142e114"}}}}