author | duke |
Thu, 24 Aug 2017 16:35:33 +0200 | |
changeset 46123 | b586c872bf7b |
parent 38609 | a1c0c73078b3 |
permissions | -rw-r--r-- |
10 | 1 |
#!/bin/sh |
2 |
||
3 |
# |
|
36526 | 4 |
# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved. |
10 | 5 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6 |
# |
|
7 |
# This code is free software; you can redistribute it and/or modify it |
|
8 |
# under the terms of the GNU General Public License version 2 only, as |
|
5520 | 9 |
# published by the Free Software Foundation. Oracle designates this |
10 | 10 |
# particular file as subject to the "Classpath" exception as provided |
5520 | 11 |
# by Oracle in the LICENSE file that accompanied this code. |
10 | 12 |
# |
13 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
14 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
17 |
# accompanied this code). |
|
18 |
# |
|
19 |
# You should have received a copy of the GNU General Public License version |
|
20 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
21 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
22 |
# |
|
5520 | 23 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
24 |
# or visit www.oracle.com if you need additional information or have any |
|
25 |
# questions. |
|
10 | 26 |
# |
27 |
||
3149 | 28 |
# tools currently assumes that assertions are enabled in the launcher |
3654 | 29 |
ea=-ea:com.sun.tools... |
10 | 30 |
|
3149 | 31 |
# Any parameters starting with -J are passed to the JVM. |
32 |
# All other parameters become parameters of #PROGRAM#. |
|
33 |
||
34 |
# Separate out -J* options for the JVM |
|
35 |
# Unset IFS and use newline as arg separator to preserve spaces in args |
|
36 |
DUALCASE=1 # for MKS: make case statement case-sensitive (6709498) |
|
37 |
saveIFS="$IFS" |
|
38 |
nl=' |
|
39 |
' |
|
40 |
for i in "$@" ; do |
|
41 |
IFS= |
|
42 |
case $i in |
|
43 |
-J* ) javaOpts=$javaOpts$nl`echo $i | sed -e 's/^-J//'` ;; |
|
44 |
* ) toolOpts=$toolOpts$nl$i ;; |
|
45 |
esac |
|
46 |
IFS="$saveIFS" |
|
47 |
done |
|
48 |
unset DUALCASE |
|
49 |
||
5490
a237b108549d
6948251: need to quote args in langtools launcher script
jjg
parents:
4706
diff
changeset
|
50 |
IFS=$nl |
38609
a1c0c73078b3
8157895: langtools launcher.sh-template script is broken
mcimadamore
parents:
37851
diff
changeset
|
51 |
"#TARGET_JAVA#" #XPATCH# ${ea} ${javaOpts} #PROGRAM# ${toolOpts} |