Skip to content

Instantly share code, notes, and snippets.

@stuartwakefield
Last active December 13, 2015 18:08
Show Gist options
  • Save stuartwakefield/4952708 to your computer and use it in GitHub Desktop.
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
:: 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