Skip to content

Commit

Permalink
Windows startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
artikh committed Oct 25, 2011
1 parent 0f67075 commit 1dbbae3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/assembly/dist.xml
Expand Up @@ -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>
Expand Down
10 changes: 10 additions & 0 deletions 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.