Changed launcher lein.bat to determine whether it's a source checkout by looking for directory 'src'
This commit is contained in:
parent
2df87f3dda
commit
9af28dfe83
1 changed files with 2 additions and 2 deletions
4
bin/lein.bat
Normal file → Executable file
4
bin/lein.bat
Normal file → Executable file
|
@ -34,9 +34,9 @@ set CONTEXT_CP=
|
|||
if exist ".lein-classpath" set /P CONTEXT_CP=<.lein-classpath
|
||||
if NOT "%CONTEXT_CP%"=="" set CLASSPATH="%CONTEXT_CP%";%CLASSPATH%
|
||||
|
||||
if exist "%~f0\..\..\src\leiningen\core.clj" (
|
||||
if exist "%~dp0..\src" (
|
||||
:: Running from source checkout.
|
||||
call :SET_LEIN_ROOT "%~f0\..\.."
|
||||
call :SET_LEIN_ROOT "%~dp0.."
|
||||
|
||||
set LEIN_LIBS="
|
||||
for %%j in ("!LEIN_ROOT!\lib\*") do set LEIN_LIBS=!LEIN_LIBS!;%%~fj
|
||||
|
|
Loading…
Reference in a new issue