Commit 00741c52 authored by Greg Thomas's avatar Greg Thomas

OF-1410: Allow the openfire.bat file to be run from anywhere.

Also, edit the .editorconfig file so .bat files keep their CRLF endings.
parent aa8ad82b
...@@ -11,3 +11,6 @@ insert_final_newline = true ...@@ -11,3 +11,6 @@ insert_final_newline = true
charset = utf-8 charset = utf-8
indent_style = space indent_style = space
indent_size = 4 indent_size = 4
[*.bat]
end_of_line = crlf
...@@ -5,7 +5,7 @@ REM # ...@@ -5,7 +5,7 @@ REM #
if "%JAVA_HOME%" == "" goto javaerror if "%JAVA_HOME%" == "" goto javaerror
if not exist "%JAVA_HOME%\bin\java.exe" goto javaerror if not exist "%JAVA_HOME%\bin\java.exe" goto javaerror
set OPENFIRE_HOME=%CD%\.. set OPENFIRE_HOME=%~dp0..
goto run goto run
:javaerror :javaerror
...@@ -16,11 +16,11 @@ goto end ...@@ -16,11 +16,11 @@ goto end
:run :run
if "%1" == "-debug" goto debug if "%1" == "-debug" goto debug
start "Openfire" "%JAVA_HOME%\bin\java" -server -DopenfireHome="%OPENFIRE_HOME%" -jar ..\lib\startup.jar start "Openfire" "%JAVA_HOME%\bin\java" -server -DopenfireHome="%OPENFIRE_HOME%" -Dopenfire.lib.dir="%OPENFIRE_HOME%\lib" -jar "%OPENFIRE_HOME%\lib\startup.jar"
goto end goto end
:debug :debug
start "Openfire" "%JAVA_HOME%\bin\java" -Xdebug -Xint -server -DopenfireHome="%OPENFIRE_HOME%" -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -jar ..\lib\startup.jar start "Openfire" "%JAVA_HOME%\bin\java" -Xdebug -Xint -server -DopenfireHome="%OPENFIRE_HOME%" -Dopenfire.lib.dir="%OPENFIRE_HOME%\lib" -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -jar "%OPENFIRE_HOME%\lib\startup.jar"
goto end goto end
:end :end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment