Re: building new contrib against a specific clojure jar

2010-09-23 Thread Sean Corfield
On Thu, Sep 23, 2010 at 1:40 AM, Andy Fingerhut
 wrote:
> OK, one more quick hack I've found -- again, a hack, not a long term
> solution.  If you want to create a Leiningen project that uses the latest
> clojure and contrib, read on.  I couldn't figure out what to use in
> project.clj unless I renamed this file first.
...
>  :dependencies [[org.clojure/clojure "1.3.0-master-SNAPSHOT"]
>                 [org.clojure.contrib/complete "1.3.1-SNAPSHOT"]])

According to another thread, the following works (but is "technically wrong"):

  :dependencies [[org.clojure/clojure "1.3.0-master-SNAPSHOT"]
                 [org.clojure.contrib/complete "1.3.1-SNAPSHOT"
:classifier "bin"]])

-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-23 Thread Andy Fingerhut
OK, one more quick hack I've found -- again, a hack, not a long term  
solution.  If you want to create a Leiningen project that uses the  
latest clojure and contrib, read on.  I couldn't figure out what to  
use in project.clj unless I renamed this file first.


% mv ~/.m2/repository/org/clojure/contrib/complete/1.3.1-SNAPSHOT/ 
complete-1.3.1-SNAPSHOT-bin.jar ~/.m2/repository/org/clojure/contrib/ 
complete/1.3.1-SNAPSHOT/complete-1.3.1-SNAPSHOT.jar

% lein new myproj
% cd myproj

Now edit project.clj file so its :dependencies look like the one below.

  :dependencies [[org.clojure/clojure "1.3.0-master-SNAPSHOT"]
 [org.clojure.contrib/complete "1.3.1-SNAPSHOT"]])

Out of curiosity, I tried adding swank-clojure 1.2.1 in :dev- 
dependencies, but I got a run time exception when trying 'lein  
swank'.  Not too surprising.  'lein repl' will have to do for now.


Andy

On Sep 22, 2010, at 9:10 PM, Andy Fingerhut wrote:

OK, it appears one more line of change allows clojure-contrib latest  
as of today to build with clojure 1.3.0-master-SNAPSHOT.  See inline  
below for slightly modified instructions that worked for me on both  
OS X and Ubuntu Linux.


On Sep 22, 2010, at 6:16 PM, Andy Fingerhut wrote:

So I'm trying to start from a Mac OS X 10.5.8 system with java and  
mvn installed, but not Clojure, and with no Maven repo (i.e. ~/.m2  
does not exist yet), and trying to build the latest Clojure and  
contrib from the git repos using something as close to the  
recommended instructions that comes in those repos as I can find,  
plus what I've learned from this thread.  I've gotten the latest  
Clojure to build and install in ~/.m2, but when I try to use that  
clojure-1.3.0-master-SNAPSHOT.jar to build contrib, it fails.


Here are the steps I took to build Clojure:

% git clone http://github.com/clojure/clojure.git
% cd clojure

[ downloaded maven-ant-tasks-2.1.1.jar and saved it here: /Users/ 
Shared/sw/maven-ant-tasks-2.1.1.jar ]


% ant -lib /Users/Shared/sw/maven-ant-tasks-2.1.1.jar ci-build

Verified that I now have an ~/.m2 directory tree, and it contains  
this file, among others:


~/.m2/repository/org/clojure/clojure/1.3.0-master-SNAPSHOT/ 
clojure-1.3.0-master-SNAPSHOT.jar


Now try to use that to build contrib using these commands:

% cd ..
% git clone http://github.com/clojure/clojure-contrib.git
% cd clojure-contrib


Now do this with the attached patch file:

% patch -p1 < clojure-contrib-patch.txt
% mvn install

After that, I had clojure, contrib, and a bunch of other  
dependencies in my Maven repo in ~/.m2


I'm guessing that the "patch" step above will soon be unnecessary  
when the contrib maintainers decide how best to improve it.  I'm  
just going for the quick and dirty fix here.


