diff options
author | Elliott Hughes <enh@google.com> | 2011-08-11 17:44:34 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2011-08-11 22:02:10 -0700 |
commit | 40ef99eb9dd91c2fa549f40973964529c927bb3c (patch) | |
tree | 317dfd56abeacb4c0dd3cf7f63a4801828d7dff9 /tools/art | |
parent | 5381cf941d26030199fcdbe61a614ff01e55a27c (diff) | |
download | art-40ef99eb9dd91c2fa549f40973964529c927bb3c.tar.gz art-40ef99eb9dd91c2fa549f40973964529c927bb3c.tar.bz2 art-40ef99eb9dd91c2fa549f40973964529c927bb3c.zip |
Start implementing JNI.
This patch replaces our JniEnvironment class with the regular JNIEnv.
This patch also adds support for .jar, .zip, and .apk files in the
boot classpath.
There's also an attempt at implementing JNIEnv::FindClass.
I've also fixed a few scoped_ptr/scoped_array bugs (this kind of thing
being the reason we use UniquePtr in libcore), and removed some
unnecessary .
The 'tools/art' script makes it easier to play with aexec on the command-line.
Change-Id: Ic4f704c12e0071f17e95b6e182fdab9370ead9b0
Diffstat (limited to 'tools/art')
-rwxr-xr-x | tools/art | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/art b/tools/art new file mode 100755 index 000000000..ab252ebf9 --- /dev/null +++ b/tools/art @@ -0,0 +1,26 @@ +#!/bin/sh +# +# Copyright (C) 2011 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +mkdir -p /tmp/android-data/art-cache +ANDROID_DATA=/tmp/android-data \ +ANDROID_ROOT=$ANDROID_BUILD_TOP/out/host/linux-x86 \ +LD_LIBRARY_PATH=$ANDROID_BUILD_TOP/out/host/linux-x86/lib \ +$ANDROID_BUILD_TOP/out/host/linux-x86/bin/aexecd \ +-Xbootclasspath\ +:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/core-hostdex.jar\ +:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/bouncycastle-hostdex.jar\ +:$ANDROID_BUILD_TOP/out/host/linux-x86/framework/apache-xml-hostdex.jar \ +$* |