Add resources to batch file classpath and clean up a bit

This commit is contained in:
Colin Jones 2011-11-28 19:18:32 -06:00
parent 7c00277b17
commit c148c483a2
3 changed files with 16 additions and 12 deletions

View File

@ -1,13 +1,14 @@
@echo off @echo off
setLocal EnableDelayedExpansion setLocal EnableDelayedExpansion
set CLASSPATH=" set CLASSPATH="
for /R ./lib %%a in (*.jar) do ( for %%j in (".\lib\*.jar") do (
set CLASSPATH=!CLASSPATH!;%%a set CLASSPATH=!CLASSPATH!;%%~fj
) )
set CLASSPATH=!CLASSPATH!" set CLASSPATH=!CLASSPATH!"
set CLASSPATH=%CLASSPATH%;src set CLASSPATH=%CLASSPATH%;src;resources
set JLINE=jline.ConsoleRunner set JLINE=jline.ConsoleRunner
java -Xmx1G -cp "%CLASSPATH%" %JLINE% clojure.main java -Xmx1G -cp %CLASSPATH% %JLINE% clojure.main

View File

@ -1,11 +1,12 @@
@echo off @echo off
setLocal EnableDelayedExpansion setLocal EnableDelayedExpansion
set CLASSPATH=" set CLASSPATH="
for /R ./lib %%a in (*.jar) do ( for %%j in (".\lib\*.jar") do (
set CLASSPATH=!CLASSPATH!;%%a set CLASSPATH=!CLASSPATH!;%%~fj
) )
set CLASSPATH=!CLASSPATH!" set CLASSPATH=!CLASSPATH!"
set CLASSPATH=%CLASSPATH%;src set CLASSPATH=%CLASSPATH%;src;resources
java -Xmx1G -cp "%CLASSPATH%" clojure.main -i script\run.clj java -Xmx1G -cp %CLASSPATH% clojure.main script\run.clj

View File

@ -1,9 +1,11 @@
@echo off @echo off
setLocal EnableDelayedExpansion setLocal EnableDelayedExpansion
set CLASSPATH=" set CLASSPATH="
for /R ./lib %%a in (*.jar) do ( for %%j in (".\lib\*.jar") do (
set CLASSPATH=!CLASSPATH!;%%a set CLASSPATH=!CLASSPATH!;%%~fj
) )
set CLASSPATH=!CLASSPATH!" set CLASSPATH=!CLASSPATH!"
set CLASSPATH=%CLASSPATH%;src set CLASSPATH=%CLASSPATH%;src;resources
java -Xmx1G -cp "%CLASSPATH%" clojure.main -i script\test.clj
java -Xmx1G -cp %CLASSPATH% clojure.main script\test.clj