Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #122 from AtKaaZ/LazyTestWatch_WindowsBatch

the windows batch variant of lazytest-watch.sh
  • Loading branch information...
commit c543352f7516cf6077322eca5b8a0e2e6bb90d92 2 parents 55883b6 + ce317b9
@daveray authored
Showing with 25 additions and 0 deletions.
  1. +25 −0 lazytest-watch.bat
View
25 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%" lazytest.watch src test
+
+echo %cmd%
+%cmd%
+endlocal
+rem pause only when errors?
+rem if errorlevel 1 pause
+rem or always pause
+pause
Please sign in to comment.
Something went wrong with that request. Please try again.