Skip to content

Instantly share code, notes, and snippets.

@leonelag
Created May 17, 2012 19:48
Show Gist options
  • Save leonelag/2721200 to your computer and use it in GitHub Desktop.
Save leonelag/2721200 to your computer and use it in GitHub Desktop.
Quickly start a swank-clojure server outside a lein project.
#!/bin/sh
LOCAL_REPO="C:\Users\LLGD\work\maven-repository"
CLOJURE_JAR="$LOCAL_REPO\org\clojure\clojure\1.4.0\clojure-1.4.0.jar"
SWANK_JAR="$LOCAL_REPO\swank-clojure\swank-clojure\1.4.2\swank-clojure-1.4.2.jar"
CLJ_STACKTRACE="$LOCAL_REPO\clj-stacktrace\clj-stacktrace\0.2.4\clj-stacktrace-0.2.4.jar"
$JAVA_HOME/bin/java.exe -cp "$CLJ_STACKTRACE;$SWANK_JAR;$CLOJURE_JAR" clojure.main --eval "(require '[swank.swank])(swank.swank/start-server :port 8000)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment