Browse files

Merge pull request #122 from AtKaaZ/LazyTestWatch_WindowsBatch

the windows batch variant of
  • Loading branch information...
2 parents 55883b6 + ce317b9 commit c543352f7516cf6077322eca5b8a0e2e6bb90d92 @daveray committed Feb 18, 2013
Showing with 25 additions and 0 deletions.
  1. +25 −0 lazytest-watch.bat
@@ -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%" src test
+echo %cmd%
+rem pause only when errors?
+rem if errorlevel 1 pause
+rem or always pause

0 comments on commit c543352

Please sign in to comment.