improving the windows bat scripts
[angular-drzb] / scripts / test-server.bat
index d7dd53e..dc26a1d 100644 (file)
@@ -1,13 +1,19 @@
-set base_dir=%~p0
-set port=9876
+@echo off
+
+REM Windows script for starting JSTD server
+REM
+REM Requirements:
+REM - Java (http://www.java.com)
+
+set BASE_DIR=%~dp0
+set PORT=9876
 
 echo "Starting JsTestDriver Server (http://code.google.com/p/js-test-driver/)"
 echo "Please open the following url and capture one or more browsers:"
-echo "http://localhost:%port%"
-
-java -jar "%base_dir%/../test/lib/jstestdriver/JsTestDriver.jar" ^
-        --port %port% ^
-        --browserTimeout 20000 ^
-        --config "%base_dir%/../config/jsTestDriver.conf" ^
-        --basePath "%base_dir%/.."
+echo "http://localhost:%PORT%"
 
+java -jar "%BASE_DIR%/../test/lib/jstestdriver/JsTestDriver.jar" ^
+     --PORT %PORT% ^
+     --browserTimeout 20000 ^
+     --config "%BASE_DIR%/../config/jsTestDriver.conf" ^
+     --basePath "%BASE_DIR%/.."