Merge pull request #749 from Adirelle/patch-1
Have lein.bat use local .lein-classpath.
This commit is contained in:
commit
2b4b60a797
1 changed files with 8 additions and 0 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue