changeset 470:2d0f4e7b44b2

6916986: handle spaces in langtools launcher path Reviewed-by: darcy, jjg Contributed-by: mali@csail.mit.edu, mernst@cs.washington.edu
author jjg
date Thu, 14 Jan 2010 17:23:53 -0800
parents b96ad32c004a
children a84062774f0e
files src/share/bin/launcher.sh-template
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/bin/launcher.sh-template	Thu Jan 14 17:18:30 2010 -0800
+++ b/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