1@echo off 2rem Copyright (C) 2008 The Android Open Source Project 3rem 4rem Licensed under the Apache License, Version 2.0 (the "License"); 5rem you may not use this file except in compliance with the License. 6rem You may obtain a copy of the License at 7rem 8rem http://www.apache.org/licenses/LICENSE-2.0 9rem 10rem Unless required by applicable law or agreed to in writing, software 11rem distributed under the License is distributed on an "AS IS" BASIS, 12rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13rem See the License for the specific language governing permissions and 14rem limitations under the License. 15 16rem don't modify the caller's environment 17setlocal 18 19rem Set up prog to be the path of this script, including following symlinks, 20rem and set up progdir to be the fully-qualified pathname of its directory. 21set prog=%~f0 22 23rem Change current directory and drive to where the script is, to avoid 24rem issues with directories containing whitespaces. 25cd /d %~dp0 26 27rem Check we have a valid Java.exe in the path. 28set java_exe= 29call lib\find_java.bat 30if not defined java_exe goto :EOF 31 32set jarfile=hierarchyviewer.jar 33set frameworkdir=. 34set libdir= 35 36if exist %frameworkdir%\%jarfile% goto JarFileOk 37 set frameworkdir=lib 38 39if exist %frameworkdir%\%jarfile% goto JarFileOk 40 set frameworkdir=..\framework 41 42:JarFileOk 43 44set jarpath=%frameworkdir%\%jarfile% 45 46call "%java_exe%" -Xmx512m "-Djava.ext.dirs=%frameworkdir%" -Dhierarchyviewer.adb= -jar %jarpath% %* 47