12f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray#!/bin/bash
22f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# Copyright (C) 2014 The Android Open Source Project
32f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray#
42f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# Licensed under the Apache License, Version 2.0 (the "License");
52f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# you may not use this file except in compliance with the License.
62f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# You may obtain a copy of the License at
72f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray#
82f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray#      http://www.apache.org/licenses/LICENSE-2.0
92f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray#
102f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# Unless required by applicable law or agreed to in writing, software
112f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# distributed under the License is distributed on an "AS IS" BASIS,
122f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
132f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# See the License for the specific language governing permissions and
142f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray# limitations under the License.
152f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffray
16a71cf7aabfdb145a848f836c3b5f431cb1783a36Andreas Gampeif [ -z "$ANDROID_HOST_OUT" ] ; then
17a71cf7aabfdb145a848f836c3b5f431cb1783a36Andreas Gampe  ANDROID_HOST_OUT=${OUT_DIR:-$ANDROID_BUILD_TOP/out}/host/linux-x86
18a71cf7aabfdb145a848f836c3b5f431cb1783a36Andreas Gampefi
19a71cf7aabfdb145a848f836c3b5f431cb1783a36Andreas Gampe
20a71cf7aabfdb145a848f836c3b5f431cb1783a36Andreas Gampevogar_jar=${ANDROID_HOST_OUT}/framework/vogar.jar
212f7dda9ade5ebaba54984c09f30d13226a295c86Nicolas Geoffrayexec java -classpath ${vogar_jar} vogar.Vogar "$@"
22