Skip to content
Browse files

Windows startup script

  • Loading branch information...
1 parent 0f67075 commit 1dbbae33e78eca49fcb34124d00d6b538cadff7e @artikh committed Oct 25, 2011
Showing with 15 additions and 0 deletions.
  1. +5 −0 src/main/assembly/dist.xml
  2. +10 −0 src/main/bin/run.bat
View
5 src/main/assembly/dist.xml
@@ -21,6 +21,11 @@
<outputDirectory>/bin</outputDirectory>
</file>
<file>
+ <source>${project.basedir}/src/main/bin/run.bat</source>
+ <fileMode>755</fileMode>
+ <outputDirectory>/bin</outputDirectory>
+ </file>
+ <file>
<source>${project.basedir}/src/main/bin/kill_ppid</source>
<fileMode>755</fileMode>
<outputDirectory>/bin</outputDirectory>
View
10 src/main/bin/run.bat
@@ -0,0 +1,10 @@
+@echo off
+setlocal EnableDelayedExpansion
+SET OLDCD=%CD%
+cd %~dp0..
+SET JAVA_OPTS= -Xmx1g
+SET CLASS=com.github.rnewson.couchdb.lucene.Main
+SET CLASSPATH="conf"
+for %%i in ("lib\*.jar") do @SET CLASSPATH=!CLASSPATH!;"%%~dpfi"
+java %JAVA_OPTS% -cp %CLASSPATH% %CLASS% > nul
+cd %OLDCD%

0 comments on commit 1dbbae3

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