Merge pull request #749 from Adirelle/patch-1

Have lein.bat use local .lein-classpath.
This commit is contained in:
Michael Klishin 2012-08-26 11:59:49 -07:00
commit 2b4b60a797

View file

@ -53,6 +53,14 @@ if exist "%~dp0..\src\leiningen\version.clj" (
:: Not running from a checkout.
if not exist "%LEIN_JAR%" goto NO_LEIN_JAR
set CLASSPATH=%LEIN_JAR%
if exist ".lein-classpath" (
for /f %%i in (.lein-classpath) do set CONTEXT_CP=%%i
if NOT "x!CONTEXT_CP!"=="x" (
set CLASSPATH=!CONTEXT_CP!;!CLASSPATH!
)
)
)
if not "x%DEBUG%" == "x" echo CLASSPATH=!CLASSPATH!