19139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light#!/bin/bash 29139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# 39139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# Copyright 2015 The Android Open Source Project 49139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# 59139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# Licensed under the Apache License, Version 2.0 (the "License"); 69139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# you may not use this file except in compliance with the License. 79139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# You may obtain a copy of the License at 89139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# 99139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# http://www.apache.org/licenses/LICENSE-2.0 109139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# 119139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# Unless required by applicable law or agreed to in writing, software 129139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# distributed under the License is distributed on an "AS IS" BASIS, 139139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 149139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# See the License for the specific language governing permissions and 159139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# limitations under the License. 169139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light 179139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light# make us exit on a failure 189139e008abe30b7beaf4afd6533228a1dd9b202cAlex Lightset -e 199139e008abe30b7beaf4afd6533228a1dd9b202cAlex Light 20d204ba5ac9c5488880d85dc198e7b6aefea2f0bbAlex Lightif [[ $@ != *"--jvm"* ]]; then 21d204ba5ac9c5488880d85dc198e7b6aefea2f0bbAlex Light # Don't do anything with jvm 22d204ba5ac9c5488880d85dc198e7b6aefea2f0bbAlex Light # Hard-wired use of experimental jack. 23d204ba5ac9c5488880d85dc198e7b6aefea2f0bbAlex Light # TODO: fix this temporary work-around for default-methods, see b/19467889 24d204ba5ac9c5488880d85dc198e7b6aefea2f0bbAlex Light export USE_JACK=true 259139e008abe30b7beaf4afd6533228a1dd9b202cAlex Lightfi 26d204ba5ac9c5488880d85dc198e7b6aefea2f0bbAlex Light 27d204ba5ac9c5488880d85dc198e7b6aefea2f0bbAlex Light./default-build "$@" --experimental default-methods 28