15d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao#!/bin/bash
25d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao#
35d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Copyright (C) 2010 The Android Open Source Project
45d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao#
55d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Licensed under the Apache License, Version 2.0 (the "License");
65d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# you may not use this file except in compliance with the License.
75d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# You may obtain a copy of the License at
85d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao#
95d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao#     http://www.apache.org/licenses/LICENSE-2.0
105d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao#
115d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Unless required by applicable law or agreed to in writing, software
125d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# distributed under the License is distributed on an "AS IS" BASIS,
135d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
145d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# See the License for the specific language governing permissions and
155d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# limitations under the License.
165d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao
175d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Stop if something fails.
185d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhaoset -e
195d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao
205d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# We compile for a 1.4 target to suppress the use of EnclosingMethod
215d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# attributes.
225d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhaomkdir classes
235d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao${JAVAC} -source 1.4 -target 1.4 -d classes `find src -name '*.java'`
245d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao
255d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao# Suppress stderr to keep the inner class warnings out of the expected output.
264407e61aa4cd75e6f31919cfca6a544d18b88c53Tsu Chiang Chuang${DX} --debug --dex --dump-to=classes.lst --output=classes.dex --dump-width=1000 classes 2>/dev/null
275d1ac920fdaef5d4ec8f66bb734488cd9660b024jeffhao
28904667a58fa38437d1be6907beb3fb76d1982e0bBrian Carlstromzip $TEST_NAME.jar classes.dex
29