equal
deleted
inserted
replaced
41 # Assume that the jar file being invoked lists all the necessary langtools |
41 # Assume that the jar file being invoked lists all the necessary langtools |
42 # jar files in its Class-Path manifest entry, so there is no need to search |
42 # jar files in its Class-Path manifest entry, so there is no need to search |
43 # dependent jar files for additional dependencies. |
43 # dependent jar files for additional dependencies. |
44 |
44 |
45 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then |
45 if [ "$LANGTOOLS_USE_BOOTCLASSPATH" != "no" ]; then |
46 cp=`unzip -c "$mylib/#PROGRAM#.jar" META-INF/MANIFEST.MF | |
46 cp=`echo "$mylib"/*.jar | |
47 grep "Class-Path:" | |
47 sed -e 's|\([a-z.]*\.jar\) *|\1#PS#|g'` |
48 sed -e 's|Class-Path: *||' -e 's|\([a-z]*\.jar\) *|'"$mylib"'/\1#PS#|g'` |
48 bcp=$cp |
49 bcp="$mylib/#PROGRAM#.jar#PS#$cp" |
|
50 fi |
49 fi |
51 |
50 |
52 # tools currently assumes that assertions are enabled in the launcher |
51 # tools currently assumes that assertions are enabled in the launcher |
53 ea=-ea:com.sun.tools... |
52 ea=-ea:com.sun.tools... |
54 |
53 |
70 IFS="$saveIFS" |
69 IFS="$saveIFS" |
71 done |
70 done |
72 unset DUALCASE |
71 unset DUALCASE |
73 |
72 |
74 IFS=$nl |
73 IFS=$nl |
75 "#TARGET_JAVA#" "${bcp:+-Xbootclasspath/p:"$bcp"}" ${ea} ${javaOpts} -jar "${mylib}/#PROGRAM#.jar" ${toolOpts} |
74 "#TARGET_JAVA#" "${bcp:+-Xbootclasspath/p:"$bcp"}" ${ea} ${javaOpts} com.sun.tools.#PROGRAM#.Main ${toolOpts} |