Andy





--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-23 Thread Andy Fingerhut
OK, it appears one more line of change allows clojure-contrib latest  
as of today to build with clojure 1.3.0-master-SNAPSHOT.  See inline  
below for slightly modified instructions that worked for me on both OS  
X and Ubuntu Linux.


On Sep 22, 2010, at 6:16 PM, Andy Fingerhut wrote:

So I'm trying to start from a Mac OS X 10.5.8 system with java and  
mvn installed, but not Clojure, and with no Maven repo (i.e. ~/.m2  
does not exist yet), and trying to build the latest Clojure and  
contrib from the git repos using something as close to the  
recommended instructions that comes in those repos as I can find,  
plus what I've learned from this thread.  I've gotten the latest  
Clojure to build and install in ~/.m2, but when I try to use that  
clojure-1.3.0-master-SNAPSHOT.jar to build contrib, it fails.


Here are the steps I took to build Clojure:

% git clone http://github.com/clojure/clojure.git
% cd clojure

[ downloaded maven-ant-tasks-2.1.1.jar and saved it here: /Users/ 
Shared/sw/maven-ant-tasks-2.1.1.jar ]


% ant -lib /Users/Shared/sw/maven-ant-tasks-2.1.1.jar ci-build

Verified that I now have an ~/.m2 directory tree, and it contains  
this file, among others:


~/.m2/repository/org/clojure/clojure/1.3.0-master-SNAPSHOT/ 
clojure-1.3.0-master-SNAPSHOT.jar


Now try to use that to build contrib using these commands:

% cd ..
% git clone http://github.com/clojure/clojure-contrib.git
% cd clojure-contrib


Now do this with the attached patch file:

% patch -p1 < clojure-contrib-patch.txt
% mvn install

After that, I had clojure, contrib, and a bunch of other dependencies  
in my Maven repo in ~/.m2


I'm guessing that the "patch" step above will soon be unnecessary when  
the contrib maintainers decide how best to improve it.  I'm just going  
for the quick and dirty fix here.


Andy


diff --git 
a/modules/accumulators/src/main/clojure/clojure/contrib/accumulators.clj 
b/modules/accumulators/src/main/clojure/clojure/contrib/accumulators.clj
index 55073e3..12bb7c6 100644
--- a/modules/accumulators/src/main/clojure/clojure/contrib/accumulators.clj
+++ b/modules/accumulators/src/main/clojure/clojure/contrib/accumulators.clj
@@ -24,6 +24,7 @@
accumulators."}
   clojure.contrib.accumulators
   (:refer-clojure :exclude (deftype))
+  (:use [clojure.set :only (union)])
   (:use [clojure.contrib.types :only (deftype)])
   (:use [clojure.contrib.def :only (defvar defvar- defmacro-)])
   (:require [clojure.contrib.generic.arithmetic :as ga]))
diff --git a/modules/condition/pom.xml b/modules/condition/pom.xml
index 0a2d9e5..751f48f 100644
--- a/modules/condition/pom.xml
+++ b/modules/condition/pom.xml
@@ -13,7 +13,7 @@
 
   org.clojure
   clojure
-  1.2.0
+  1.3.0-master-SNAPSHOT
 
 
   org.clojure.contrib
diff --git a/modules/fnmap/pom.xml b/modules/fnmap/pom.xml
index d6b13ff..908f4fc 100644
--- a/modules/fnmap/pom.xml
+++ b/modules/fnmap/pom.xml
@@ -13,7 +13,7 @@
 
   org.clojure
   clojure
-  1.2.0
+  1.3.0-master-SNAPSHOT
 
   
   
diff --git a/modules/jmx/pom.xml b/modules/jmx/pom.xml
index ef49604..8e7233b 100644
--- a/modules/jmx/pom.xml
+++ b/modules/jmx/pom.xml
@@ -13,7 +13,7 @@
 
   org.clojure
   clojure
-  1.2.0
+  1.3.0-master-SNAPSHOT
 
 
   org.clojure.contrib
