anchor.diff:  FOR %%P IN ("%~dp0..") DO SET AKIBAN_HOME=%%~fP
   
   SET JAR_FILE=%AKIBAN_HOME%\lib\%SERVER_JAR%
  +SET DEP_DIR=R%AKIBAN_HOME%\lib\server
   SET AKIBAN_CONF=%AKIBAN_HOME%
   SET AKIBAN_LOGDIR=%AKIBAN_HOME%\log
   
  
positive.code: GOTO EOF
  
  :VERSION
  FOR /F "usebackq" %%V IN (`java -cp "%JAR_FILE%" com.akiban.server.GetVersion`) DO SET SERVER_VERSION=%%V
  FOR /F "usebackq" %%V IN (`java -cp "%JAR_FILE%" com.persistit.GetVersion`) DO SET PERSISTIT_VERSION=%%V
  ECHO server   : %SERVER_VERSION%
  ECHO persistit: %PERSISTIT_VERSION%
  ECHO.
  
negative.code: IF "%VERB%"=="window" GOTO RUN_CMD
  IF "%VERB%"=="run" GOTO RUN_CMD
  
  SET PRUNSRV_ARGS=--StartMode=jvm --StartClass com.akiban.server.AkServer --StartMethod=procrunStart --StopMode=jvm --StopClass=com.akiban.server.AkServer --StopMethod=procrunStop --StdOutput="%AKIBAN_LOGDIR%\stdout.log" --DisplayName="%SERVICE_DNAME%" --Description="%SERVICE_DESC%" --Startup=%SERVICE_MODE% --Classpath="%CLASSPATH%"
  REM Each value that might have a space needs a separate ++JvmOptions.
  SET PRUNSRV_ARGS=%PRUNSRV_ARGS% --JvmOptions="%JVM_OPTS: =#%" ++JvmOptions="-Dakserver.config_dir=%AKIBAN_CONF%" ++JvmOptions="-Dservices.config=%AKIBAN_CONF%\config\services-config.yaml" ++JvmOptions="-Dlog4j.configuration=file:%AKIBAN_LOGCONF%"
  IF DEFINED SERVICE_USER SET PRUNSRV_ARGS=%PRUNSRV_ARGS% --ServiceUser=%SERVICE_USER% --ServicePassword=%SERVICE_PASSWORD%
  