Last active
December 13, 2015 18:08
-
-
Save stuartwakefield/4952708 to your computer and use it in GitHub Desktop.
Just the batch file I use to run Leiningen on my Windows system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Installation | |
:: ------------ | |
:: | |
:: 1. Download the latest Leiningen Jar file | |
:: 2. Place it somewhere useful, mine is in my clojure directory | |
:: 3. Make sure that directory is on the Windows PATH | |
:: 4. Change the version number if you need to | |
:: | |
:: Then you can run Leiningen from the Windows command line just by typing: | |
:: | |
:: lein [args] | |
:: | |
@echo off | |
:: The directory of this batch file | |
set DIRPATH=%~dp0 | |
:: Change the version if you need to | |
set VERSION=2.0.0 | |
:: Java must also be on the PATH | |
call java -cp %DIRPATH%leiningen-%VERSION%-standalone.jar clojure.main -m leiningen.core.main %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment