6916986: handle spaces in langtools launcher path
Reviewed-by: darcy, jjg
Contributed-by: mali@csail.mit.edu, mernst@cs.washington.edu
--- a/langtools/src/share/bin/launcher.sh-template Thu Jan 14 17:18:30 2010 -0800
+++ b/langtools/src/share/bin/launcher.sh-template Thu Jan 14 17:23:53 2010 -0800
@@ -38,7 +38,7 @@
# dependent jar files for additional dependencies.
if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then
- cp=`unzip -c $mylib/#PROGRAM#.jar META-INF/MANIFEST.MF |
+ cp=`unzip -c "$mylib/#PROGRAM#.jar" META-INF/MANIFEST.MF |
grep "Class-Path:" |
sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'`
bcp="$mylib/#PROGRAM#.jar":$cp