Author: yurize
Date: Sat Jun 8 11:31:14 2013
New Revision: 1490962
URL: http://svn.apache.org/r1490962
Log:
Adds run-server.bat to provide Windows users an easier way to run the
server. The batch still misses handling of the debug parameters though.
https://reviews.apache.org/r/11746/
Added:
incubator/wave/trunk/run-server.bat
Added: incubator/wave/trunk/run-server.bat
URL:
http://svn.apache.org/viewvc/incubator/wave/trunk/run-server.bat?rev=1490962&view=auto
==============================================================================
--- incubator/wave/trunk/run-server.bat (added)
+++ incubator/wave/trunk/run-server.bat Sat Jun 8 11:31:14 2013
@@ -0,0 +1,15 @@
+echo off
+if not exist "server.config" (
+ echo "You need to copy server.config.example to server.config and edit it.
Or run: 'ant -f server-config.xml' to generate the file automatically."
+ pause
+ exit 1
+)
+
+for /F "tokens=1* delims==" %%A IN (build.properties) DO (
+ IF "%%A"=="waveinabox.version" set WAVEINABOX_VERSION=%%B
+ IF "%%A"=="name" set NAME=%%B
+ )
+echo on
+
+java -Djava.util.logging.config.file=wiab-logging.conf
-Djava.security.auth.login.config=jaas.config
-Dwave.server.config=server.config -jar
dist/%NAME%-server-%WAVEINABOX_VERSION%.jar
+pause
\ No newline at end of file