Skip to content

Commit

Permalink
Fixed script-template for windows. Made it similar to the shell scrip…
Browse files Browse the repository at this point in the history
…t so that the %s replacements occur in the right order
  • Loading branch information
Jaskirat committed Feb 11, 2011
1 parent 6cc10bc commit 846409c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/script-template.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ setLocal

if "x%%JVM_OPTS%%" == "x" set JVM_OPTS=%%JAVA_OPTS%%
set CLASSPATH="%s"
set MAIN="%s"
set VERSION="%s"

java -cp "%%CLASSPATH%%" %%JVM_OPTS%% -Dproject.version=%%VERSION%%^
clojure.main -e "(use '%s)(apply -main *command-line-args*)" NUL %%*
clojure.main -e "(use '%%MAIN%%)(apply -main *command-line-args*)" NUL %%*

0 comments on commit 846409c

Please sign in to comment.