| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
| 4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 # This file is used to execute the analyzer by running the jar file. | 6 # This file is used to execute the analyzer by running the jar file. |
| 7 # It is a simple wrapper enabling us to have simpler command lines in | 7 # It is a simple wrapper enabling us to have simpler command lines in |
| 8 # the testing infrastructure. | 8 # the testing infrastructure. |
| 9 set -e | 9 set -e |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 EXTRA_JVMARGS+=" -Xmx512M -client " | 58 EXTRA_JVMARGS+=" -Xmx512M -client " |
| 59 else | 59 else |
| 60 # On other architectures | 60 # On other architectures |
| 61 # -batch invocations will do better with a server vm | 61 # -batch invocations will do better with a server vm |
| 62 # invocations for analyzing a single file do better with a client vm | 62 # invocations for analyzing a single file do better with a client vm |
| 63 if [ $FOUND_BATCH -eq 0 ] ; then | 63 if [ $FOUND_BATCH -eq 0 ] ; then |
| 64 EXTRA_JVMARGS+=" -client " | 64 EXTRA_JVMARGS+=" -client " |
| 65 fi | 65 fi |
| 66 fi | 66 fi |
| 67 | 67 |
| 68 exec java $EXTRA_JVMARGS -jar $JAR_FILE --dart-sdk "$SDK_DIR" "$@" | 68 exec java $EXTRA_JVMARGS -jar "$JAR_FILE" --dart-sdk "$SDK_DIR" "$@" |
| OLD | NEW |