| OLD | NEW |
| 1 #!/bin/bash --posix | 1 #!/bin/bash --posix |
| 2 # | 2 # |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 | 7 |
| 8 # Prevent problems where the caller has exported CLASSPATH, causing our | 8 # Prevent problems where the caller has exported CLASSPATH, causing our |
| 9 # computed value to be copied into the environment and double-counted | 9 # computed value to be copied into the environment and double-counted |
| 10 # against the argv limit. | 10 # against the argv limit. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 if [ "$JVM_DEBUG_PORT" != "" ]; then | 48 if [ "$JVM_DEBUG_PORT" != "" ]; then |
| 49 JVM_DEBUG_SUSPEND=${DEFAULT_JVM_DEBUG_SUSPEND:-"y"} | 49 JVM_DEBUG_SUSPEND=${DEFAULT_JVM_DEBUG_SUSPEND:-"y"} |
| 50 JVM_DEBUG_FLAGS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=${JVM_DEB
UG_SUSPEND},address=${JVM_DEBUG_PORT}" | 50 JVM_DEBUG_FLAGS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=${JVM_DEB
UG_SUSPEND},address=${JVM_DEBUG_PORT}" |
| 51 fi | 51 fi |
| 52 | 52 |
| 53 shopt -s execfail # Return control to this script if exec fails. | 53 shopt -s execfail # Return control to this script if exec fails. |
| 54 exec $JAVABIN -ea -classpath @CLASSPATH@ \ | 54 exec $JAVABIN -ea -classpath @CLASSPATH@ \ |
| 55 ${JVM_DEBUG_FLAGS} \ | 55 ${JVM_DEBUG_FLAGS} \ |
| 56 ${JVM_FLAGS} \ | 56 ${JVM_FLAGS} \ |
| 57 ${JVM_FLAGS_CMDLINE} \ | 57 ${JVM_FLAGS_CMDLINE} \ |
| 58 com.google.dart.runner.TestRunner \ | 58 com.google.dart.runner.DartRunner \ |
| 59 $DARTC_FLAGS \ | 59 $DARTC_FLAGS \ |
| 60 "$@" | 60 "$@" |
| 61 | 61 |
| 62 echo "ERROR: couldn't exec ${JAVABIN}." 1>&2 | 62 echo "ERROR: couldn't exec ${JAVABIN}." 1>&2 |
| 63 | 63 |
| 64 exit 1 | 64 exit 1 |
| OLD | NEW |