Browse files

Merge pull request #119 from AtKaaZ/LazyTestBatchForWindows that will run on windows as a batch file
  • Loading branch information...
2 parents c8781d8 + 7817eb2 commit ee19d46d1ebb4c80bd4b3004bc2571227d53bb5d @daveray committed Feb 18, 2013
Showing with 24 additions and 0 deletions.
  1. +24 −0 lazytest.bat
@@ -0,0 +1,24 @@
+@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.main test
+echo %cmd%
+rem pause only when errors?
+rem if errorlevel 1 pause
+rem or always pause

0 comments on commit ee19d46

Please sign in to comment.