Home | History | Annotate | Download | only in tools
      1 @echo off
      2 rem Copyright (C) 2008 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 Set up prog to be the path of this script, including following symlinks,
     20 rem and set up progdir to be the fully-qualified pathname of its directory.
     21 set prog=%~f0
     22 
     23 rem Change current directory and drive to where the script is, to avoid
     24 rem issues with directories containing whitespaces.
     25 cd /d %~dp0
     26 
     27 rem Get the CWD as a full path with short names only (without spaces)
     28 for %%i in ("%cd%") do set prog_dir=%%~fsi
     29 
     30 rem Check we have a valid Java.exe in the path.
     31 set java_exe=
     32 call lib\find_java.bat
     33 if not defined java_exe goto :EOF
     34 
     35 set jarfile=jobb.jar
     36 set frameworkdir=
     37 set libdir=
     38 
     39 if exist %frameworkdir%%jarfile% goto JarFileOk
     40     set frameworkdir=lib\
     41 
     42 if exist %frameworkdir%%jarfile% goto JarFileOk
     43     set frameworkdir=..\framework\
     44 
     45 :JarFileOk
     46 
     47 set jarpath=%frameworkdir%%jarfile%;%frameworkdir%libfat32.jar
     48 
     49 call %java_exe% %java_debug% -classpath "%jarpath%" com.android.jobb.Main %*
     50 
     51 
     52