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