diff --git a/modules/parent/pom.xml b/modules/parent/pom.xml
index 6965302..1903aa2 100644
--- a/modules/parent/pom.xml
+++ b/modules/parent/pom.xml
@@ -3,7 +3,7 @@
 http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   
-1.2.0
+1.3.0-master-SNAPSHOT
 UTF-8
   
   org.clojure.contrib
diff --git a/modules/repl-ln/pom.xml b/modules/repl-ln/pom.xml
index 143de26..a823f36 100644
--- a/modules/repl-ln/pom.xml
+++ b/modules/repl-ln/pom.xml
@@ -13,7 +13,7 @@
 
   org.clojure
   clojure
-  1.2.0
+  1.3.0-master-SNAPSHOT
 
 
   org.clojure.contrib


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Re: building new contrib against a specific clojure jar

2010-09-22 Thread Andy Fingerhut
So I'm trying to start from a Mac OS X 10.5.8 system with java and mvn  
installed, but not Clojure, and with no Maven repo (i.e. ~/.m2 does  
not exist yet), and trying to build the latest Clojure and contrib  
from the git repos using something as close to the recommended  
instructions that comes in those repos as I can find, plus what I've  
learned from this thread.  I've gotten the latest Clojure to build and  
install in ~/.m2, but when I try to use that clojure-1.3.0-master- 
SNAPSHOT.jar to build contrib, it fails.


Here are the steps I took to build Clojure:

% git clone http://github.com/clojure/clojure.git
% cd clojure

[ downloaded maven-ant-tasks-2.1.1.jar and saved it here: /Users/ 
Shared/sw/maven-ant-tasks-2.1.1.jar ]


% ant -lib /Users/Shared/sw/maven-ant-tasks-2.1.1.jar ci-build

Verified that I now have an ~/.m2 directory tree, and it contains this  
file, among others:


~/.m2/repository/org/clojure/clojure/1.3.0-master-SNAPSHOT/ 
clojure-1.3.0-master-SNAPSHOT.jar


Now try to use that to build contrib using these commands:

% cd ..
% git clone http://github.com/clojure/clojure-contrib.git
% cd clojure-contrib

I tried Stuart Sierra's suggestion from his Sep 2 email in this thread  
to edit clojure-contrib/modules/parent/
pom.xml to change 1.2.0 to 1.3.0-master-SNAPSHOT.  I noticed that it  
still pulled down Clojure 1.2.0 during the build, so I looked for  
other places in contrib that might be causing that, and found these:


% find . -name '*.xml' | xargs grep '1\.2'
./modules/condition/pom.xml:  1.2.0
./modules/fnmap/pom.xml:  1.2.0
./modules/jmx/pom.xml:  1.2.0
./modules/parent/pom.xml:1.2.0
./modules/repl-ln/pom.xml:  1.2.0

They all appeared to be specifying particular versions of Clojure, so  
I decided to use a single command to replace them all in one go:


% find . -name '*.xml' | xargs perl -pi'.orig' -e 's/1.2.0/1.3.0- 
master-SNAPSHOT/'


Then I tried building with this command:

% mvn -e install

This downloaded *lots* of stuff into my Maven repo, and built lots of  
contrib modules, but it failed after about 8 minutes.  I've appended  
the errors from the end of the output below.


Any steps I'm doing wrong?

Thanks,
Andy



[INFO]  


[INFO] Building Unnamed - org.clojure.contrib:monads:jar:1.3.1-SNAPSHOT
[INFO]task-segment: [install]
[INFO]  


[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] skip non existing resourceDirectory /Users/andy/sw/git/clojure- 
contrib/modules/monads/src/examples/clojure

