Windows startup scrip #141

Merged
merged 2 commits into from Jun 15, 2012
Jump to file or symbol
Failed to load files and symbols.
+16 −1
Split
View
@@ -580,7 +580,7 @@ The Content-Type of the response is negotiated via the Accept request header lik
Calling couchdb-lucene without arguments returns a JSON object with information about the index.
<pre>
-http://127.0.0.1:5984/&lt;db>/_fti/_design/foo/&lt;index
+http://127.0.0.1:5984/&lt;db>/_fti/_design/foo/&lt;index&gt;
</pre>
returns;
@@ -20,6 +20,11 @@
<fileMode>755</fileMode>
<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>
View
@@ -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%