Permalink
Browse files

Added run.bat - for running on windows

  • Loading branch information...
1 parent 866db9e commit 16b5318ac720c2852f45406f46d9b05b2fd2d372 @hofmeister committed Jul 5, 2011
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/main/bin/run.bat
View
@@ -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.