[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [clojure:compile {execution: compile-clojure}]
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: /Users/andy/sw/git/clojure-contrib/ 
modules/monads/target/surefire-reports


---
 T E S T S
---
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [clojure:test {execution: test-clojure}]
Exception in thread "main" java.lang.ClassNotFoundException:  
clojure.set, compiling:(accumulators.clj:121)

at clojure.lang.Compiler.analyze(Compiler.java:5777)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$StaticInvokeExpr.parse(Compiler.java:3093)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3317)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5945)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3331)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5945)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5131)
at clojure.lang.Compiler$FnMethod.parse(Compiler.java:4639)
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3449)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5941)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:5931)
at clojure.lang.Compiler.analyze(Compiler.java:5762)
at clojure.lang.Compiler.analyze(Compiler.java:5723)
at clojure.lang.Compiler$HostExpr$Parser.parse(Compiler.java:847)
at clojure.lang.Com

Re: building new contrib against a specific clojure jar

2010-09-22 Thread Sean Corfield
On Wed, Sep 22, 2010 at 2:01 PM, Stuart Sierra
 wrote:
> The Clojure build doesn't fully support Maven.  You need to run this:
>
>    ant -lib /path/to/maven-ant-tasks.jar ci-build

OK, good to know. Manually pushing the JAR into the local repo worked
and I was then able to build Clojure contrib master against the
Clojure master so I'm good to go now... on my laptop at least. I'll go
through this process on my desktop tomorrow and try that ant/maven
trick.
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-22 Thread Stuart Sierra
On Sep 22, 3:45 pm, Sean Corfield  wrote:
> Having pulled Clojure master and done: ant, mvn install I saw that the
> jar in the repository was very small - pretty much empty in fact.

The Clojure build doesn't fully support Maven.  You need to run this:

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

Get maven-ant-tasks.jar here: http://maven.apache.org/ant-tasks/download.html

-S

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-22 Thread Stuart Sierra
On Sep 22, 3:36 pm, Sean Corfield  wrote:
> That seems to imply there should be a src folder? Am I supposed to
> copy Clojure into the same folder as contrib in order to do a build?

No, that's a default configuration inherited by all the sub-modules.

-S

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-22 Thread Sean Corfield
Found the problem!

Having pulled Clojure master and done: ant, mvn install I saw that the
jar in the repository was very small - pretty much empty in fact. I
manually copied the clojure-1.3.0-master-SNAPSHOT.jar to the repo and
was able to mvn compile contrib just fine.

On Wed, Sep 22, 2010 at 12:36 PM, Sean Corfield  wrote:
> On Tue, Sep 21, 2010 at 9:58 PM, Sean Corfield  wrote:
>> * If I build contrib master against Clojure 1.2.0 (which works), how
>> do I specify the dependencies in lein?
>
> This got answered (by Justin) in another thread so now I'm down to
> just this question:
>
>> * How do I successfully build contrib master against Clojure
>> 1.3.0-master-SNAPSHOT?
>
> Here's the top of my pom.xml:
>
> 
>
> http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>  4.0.0
>  
>    1.3.0-master-SNAPSHOT
>    
>    UTF-8
>  
>  org.clojure.contrib
>  parent
>  1.3.1-SNAPSHOT
>  pom
>  Clojure Contrib parent module
>  
>    
>      org.clojure
>      clojure
>      ${clojure.version}
>    
>  
>
> I notice below that it has:
>
>  
>    
>      
>        src/main/clojure
>      
>      
>        src/examples/clojure
>      
>    
>    
>      
>        src/test/clojure
>      
>    
>
> That seems to imply there should be a src folder? Am I supposed to
> copy Clojure into the same folder as contrib in order to do a build?
> --
> Sean A Corfield -- (904) 302-SEAN
> Railo Technologies, Inc. -- http://getrailo.com/
> An Architect's View -- http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>



-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-22 Thread Sean Corfield
On Tue, Sep 21, 2010 at 9:58 PM, Sean Corfield  wrote:
> * If I build contrib master against Clojure 1.2.0 (which works), how
> do I specify the dependencies in lein?

This got answered (by Justin) in another thread so now I'm down to
just this question:

> * How do I successfully build contrib master against Clojure
> 1.3.0-master-SNAPSHOT?

Here's the top of my pom.xml:



