kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ewe...@apache.org
Subject kafka git commit: MINOR: Sync up 'kafka-run-class.bat' with 'kafka-run-class.sh'
Date Thu, 29 Dec 2016 17:01:48 GMT
Repository: kafka
Updated Branches:
  refs/heads/trunk dc550259e -> e79954637


MINOR: Sync up 'kafka-run-class.bat' with 'kafka-run-class.sh'

Some of the recent changes to `kafka-run-class.sh` have not been applied to `kafka-run-class.bat`.
These recent changes include setting proper streams or connect classpaths. So any streams
or connect use case that leverages `kafka-run-class.bat` would fail with an error like
```
Error: Could not find or load main class org.apache.kafka.streams.???
```

Author: Vahid Hashemian <vahidhashemian@us.ibm.com>

Reviewers: Ewen Cheslack-Postava <ewen@confluent.io>

Closes #2238 from vahidhashemian/minor/sync_up_kafka-run-class.bat


Project: http://git-wip-us.apache.org/repos/asf/kafka/repo
Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/e7995463
Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/e7995463
Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/e7995463

Branch: refs/heads/trunk
Commit: e79954637782c104171bad2a1227b0d7a12e2efa
Parents: dc55025
Author: Vahid Hashemian <vahidhashemian@us.ibm.com>
Authored: Thu Dec 29 12:03:24 2016 -0500
Committer: Ewen Cheslack-Postava <me@ewencp.org>
Committed: Thu Dec 29 12:03:24 2016 -0500

----------------------------------------------------------------------
 bin/windows/kafka-run-class.bat | 37 +++++++++++++++++++++++++++++++-----
 1 file changed, 32 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kafka/blob/e7995463/bin/windows/kafka-run-class.bat
----------------------------------------------------------------------
diff --git a/bin/windows/kafka-run-class.bat b/bin/windows/kafka-run-class.bat
old mode 100644
new mode 100755
index 9e4c865..4f85301
--- a/bin/windows/kafka-run-class.bat
+++ b/bin/windows/kafka-run-class.bat
@@ -47,21 +47,48 @@ for %%i in (%BASE_DIR%\core\build\dependant-libs-%SCALA_VERSION%\*.jar)
do (
 	call :concat %%i
 )
 
-rem Classpath addition for kafka-perf dependencies
-for %%i in (%BASE_DIR%\perf\build\dependant-libs-%SCALA_VERSION%\*.jar) do (
+rem Classpath addition for kafka-examples
+for %%i in (%BASE_DIR%\examples\build\libs\kafka-examples*.jar) do (
 	call :concat %%i
 )
 
 rem Classpath addition for kafka-clients
-for %%i in (%BASE_DIR%\clients\build\libs\kafka-clients-*.jar) do (
+for %%i in (%BASE_DIR%\clients\build\libs\kafka-clients*.jar) do (
 	call :concat %%i
 )
 
-rem Classpath addition for kafka-examples
-for %%i in (%BASE_DIR%\examples\build\libs\kafka-examples-*.jar) do (
+rem Classpath addition for kafka-streams
+for %%i in (%BASE_DIR%\streams\build\libs\kafka-streams*.jar) do (
+	call :concat %%i
+)
+
+rem Classpath addition for kafka-streams-examples
+for %%i in (%BASE_DIR%\streams\examples\build\libs\kafka-streams-examples*.jar) do (
+	call :concat %%i
+)
+
+for %%i in (%BASE_DIR%\streams\build\dependant-libs-%SCALA_VERSION%\rocksdb*.jar) do (
+	call :concat %%i
+)
+
+rem Classpath addition for kafka tools
+for %%i in (%BASE_DIR%\tools\build\libs\kafka-tools*.jar) do (
+	call :concat %%i
+)
+
+for %%i in (%BASE_DIR%\tools\build\dependant-libs-%SCALA_VERSION%\*.jar) do (
 	call :concat %%i
 )
 
+for %%p in (api runtime file json tools) do (
+	for %%i in (%BASE_DIR%\connect\%%p\build\libs\connect-%%p*.jar) do (
+		call :concat %%i
+	)
+	if exist "%BASE_DIR%\connect\%%p\build\dependant-libs\*" (
+		call :concat %BASE_DIR%\connect\%%p\build\dependant-libs\*
+	)
+)
+
 rem Classpath addition for release
 call :concat %BASE_DIR%\libs\*
 


Mime
View raw message