src/share/bin/launcher.sh-template

changeset 471
2d0f4e7b44b2
parent 370
8a03f3c7d160
child 548
32675c68a3ca
equal deleted inserted replaced
470:b96ad32c004a 471:2d0f4e7b44b2
36 # Assume that the jar file being invoked lists all the necessary langtools 36 # Assume that the jar file being invoked lists all the necessary langtools
37 # jar files in its Class-Path manifest entry, so there is no need to search 37 # jar files in its Class-Path manifest entry, so there is no need to search
38 # dependent jar files for additional dependencies. 38 # dependent jar files for additional dependencies.
39 39
40 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then 40 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then
41 cp=`unzip -c $mylib/#PROGRAM#.jar META-INF/MANIFEST.MF | 41 cp=`unzip -c "$mylib/#PROGRAM#.jar" META-INF/MANIFEST.MF |
42 grep "Class-Path:" | 42 grep "Class-Path:" |
43 sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'` 43 sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1:|g'`
44 bcp="$mylib/#PROGRAM#.jar":$cp 44 bcp="$mylib/#PROGRAM#.jar":$cp
45 fi 45 fi
46 46

mercurial