http://maven.apache.org/POM/4.0.0";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
1.3.0-master-SNAPSHOT

UTF-8
  
  org.clojure.contrib
  parent
  1.3.1-SNAPSHOT
  pom
  Clojure Contrib parent module
  

  org.clojure
  clojure
  ${clojure.version}

  

I notice below that it has:

  

  
src/main/clojure
  
  
src/examples/clojure
  


  
src/test/clojure
  


That seems to imply there should be a src folder? Am I supposed to
copy Clojure into the same folder as contrib in order to do a build?
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-21 Thread Sean Corfield
Inspired by Rich asking folks to try 1.3 / master at the Bay Area
meetup last night...

On Thu, Sep 2, 2010 at 2:24 PM, Stuart Sierra
 wrote:
> You'll need to adjust the version numbers for the Clojure
> dependencies.  These are configured in clojure-contrib/modules/parent/
> pom.xml at the line:
>
>  
>    1.2.0
>
> Change that to 1.3.0-SNAPSHOT for the latest snapshot (including the
> ones you build locally) or set it to a specific snapshot version
> number from 
> http://build.clojure.org/snapshots/org/clojure/clojure/1.3.0-master-SNAPSHOT/

I tried that with 1.3.0-master-SNAPSHOT and got:

[INFO] [clojure:compile {execution: compile-clojure}]
Exception in thread "main" java.lang.NoClassDefFoundError: clojure/lang/Compile

I cloned Clojure master and did ant, mvn install and I'm able to run
lein deps with :dependencies [[org.clojure/clojure
"1.3.0-master-SNAPSHOT"]] and projects run fine. So that part seems
fine.

I then got Clojure contrib master to build / install with Clojure
1.2.0 but then I couldn't figure out how to specify the dependency in
lein - it kept going off looking for remote versions of the
SNAPSHOT... Are we supposed to depend on specific modules now or is
there an overall contrib dependency we can use?

So, I guess, two questions:
* If I build contrib master against Clojure 1.2.0 (which works), how
do I specify the dependencies in lein?
* How do I successfully build contrib master against Clojure
1.3.0-master-SNAPSHOT?
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-03 Thread Stuart Sierra
On Sep 2, 5:35 pm, braver  wrote:
> Can it be done on the command line, with -Dclojure.version=... ?

Yes!

And a correction: Clojure snapshots are labeled 1.3.0-master-SNAPSHOT

-S

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-02 Thread braver
On Sep 2, 5:24 pm, Stuart Sierra  wrote:
> You'll need to adjust the version numbers for the Clojure
> dependencies.  These are configured in clojure-contrib/modules/parent/
> pom.xml at the line:
>
>   
>     1.2.0
>
> Change that to 1.3.0-SNAPSHOT for the latest snapshot (including the
> ones you build locally) or set it to a specific snapshot version
> number 
> fromhttp://build.clojure.org/snapshots/org/clojure/clojure/1.3.0-master-S...

Can it be done on the command line, with -Dclojure.version=... ?

-- Alexy

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en


Re: building new contrib against a specific clojure jar

2010-09-02 Thread Stuart Sierra
You'll need to adjust the version numbers for the Clojure
dependencies.  These are configured in clojure-contrib/modules/parent/
pom.xml at the line:

  
1.2.0

Change that to 1.3.0-SNAPSHOT for the latest snapshot (including the
ones you build locally) or set it to a specific snapshot version
number from 
http://build.clojure.org/snapshots/org/clojure/clojure/1.3.0-master-SNAPSHOT/

-S




On Sep 2, 4:36 pm, braver  wrote:
> I usually git pull clojure, ant, mvn install, then git pull and build
> clojure-contrib against it.  There used to be a -Dclojure.jar=...
> option mentioned in README.txt for the contrib.  The new modular
> version, however, doesn't mention it, just saying, use these contrib
> versions for those clojure ones, such as master for master.  Just
> doing mvn compile seems to pull clojure-1.2.0.  How do we build the
> new contrib explicitly against a given clojure jar?
>
> -- Alexy

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en