• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 @echo off
2 rem Copyright (C) 2012 The Android Open Source Project
3 rem
4 rem Licensed under the Apache License, Version 2.0 (the "License");
5 rem you may not use this file except in compliance with the License.
6 rem You may obtain a copy of the License at
7 rem
8 rem      http://www.apache.org/licenses/LICENSE-2.0
9 rem
10 rem Unless required by applicable law or agreed to in writing, software
11 rem distributed under the License is distributed on an "AS IS" BASIS,
12 rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 rem See the License for the specific language governing permissions and
14 rem limitations under the License.
15 
16 rem don't modify the caller's environment
17 setlocal
18 
19 rem Change current directory and drive to where the script is, to avoid
20 rem issues with directories containing whitespaces.
21 cd /d %~dp0
22 
23 rem Check we have a valid Java.exe in the path.
24 set java_exe=
25 call lib\find_java.bat
26 if not defined java_exe goto :EOF
27 
28 :QueryArch
29 for /f "delims=" %%a in ('"%java_exe%" -jar lib\archquery.jar') do set vmarch=%%a
30 
31 start lib\monitor-%vmarch%\monitor
32 
33