Skip to content

Commit

Permalink
Simplify building against a custom Clojure JAR.
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Brenk <mail@andreasbrenk.com>
  • Loading branch information
abrenk committed Oct 4, 2010
1 parent f6ef99e commit 21a8ba7
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 20 deletions.
15 changes: 2 additions & 13 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,8 @@ You can specify -Dclojure.version=VERSION on the command line to select a differ

= Building Against a Custom Clojure JAR =

To build against a customized Clojure JAR, build *Clojure* like this:

1. Modify the Clojure sources with your custom changes

2. Set a custom version number in src/clj/clojure/version.properties

3. Download maven-ant-tasks.jar from http://maven.apache.org/ant-tasks/download.html

4. In the Clojure source directory, run:

ant -lib /path/to/maven-ant-tasks.jar ci-build

THEN, build clojure-contrib with -Dclojure.version=YOUR_CUSTOM_VERSION
To build against a customized Clojure JAR, you can specify
-Dclojure.jar=/absolute/path/to/clojure.jar on the command line.



Expand Down
39 changes: 32 additions & 7 deletions modules/parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@
<version>1.3.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Clojure Contrib parent module</name>
<dependencies>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
<version>${clojure.version}</version>
</dependency>
</dependencies>
<build>
<resources>
<resource>
Expand Down Expand Up @@ -64,6 +57,38 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<dependencies>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
<version>${clojure.version}</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>custom-clojure</id>
<activation>
<property>
<name>clojure.jar</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.clojure</groupId>
<artifactId>clojure</artifactId>
<version>CUSTOM</version>
<scope>system</scope>
<systemPath>${clojure.jar}</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
<repositories>
<repository>
<id>clojure-snapshots</id>
Expand Down

0 comments on commit 21a8ba7

Please sign in to comment.