Permalink
Browse files

the windows batch variant of lazytest-watch.sh

  • Loading branch information...
1 parent 55883b6 commit ce317b9deecc96a9754f43e48b949f600dc679f9 AtKaaZ committed Feb 18, 2013
Showing with 25 additions and 0 deletions.
  1. +25 −0 lazytest-watch.bat
View
@@ -0,0 +1,25 @@
+@echo off
+
+setlocal enableextensions
+
+rem leiningen version 2 assumed to be in PATH and named lein.bat (don't use " quotes even when LFN)
+set lein2=lein.bat
+rem java.exe assumed to be in PATH (don't use " quotes even when LFN)
+set java=java
+set JAVA_OPTS=-XX:MaxPermSize=512m -Xmx512m
+
+for /f "tokens=*" %%a in (
+'"%lein2%" classpath'
+) do (
+set leinCP=%%a
+)
+
+set cmd="%java%" %JAVA_OPTS% -classpath "%leinCP%" lazytest.watch src test
+
+echo %cmd%
+%cmd%
+endlocal
+rem pause only when errors?
+rem if errorlevel 1 pause
+rem or always pause
+pause

0 comments on commit ce317b9

Please sign in to comment.