Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Got uberjar working for leiningen

  • Loading branch information...
commit 1c09d0132762380b30a51c60f16facb8d466715d 1 parent acbeef4
unclebob authored
View
2  .gitignore
@@ -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
BIN  clojureOrbit-standalone.jar
Binary file not shown
View
4 project.clj
@@ -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
2  src/orbit/run.clj
@@ -1,3 +1,3 @@
-(ns orbit)
+(ns orbit.run)
(use 'orbit.world)
(run-world)
View
7 src/orbitmain.clj
@@ -0,0 +1,7 @@
+(ns orbitmain
+ (:gen-class))
+
+(use 'orbit.world)
+
+(defn -main [& args]
+ (run-world))
Please sign in to comment.
Something went wrong with that request. Please try again.