Skip to content
Browse files

Created incanter.main that launches Alan Dipert's swingrepl. Using 'l…

…ein uberjar' will create incanter-standalone.jar, which will launch a Swing-based REPL when double-clicked.
  • Loading branch information...
1 parent bf37fdf commit c5b067b03b5d00e417907c62ec6d2762c43b0985 @liebke liebke committed Jun 12, 2010
Showing with 13 additions and 2 deletions.
  1. +4 −2 project.clj
  2. +9 −0 src/incanter/main.clj
View
6 project.clj
@@ -8,8 +8,10 @@
[incanter/incanter-mongodb "1.2.3-SNAPSHOT"]
[incanter/incanter-pdf "1.2.3-SNAPSHOT"]
[incanter/incanter-latex "1.2.3-SNAPSHOT"]
- [incanter/incanter-excel "1.2.3-SNAPSHOT"]]
+ [incanter/incanter-excel "1.2.3-SNAPSHOT"]
+ [swingrepl "1.0.0-SNAPSHOT"]]
:dev-dependencies [[lein-clojars "0.5.0-SNAPSHOT"]
[swank-clojure "1.2.1"]
[jline "0.9.94"]]
- :repositories {"clojure-releases" "http://build.clojure.org/releases"})
+ :repositories {"clojure-releases" "http://build.clojure.org/releases"}
+ :main incanter.main)
View
9 src/incanter/main.clj
@@ -0,0 +1,9 @@
+(ns incanter.main
+ (:require org.dipert.swingrepl.main)
+ (:gen-class))
+
+(defn -main
+ [& args]
+ (org.dipert.swingrepl.main/make-repl-jframe
+ {:on-close javax.swing.JFrame/EXIT_ON_CLOSE}))
+

0 comments on commit c5b067b

Please sign in to comment.
Something went wrong with that request. Please try again.