Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added run.bat - for running on windows

  • Loading branch information...
commit 16b5318ac720c2852f45406f46d9b05b2fd2d372 1 parent 866db9e
@hofmeister authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/main/bin/run.bat
View
22 src/main/bin/run.bat
@@ -0,0 +1,22 @@
+@ECHO OFF
+SETLOCAL EnableDelayedExpansion
+SET JAVA_OPTS=-server -Xmx1g
+SET CLASS=com.github.rnewson.couchdb.lucene.Main
+SET CLASSPATH=conf
+
+FOR %%G IN (lib/*.jar) DO (
+ CALL :addclasspath lib/%%G
+)
+GOTO :done
+
+:addclasspath
+SET CLASSPATH=%CLASSPATH%:%1
+GOTO :eof
+
+:done
+
+ECHO CLASSPATH=%CLASSPATH%
+
+java %JAVA_OPTS% -cp %CLASSPATH% %CLASS%
+
+ENDLOCAL

0 comments on commit 16b5318

Please sign in to comment.
Something went wrong with that request. Please try again.