Permalink
Browse files

Got uberjar working for leiningen

  • Loading branch information...
1 parent acbeef4 commit 1c09d0132762380b30a51c60f16facb8d466715d unclebob committed Jun 4, 2010
Showing with 19 additions and 4 deletions.
  1. +2 −0 .gitignore
  2. +6 −2 README
  3. BIN clojureOrbit-standalone.jar
  4. +3 −1 project.clj
  5. +1 −1 src/orbit/run.clj
  6. +7 −0 src/orbitmain.clj
View
@@ -1,3 +1,5 @@
*.iml
+classes/*
+lib/*
.idea/*
View
8 README
@@ -2,8 +2,12 @@ Simple Orbital Simulator written in Clojure.
Robert C. Martin
2 Jun 2010
-Executing with the command: java -cp <CLJLIB>/clojure.jar:<CLJLIB>clojure-contrib.jar clojure.main src/orbit/run.clj
-where CLJLIB is the directory that holds the jar files for clojure.
+To run:
+ java -jar clojureOrbit-standalone.jar
+
+or to execute wihout the jar:
+ java -cp <CLJLIB>/clojure.jar:<CLJLIB>clojure-contrib.jar clojure.main src/orbit/run.clj
+ where CLJLIB is the directory that holds the jar files for clojure.
or, with leiningen:
View
Binary file not shown.
View
@@ -4,5 +4,7 @@
:dependencies [[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.1.0"]]
:dev-dependencies [[swank-clojure "1.2.0-SNAPSHOT"]
- [leiningen/lein-swank "1.2.0-SNAPSHOT"]])
+ [leiningen/lein-swank "1.2.0-SNAPSHOT"]]
+ :main orbitmain
+)
View
@@ -1,3 +1,3 @@
-(ns orbit)
+(ns orbit.run)
(use 'orbit.world)
(run-world)
View
@@ -0,0 +1,7 @@
+(ns orbitmain
+ (:gen-class))
+
+(use 'orbit.world)
+
+(defn -main [& args]
+ (run-world))

0 comments on commit 1c09d01

Please sign in to comment.