Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initialization script now running automatically on invocation of cloj…

…ure:repl mojo
  • Loading branch information...
commit b7cec2853820431e9142f6695f16213db292ceab 1 parent e978d2e
@alexott alexott authored
Showing with 5 additions and 4 deletions.
  1. +0 −2  README.markdown
  2. +2 −2 pom.xml
  3. +3 −0  script/run.clj
View
2  README.markdown
@@ -44,8 +44,6 @@ This is minimally tested. Let me know if you have problems.
* Make sure you have Maven (http://maven.apache.org/) installed.
* Run `mvn clojure:repl` to launch Clojure REPL (maven will download all necessary
dependencies).
-* Execute `(require 'labrepl) (set! *print-length* 100) (labrepl/-main)` to launch web
- server.
* Browse to localhost:8080 for instructions.
* Press Ctrl+D to exit the repl when you are done.
View
4 pom.xml
@@ -19,14 +19,14 @@
<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>clojure-maven-plugin</artifactId>
- <version>1.3</version>
+ <version>1.3.2</version>
<configuration>
<sourceDirectories>
<sourceDirectory>src</sourceDirectory>
</sourceDirectories>
<clojureOptions>-Xmx1G</clojureOptions>
<runWithTests>false</runWithTests>
-<!-- <script>script/run.clj</script>-->
+ <replScript>script/run.clj</replScript>
</configuration>
</plugin>
</plugins>
View
3  script/run.clj
@@ -0,0 +1,3 @@
+(require 'labrepl)
+(set! *print-length* 100)
+(labrepl/-main)
Please sign in to comment.
Something went wrong with that request. Please try again.