xref: /aosp_15_r20/external/vogar/bin/vogar-android (revision e17b455832b152077f3f109e08c3a59761ae9ee5)
1*e17b4558SAndroid Build Coastguard Worker#!/bin/bash
2*e17b4558SAndroid Build Coastguard Worker# Copyright (C) 2014 The Android Open Source Project
3*e17b4558SAndroid Build Coastguard Worker#
4*e17b4558SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
5*e17b4558SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
6*e17b4558SAndroid Build Coastguard Worker# You may obtain a copy of the License at
7*e17b4558SAndroid Build Coastguard Worker#
8*e17b4558SAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
9*e17b4558SAndroid Build Coastguard Worker#
10*e17b4558SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
11*e17b4558SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
12*e17b4558SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*e17b4558SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
14*e17b4558SAndroid Build Coastguard Worker# limitations under the License.
15*e17b4558SAndroid Build Coastguard Worker
16*e17b4558SAndroid Build Coastguard Workerif [ -z "$ANDROID_HOST_OUT" ] ; then
17*e17b4558SAndroid Build Coastguard Worker  ANDROID_HOST_OUT=${OUT_DIR:-$ANDROID_BUILD_TOP/out}/host/linux-x86
18*e17b4558SAndroid Build Coastguard Workerfi
19*e17b4558SAndroid Build Coastguard Worker
20*e17b4558SAndroid Build Coastguard Workerexport JAVA_HOME=${ANDROID_BUILD_TOP}/prebuilts/jdk/jdk21/linux-x86
21*e17b4558SAndroid Build Coastguard Workerexport PATH=${JAVA_HOME}/bin:${PATH}
22*e17b4558SAndroid Build Coastguard Workervogar_jar=${ANDROID_HOST_OUT}/framework/vogar.jar
23*e17b4558SAndroid Build Coastguard Worker
24*e17b4558SAndroid Build Coastguard Workerecho "vogar-android java binary location:"  `which java` 1>&2
25*e17b4558SAndroid Build Coastguard Workerexec java -classpath ${vogar_jar} vogar.Vogar "$@"
26