Skip to content

Commit

Permalink
initialization script now running automatically on invocation of cloj…
Browse files Browse the repository at this point in the history
…ure:repl mojo
  • Loading branch information
alexott committed Mar 24, 2010
1 parent e978d2e commit b7cec28
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README.markdown
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -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>
Expand Down
3 changes: 3 additions & 0 deletions script/run.clj
@@ -0,0 +1,3 @@
(require 'labrepl)
(set! *print-length* 100)
(labrepl/-main)

0 comments on commit b7cec28

Please sign in to comment.