{"action":"created","comment":{"url":"https://api.github.com/repos/apache/kafka/pulls/comments/51157684","id":51157684,"diff_hunk":"@@ -30,66 +30,44 @@ if [ -z \"$SCALA_BINARY_VERSION\" ]; then\n \tSCALA_BINARY_VERSION=2.10\n fi\n \n-# run ./gradlew copyDependantLibs to get all dependant jars in a local dir\n-shopt -s nullglob\n-for dir in $base_dir/core/build/dependant-libs-${SCALA_VERSION}*;\n-do\n-  CLASSPATH=$CLASSPATH:$dir/*\n-done\n-\n-for file in $base_dir/examples/build/libs//kafka-examples*.jar;\n-do\n-  CLASSPATH=$CLASSPATH:$file\n-done\n-\n-for file in $base_dir/contrib/hadoop-consumer/build/libs//kafka-hadoop-consumer*.jar;\n-do\n-  CLASSPATH=$CLASSPATH:$file\n-done\n-\n-for file in $base_dir/contrib/hadoop-producer/build/libs//kafka-hadoop-producer*.jar;\n-do\n-  CLASSPATH=$CLASSPATH:$file\n-done\n-\n-for file in $base_dir/clients/build/libs/kafka-clients*.jar;\n-do\n-  CLASSPATH=$CLASSPATH:$file\n-done\n-\n-for file in $base_dir/streams/build/libs/kafka-streams*.jar;\n-do\n-  CLASSPATH=$CLASSPATH:$file\n-done\n+if [ -z \"$PROJECT_NAMES\" ]; then\n+  PROJECT_NAMES=\"core tools clients connect stream log4j-appender\"\n+fi\n+PROJECT_NAMES=($PROJECT_NAMES)\n+JARPATH=\"\"\n+for project in ${PROJECT_NAMES[@]};\n+  do\n+    case $project in\n+      \"core\")\n+      JARPATH=$JARPATH\"$base_dir/core/build/dependant-libs-${SCALA_VERSION}/*.jar $base_dir/core/build/libs/kafka_${SCALA_BINARY_VERSION}*.jar \"\n+      ;;\n+      \"tools\")\n+      JARPATH=$JARPATH\"$base_dir/tools/build/libs/kafka-tools*.jar $base_dir/tools/build/dependant-libs-${SCALA_VERSION}/*.jar \"","path":"bin/kafka-run-class.sh","position":47,"original_position":47,"commit_id":"51fcc408302ebb0c4adaf2a4d0e6647cc469c6a0","original_commit_id":"6e6f2c20c5730253d8e818c2dc1e5e741a05ac08","user":{"login":"ijuma","id":24747,"avatar_url":"https://avatars.githubusercontent.com/u/24747?v=3","gravatar_id":"","url":"https://api.github.com/users/ijuma","html_url":"https://github.com/ijuma","followers_url":"https://api.github.com/users/ijuma/followers","following_url":"https://api.github.com/users/ijuma/following{/other_user}","gists_url":"https://api.github.com/users/ijuma/gists{/gist_id}","starred_url":"https://api.github.com/users/ijuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ijuma/subscriptions","organizations_url":"https://api.github.com/users/ijuma/orgs","repos_url":"https://api.github.com/users/ijuma/repos","events_url":"https://api.github.com/users/ijuma/events{/privacy}","received_events_url":"https://api.github.com/users/ijuma/received_events","type":"User","site_admin":false},"body":"The projects that don't use it, do they have dependencies?","created_at":"2016-01-28T17:44:56Z","updated_at":"2016-01-28T17:44:56Z","html_url":"https://github.com/apache/kafka/pull/693#discussion_r51157684","pull_request_url":"https://api.github.com/repos/apache/kafka/pulls/693","_links":{"self":{"href":"https://api.github.com/repos/apache/kafka/pulls/comments/51157684"},"html":{"href":"https://github.com/apache/kafka/pull/693#discussion_r51157684"},"pull_request":{"href":"https://api.github.com/repos/apache/kafka/pulls/693"}}},"pull_request":{"url":"https://api.github.com/repos/apache/kafka/pulls/693","id":54072465,"html_url":"https://github.com/apache/kafka/pull/693","diff_url":"https://github.com/apache/kafka/pull/693.diff","patch_url":"https://github.com/apache/kafka/pull/693.patch","issue_url":"https://api.github.com/repos/apache/kafka/issues/693","number":693,"state":"open","locked":false,"title":"KAFKA-2875:  remove slf4j multi binding warnings when running form source distribution","user":{"login":"ZoneMayor","id":4058918,"avatar_url":"https://avatars.githubusercontent.com/u/4058918?v=3","gravatar_id":"","url":"https://api.github.com/users/ZoneMayor","html_url":"https://github.com/ZoneMayor","followers_url":"https://api.github.com/users/ZoneMayor/followers","following_url":"https://api.github.com/users/ZoneMayor/following{/other_user}","gists_url":"https://api.github.com/users/ZoneMayor/gists{/gist_id}","starred_url":"https://api.github.com/users/ZoneMayor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZoneMayor/subscriptions","organizations_url":"https://api.github.com/users/ZoneMayor/orgs","repos_url":"https://api.github.com/users/ZoneMayor/repos","events_url":"https://api.github.com/users/ZoneMayor/events{/privacy}","received_events_url":"https://api.github.com/users/ZoneMayor/received_events","type":"User","site_admin":false},"body":"hi @ijuma I reopened this pr again (sorry for my inexperience using github);\r\nI think I did much deduplication for the script;\r\nPlease have a look when you have time  : - )","created_at":"2015-12-18T07:28:13Z","updated_at":"2016-01-28T17:44:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30f98d4b2a6ff9102f6e5d7ea8da7989a4599dac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/kafka/pulls/693/commits","review_comments_url":"https://api.github.com/repos/apache/kafka/pulls/693/comments","review_comment_url":"https://api.github.com/repos/apache/kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/kafka/issues/693/comments","statuses_url":"https://api.github.com/repos/apache/kafka/statuses/51fcc408302ebb0c4adaf2a4d0e6647cc469c6a0","head":{"label":"ZoneMayor:trunk-KAFKA-2875","ref":"trunk-KAFKA-2875","sha":"51fcc408302ebb0c4adaf2a4d0e6647cc469c6a0","user":{"login":"ZoneMayor","id":4058918,"avatar_url":"https://avatars.githubusercontent.com/u/4058918?v=3","gravatar_id":"","url":"https://api.github.com/users/ZoneMayor","html_url":"https://github.com/ZoneMayor","followers_url":"https://api.github.com/users/ZoneMayor/followers","following_url":"https://api.github.com/users/ZoneMayor/following{/other_user}","gists_url":"https://api.github.com/users/ZoneMayor/gists{/gist_id}","starred_url":"https://api.github.com/users/ZoneMayor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZoneMayor/subscriptions","organizations_url":"https://api.github.com/users/ZoneMayor/orgs","repos_url":"https://api.github.com/users/ZoneMayor/repos","events_url":"https://api.github.com/users/ZoneMayor/events{/privacy}","received_events_url":"https://api.github.com/users/ZoneMayor/received_events","type":"User","site_admin":false},"repo":{"id":46220223,"name":"kafka","full_name":"ZoneMayor/kafka","owner":{"login":"ZoneMayor","id":4058918,"avatar_url":"https://avatars.githubusercontent.com/u/4058918?v=3","gravatar_id":"","url":"https://api.github.com/users/ZoneMayor","html_url":"https://github.com/ZoneMayor","followers_url":"https://api.github.com/users/ZoneMayor/followers","following_url":"https://api.github.com/users/ZoneMayor/following{/other_user}","gists_url":"https://api.github.com/users/ZoneMayor/gists{/gist_id}","starred_url":"https://api.github.com/users/ZoneMayor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZoneMayor/subscriptions","organizations_url":"https://api.github.com/users/ZoneMayor/orgs","repos_url":"https://api.github.com/users/ZoneMayor/repos","events_url":"https://api.github.com/users/ZoneMayor/events{/privacy}","received_events_url":"https://api.github.com/users/ZoneMayor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ZoneMayor/kafka","description":"Mirror of Apache Kafka","fork":true,"url":"https://api.github.com/repos/ZoneMayor/kafka","forks_url":"https://api.github.com/repos/ZoneMayor/kafka/forks","keys_url":"https://api.github.com/repos/ZoneMayor/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ZoneMayor/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ZoneMayor/kafka/teams","hooks_url":"https://api.github.com/repos/ZoneMayor/kafka/hooks","issue_events_url":"https://api.github.com/repos/ZoneMayor/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/ZoneMayor/kafka/events","assignees_url":"https://api.github.com/repos/ZoneMayor/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/ZoneMayor/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/ZoneMayor/kafka/tags","blobs_url":"https://api.github.com/repos/ZoneMayor/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ZoneMayor/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ZoneMayor/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/ZoneMayor/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ZoneMayor/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/ZoneMayor/kafka/languages","stargazers_url":"https://api.github.com/repos/ZoneMayor/kafka/stargazers","contributors_url":"https://api.github.com/repos/ZoneMayor/kafka/contributors","subscribers_url":"https://api.github.com/repos/ZoneMayor/kafka/subscribers","subscription_url":"https://api.github.com/repos/ZoneMayor/kafka/subscription","commits_url":"https://api.github.com/repos/ZoneMayor/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/ZoneMayor/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/ZoneMayor/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/ZoneMayor/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/ZoneMayor/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/ZoneMayor/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ZoneMayor/kafka/merges","archive_url":"https://api.github.com/repos/ZoneMayor/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ZoneMayor/kafka/downloads","issues_url":"https://api.github.com/repos/ZoneMayor/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/ZoneMayor/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/ZoneMayor/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/ZoneMayor/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ZoneMayor/kafka/labels{/name}","releases_url":"https://api.github.com/repos/ZoneMayor/kafka/releases{/id}","deployments_url":"https://api.github.com/repos/ZoneMayor/kafka/deployments","created_at":"2015-11-15T14:12:50Z","updated_at":"2015-12-18T07:21:30Z","pushed_at":"2016-01-28T07:43:59Z","git_url":"git://github.com/ZoneMayor/kafka.git","ssh_url":"git@github.com:ZoneMayor/kafka.git","clone_url":"https://github.com/ZoneMayor/kafka.git","svn_url":"https://github.com/ZoneMayor/kafka","homepage":null,"size":26857,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"0.7"}},"base":{"label":"apache:trunk","ref":"trunk","sha":"a40a2a260a8ddde8651dd8278bf70da7c67b2c1d","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":2211243,"name":"kafka","full_name":"apache/kafka","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/kafka","description":"Mirror of Apache Kafka","fork":false,"url":"https://api.github.com/repos/apache/kafka","forks_url":"https://api.github.com/repos/apache/kafka/forks","keys_url":"https://api.github.com/repos/apache/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/kafka/teams","hooks_url":"https://api.github.com/repos/apache/kafka/hooks","issue_events_url":"https://api.github.com/repos/apache/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/apache/kafka/events","assignees_url":"https://api.github.com/repos/apache/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/apache/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/apache/kafka/tags","blobs_url":"https://api.github.com/repos/apache/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/kafka/languages","stargazers_url":"https://api.github.com/repos/apache/kafka/stargazers","contributors_url":"https://api.github.com/repos/apache/kafka/contributors","subscribers_url":"https://api.github.com/repos/apache/kafka/subscribers","subscription_url":"https://api.github.com/repos/apache/kafka/subscription","commits_url":"https://api.github.com/repos/apache/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/apache/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/kafka/merges","archive_url":"https://api.github.com/repos/apache/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/kafka/downloads","issues_url":"https://api.github.com/repos/apache/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/apache/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/kafka/labels{/name}","releases_url":"https://api.github.com/repos/apache/kafka/releases{/id}","deployments_url":"https://api.github.com/repos/apache/kafka/deployments","created_at":"2011-08-15T18:06:16Z","updated_at":"2016-01-28T09:42:18Z","pushed_at":"2016-01-28T17:41:42Z","git_url":"git://github.com/apache/kafka.git","ssh_url":"git@github.com:apache/kafka.git","clone_url":"https://github.com/apache/kafka.git","svn_url":"https://github.com/apache/kafka","homepage":null,"size":34279,"stargazers_count":2564,"watchers_count":2564,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1530,"mirror_url":"git://git.apache.org/kafka.git","open_issues_count":131,"forks":1530,"open_issues":131,"watchers":2564,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/kafka/pulls/693"},"html":{"href":"https://github.com/apache/kafka/pull/693"},"issue":{"href":"https://api.github.com/repos/apache/kafka/issues/693"},"comments":{"href":"https://api.github.com/repos/apache/kafka/issues/693/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/kafka/pulls/693/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/kafka/pulls/693/commits"},"statuses":{"href":"https://api.github.com/repos/apache/kafka/statuses/51fcc408302ebb0c4adaf2a4d0e6647cc469c6a0"}}}}