changeset 82:5ad939c11037

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 937c49732f33
children 6010c91842f0
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	Wed Apr 14 14:35:40 2010 -0700
+++ 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