Skip to content

Commit

Permalink
cleanup prior to building initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarthalloway committed Apr 27, 2011
1 parent 2414df0 commit d4c0d49
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignoreREADME.md
@@ -0,0 +1 @@
script/maven-classpath
15 changes: 11 additions & 4 deletions README.md
Expand Up @@ -7,11 +7,18 @@ This API will change. You have been warned.

See the namespace comment for clojure.test.generative.

### "Installation"
## Installation

Requires development edge of Clojure 1.3.
You will need to set clojure.home in your maven .m2/settings.xml.
test.generative is not yet available in Maven Central.
test.generative is not yet available in Maven Central. To build

mvn package

## Running Examples

mvn dependency:build-classpath -Dmdep.outputFile=script/maven-classpath
script/examples

Note the examples will fail until http://dev.clojure.org/jira/browse/CLJ-426 is fixed!

## License

Expand Down
4 changes: 1 addition & 3 deletions pom.xml
Expand Up @@ -58,9 +58,7 @@
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
<version>1.3</version>
<scope>system</scope>
<systemPath>${clojure.home}/clojure.jar</systemPath>
<version>1.3.0-alpha6</version>
</dependency>
<dependency>
<groupId>org.clojure</groupId>
Expand Down
7 changes: 7 additions & 0 deletions script/examples
@@ -0,0 +1,7 @@
#!/bin/sh
# Note: First you must run mvn dependency:build-classpath -Dmdep.outputFile=script/maven-classpath
CLASSPATH=src/main/clojure:src/test/clojure:src/examples/clojure:`cat script/maven-classpath`

java -server -Xmx2GB -cp $CLASSPATH clojure.main -i script/examples.clj


14 changes: 14 additions & 0 deletions script/examples.clj
@@ -0,0 +1,14 @@
(use '[clojure.test.generative])
(try
(println "Testing on" *cores* "cores for" *msec* "msec.")
(let [futures (test-dirs "src/examples/clojure")]
(doseq [f futures]
@f))
(catch Throwable t
(.printStackTrace t)
(System/exit -1))
(finally
(shutdown-agents)))
(System/exit 0)


1 change: 1 addition & 0 deletions script/maven-classpath
@@ -0,0 +1 @@
/Users/stu/.m2/repository/org/clojure/clojure/1.3.0-alpha6/clojure-1.3.0-alpha6.jar:/Users/stu/.m2/repository/org/clojure/java.classpath/0.1.0/java.classpath-0.1.0.jar:/Users/stu/.m2/repository/org/clojure/tools.namespace/0.1.0/tools.namespace-0.1.0.jar
7 changes: 7 additions & 0 deletions script/repl
@@ -0,0 +1,7 @@
#!/bin/sh
# Note: First you must run mvn dependency:build-classpath -Dmdep.outputFile=script/maven-classpath
CLASSPATH=src/main/clojure:src/test/clojure:src/examples/clojure:`cat script/maven-classpath`

java -server -Xmx2GB -cp $CLASSPATH clojure.main


File renamed without changes.

0 comments on commit d4c0d49

Please sign in to comment.