提交 a914b95a 编写于 作者: J jjg

6916986: handle spaces in langtools launcher path

Reviewed-by: darcy, jjg
Contributed-by: mali@csail.mit.edu, mernst@cs.washington.edu
上级 02835ba7
...@@ -38,7 +38,7 @@ mylib="`dirname $mydir`"/lib ...@@ -38,7 +38,7 @@ mylib="`dirname $mydir`"/lib
# dependent jar files for additional dependencies. # dependent jar files for additional dependencies.
if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then 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:" | grep "Class-Path:" |
sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'` sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'`
bcp="$mylib/#PROGRAM#.jar":$cp bcp="$mylib/#PROGRAM#.jar":$cp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册