Commit 1d7217b9 authored by Donald H. (Donnie) Pinkston, III's avatar Donald H. (Donnie) Pinkston, III
Browse files

Update nanodb.bat to work with Maven build

The nanodb.bat file now behaves in the same way that the *nix nanodb
script works, so that NanoDB can be started from the Windows cmd shell.
parent 3d5b43db
Showing with 20 additions and 12 deletions
+20 -12
@echo off @echo off
set CPATH=. set NANODB_SERVER_JAR=target\nanodb-server-0.1-SNAPSHOT.jar
set CPATH=%CPATH%;lib\log4j-1.2.13.jar
set CPATH=%CPATH%;lib\antlr-3.2.jar rem Make sure the NanoDB server JAR file has been built
set CPATH=%CPATH%;lib\commons-io-2.1.jar if not exist %NANODB_SERVER_JAR% (
set CPATH=%CPATH%;lib\commons-lang-2.4.jar echo Can't find NanoDB server JAR file. Run 'mvn package' to build the project.
set CPATH=%CPATH%;build\classes exit /b 1
)
rem To set the page-size to use, add "-Dnanodb.pagesize=2048" to JAVA_OPTS.
rem To enable transaction processing, add "-Dnanodb.txns=on" to JAVA_OPTS. set JAVA_OPTS=-Dlog4j.configurationFile=log4j2.properties
set JAVA_OPTS=-Dlog4j.configuration=logging.conf
rem Server properties can be specified as system-property arguments. Examples:
java %JAVA_OPTS% -cp %CPATH% edu.caltech.nanodb.client.ExclusiveClient rem - To change the default page-size to use, add -Dnanodb.pagesize=2048
rem - To enable transaction processing, add -Dnanodb.enableTransactions=on
rem set JAVA_OPTS=%JAVA_OPTS% -Dnanodb.enableTransactions=on
rem To enable connection to a running server via the IntelliJ IDEA debugger,
rem uncomment this line:
rem set JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5009
java %JAVA_OPTS% %* -jar %NANODB_SERVER_JAR%
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