This is an automated email from the ASF dual-hosted git repository.
yichi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 3fe0867cd67 Allow longer Class-Path entries (#23269)
3fe0867cd67 is described below
commit 3fe0867cd678086c55376c6080e06bdfc99e48a7
Author: Shane Hansen <[email protected]>
AuthorDate: Wed Sep 21 13:12:47 2022 -0700
Allow longer Class-Path entries (#23269)
jar Class-Path entries have a max line length which, when
exceeded, will cause java to fail to start. Use newline plus
extra space to support large numbers of jar files.
---
sdks/python/apache_beam/utils/subprocess_server.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sdks/python/apache_beam/utils/subprocess_server.py
b/sdks/python/apache_beam/utils/subprocess_server.py
index 769a5f4fe05..f11132ca164 100644
--- a/sdks/python/apache_beam/utils/subprocess_server.py
+++ b/sdks/python/apache_beam/utils/subprocess_server.py
@@ -325,7 +325,7 @@ class JavaJarServer(SubprocessServer):
manifest.write(b'Manifest-Version: 1.0\n')
manifest.write(main_class)
manifest.write(
- b'Class-Path: ' + ' '.join(classpath).encode('ascii') + b'\n')
+ b'Class-Path: ' + '\n '.join(classpath).encode('ascii') + b'\n')
os.rename(composite_jar + '.tmp', composite_jar)
return composite_jar