source: other-projects/tipple-android/osmosis/bin/osmosis.bat@ 26899

Last change on this file since 26899 was 26899, checked in by davidb, 11 years ago

Tipple reborn after Chris's Summer of Code 2013

File size: 1.6 KB
Line 
1@ECHO OFF
2
3REM This is an equivalent Windows batch file to complement the unix shell script
4REM Corresponding lines from the shell script are printed before the matching batch file commands
5
6REM # Config files can define several variables used throughout this script.
7REM # JAVACMD - The java command to launch osmosis.
8REM # JAVACMD_OPTIONS - The options to append to the java command, typically used to modify jvm settings such as max memory.
9REM # OSMOSIS_OPTIONS - The options to apply to all osmosis invocations, typically used to add plugins or make quiet operation the default.
10
11REM if [ -f /etc/osmosis ] ; then
12REM . /etc/osmosis
13REM fi
14IF EXIST "%ALLUSERSPROFILE%\osmosis.bat" CALL "%ALLUSERSPROFILE%\osmosis.bat"
15
16REM if [ -f "$HOME/.osmosis" ] ; then
17REM . "$HOME/.osmosis"
18REM fi
19IF EXIST "%USERPROFILE%\osmosis.bat" CALL "%USERPROFILE%\osmosis.bat"
20
21
22REM if [ -z "$JAVACMD" ] ; then
23REM # No JAVACMD provided in osmosis config files, therefore default to java
24REM JAVACMD=java
25REM fi
26IF "%JAVACMD%"=="" set JAVACMD=java
27
28REM Set "SAVEDIR" to the current directory
29set SAVEDIR=%CD%
30set MYAPP_HOME=%~dp0..
31REM Now make the MYAPP_HOME path absolute
32cd /D %MYAPP_HOME%
33set MYAPP_HOME=%CD%
34REM Change back to the original directory
35cd /D %SAVEDIR%
36
37set MAINCLASS=org.codehaus.classworlds.Launcher
38set PLEXUS_CP=%MYAPP_HOME%\lib\default\plexus-classworlds-2.4.jar
39SET EXEC=%JAVACMD% %JAVACMD_OPTIONS% -cp "%PLEXUS_CP%" -Dapp.home="%MYAPP_HOME%" -Dclassworlds.conf="%MYAPP_HOME%\config\plexus.conf" %MAINCLASS% %OSMOSIS_OPTIONS% %*
40
41%EXEC%
Note: See TracBrowser for help on using the repository browser.