Skip to content
Browse files

Merge pull request #141 from artikh/master

Windows startup scrip
  • Loading branch information...
2 parents b98f4b7 + 1dbbae3 commit 969a982c6aee2eb5344956e068cf06f8f8cb3f08 Robert Newson committed Jun 15, 2012
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 969a982

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