Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-23 Thread Alex Osborne
Hi Eric,

Eric Thorsen ethor...@enclojure.org writes:

 This is more of a maven question probably, but I have an app that
 needs versions of the jars built with jdk 1.5 and I'm using the
 http://build.clojure.org/snapshots repo where they appear to be built
 with 1.6.  Are there versions (or plans to support 1.5 versions) in a
 maven repo somewhere?

Have you actually tested them?  Which jars in particular are you talking
about?

The 1.2.0-master jars are working fine here with 1.5:

$ wget 
http://build.clojure.org/snapshots/org/clojure/clojure/1.2.0-master-SNAPSHOT/clojure-1.2.0-master-20100319.170114-16.jar
$ wget 
http://build.clojure.org/snapshots/org/clojure/clojure-contrib/1.2.0-master-SNAPSHOT/clojure-contrib-1.2.0-master-20100122.191106-1.jar
$ java -cp 
clojure-1.2.0-master-20100319.170114-16.jar:clojure-contrib-1.2.0-master-20100122.191106-1.jar
 clojure.main
Clojure 1.2.0-master-SNAPSHOT
user= (require 'clojure.contrib.seq-utils)
nil
user= (System/getProperty java.vm.version)
1.5.0_12-b04
user=

Also even 1.5.0_01 and an older snapshot from January:

$ /opt/java/jdk1.5.0_01/bin/java -jar clojure-1.2.0-master-20100111.160127-1.jar
Clojure 1.2.0-master-SNAPSHOT
user=

Obviously 1.4 doesn't work but I couldn't trigger any problems with
1.5.

Is there something in particular you were doing?

Cheers,

Alex

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-23 Thread Eric Thorsen
I was grabbing the snapshots of clojure and clojure-contrib and using
them in a Netbeans plugin (which needs 1.5. Netbeans just crashes in
an RT call).

(System/getProperty java.vm.version)
The above returns the running jvm version.  I was looking at the jar
manifest to see what it was built with which is where I saw the 1.6
reference for clojure-contrib.
Having the target=1.5 property set for the clojure-contrib build might
get me where I need to be.  I just have not had a chance to try it
yet.

Thanks,
Eric


On Mar 23, 8:06 am, Alex Osborne a...@meshy.org wrote:
 Hi Eric,

 Eric Thorsen ethor...@enclojure.org writes:
  This is more of a maven question probably, but I have an app that
  needs versions of the jars built with jdk 1.5 and I'm using the
 http://build.clojure.org/snapshotsrepo where they appear to be built
  with 1.6.  Are there versions (or plans to support 1.5 versions) in a
  maven repo somewhere?

 Have you actually tested them?  Which jars in particular are you talking
 about?

 The 1.2.0-master jars are working fine here with 1.5:

 $ wgethttp://build.clojure.org/snapshots/org/clojure/clojure/1.2.0-master-S...
 $ wgethttp://build.clojure.org/snapshots/org/clojure/clojure-contrib/1.2.0-...
 $ java -cp 
 clojure-1.2.0-master-20100319.170114-16.jar:clojure-contrib-1.2.0-master-20 
 100122.191106-1.jar clojure.main
 Clojure 1.2.0-master-SNAPSHOT
 user= (require 'clojure.contrib.seq-utils)
 nil
 user= (System/getProperty java.vm.version)
 1.5.0_12-b04
 user=

 Also even 1.5.0_01 and an older snapshot from January:

 $ /opt/java/jdk1.5.0_01/bin/java -jar 
 clojure-1.2.0-master-20100111.160127-1.jar
 Clojure 1.2.0-master-SNAPSHOT
 user=

 Obviously 1.4 doesn't work but I couldn't trigger any problems with
 1.5.

 Is there something in particular you were doing?

 Cheers,

 Alex

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-23 Thread Stuart Sierra
On Mar 23, 9:08 am, Eric Thorsen eric.thor...@gmail.com wrote:
 Having the target=1.5 property set for the clojure-contrib build might
 get me where I need to be.  I just have not had a chance to try it
 yet.

The clojure-contrib build does not call javac, so it shouldn't matter.

-SS

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-23 Thread Stuart Sierra
On Mar 23, 9:08 am, Eric Thorsen eric.thor...@gmail.com wrote:
 The above returns the running jvm version.  I was looking at the jar
 manifest to see what it was built with which is where I saw the 1.6
 reference for clojure-contrib.

Oh, it's the JAR manifest that's the problem?  Maybe this will help:
http://maven.apache.org/guides/mini/guide-manifest.html

-SS

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-23 Thread Stuart Sierra
On Mar 23, 9:43 am, Stuart Sierra the.stuart.sie...@gmail.com wrote:
 If the JAR manifest is the problem, the following pom.xml lines will
 change it:

Yet another option is to supply a completely custom manifest file that
omits the Build-Jdk line altogether.

But I still think the correct solution is to install JDK 1.5 on
build.clojure.org.
-SS

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-22 Thread Rich Hickey


On Mar 21, 2010, at 8:50 PM, Stuart Sierra wrote:


No, but you can change the configs and recompile.

Clojure itself uses Ant, so ant on a machine with only Java 1.5
should do the trick.  To install that custom JAR in your local Maven
repository, download the Maven Ant Tasks JAR and run:
ant -lib /path/to/maven-ant-tasks.jar ci-build

Contrib uses Maven, so add thes lines to its pom.xml in the plugins
section:

 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
   source1.5/source
   target1.5/target
   /configuration
 /plugin

Then mvn install to build the JARs and put them in your local
repository.



Why isn't this in the default build? Clojure targets 1.5, and so  
should contrib.


Rich

--
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

To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or 
reply to this email with the words REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-22 Thread Stuart Sierra
By the way, Ant has the same problem: you can specify a target JDK
version in the javac task, but not the java task.  So the Clojure
compiler runs with the default java executable on the local machine.

-SS


On Mar 22, 11:54 am, Stuart Sierra the.stuart.sie...@gmail.com
wrote:
 Actually, this is more complicated than I thought.  The build
 processes will use whatever default version of Java is installed
 locally.

 Maven has config options for the Java *compiler* version to use, but
 that will only work for .java source files (of which there are non in
 contrib).  The version of Java under which the Clojure compiler runs
 is just the local java executable.

 The solution, I suppose, is to install Java 1.5 on the
 build.clojure.org server and force it to be the default.

 -SS

 On Mar 22, 8:48 am, Rich Hickey richhic...@gmail.com wrote:



  On Mar 21, 2010, at 8:50 PM, Stuart Sierra wrote:

   No, but you can change the configs and recompile.

   Clojure itself uses Ant, so ant on a machine with only Java 1.5
   should do the trick.  To install that custom JAR in your local Maven
   repository, download the Maven Ant Tasks JAR and run:
   ant -lib /path/to/maven-ant-tasks.jar ci-build

   Contrib uses Maven, so add thes lines to its pom.xml in the plugins
   section:

    plugin
      groupIdorg.apache.maven.plugins/groupId
      artifactIdmaven-compiler-plugin/artifactId
      configuration
          source1.5/source
          target1.5/target
      /configuration
    /plugin

   Then mvn install to build the JARs and put them in your local
   repository.

  Why isn't this in the default build? Clojure targets 1.5, and so  
  should contrib.

  Rich

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-22 Thread Rich Hickey
Do we really care what they are built with, or only that they target  
1.5? (i.e. javac's  -target option)


On Mar 22, 2010, at 11:54 AM, Stuart Sierra wrote:


Actually, this is more complicated than I thought.  The build
processes will use whatever default version of Java is installed
locally.

Maven has config options for the Java *compiler* version to use, but
that will only work for .java source files (of which there are non in
contrib).  The version of Java under which the Clojure compiler runs
is just the local java executable.

The solution, I suppose, is to install Java 1.5 on the
build.clojure.org server and force it to be the default.

-SS



On Mar 22, 8:48 am, Rich Hickey richhic...@gmail.com wrote:

On Mar 21, 2010, at 8:50 PM, Stuart Sierra wrote:






No, but you can change the configs and recompile.



Clojure itself uses Ant, so ant on a machine with only Java 1.5
should do the trick.  To install that custom JAR in your local Maven
repository, download the Maven Ant Tasks JAR and run:
ant -lib /path/to/maven-ant-tasks.jar ci-build


Contrib uses Maven, so add thes lines to its pom.xml in the  
plugins

section:



 plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-compiler-plugin/artifactId
   configuration
   source1.5/source
   target1.5/target
   /configuration
 /plugin



Then mvn install to build the JARs and put them in your local
repository.


Why isn't this in the default build? Clojure targets 1.5, and so
should contrib.

Rich


--
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

To unsubscribe from this group, send email to clojure 
+unsubscribegooglegroups.com or reply to this email with the words  
REMOVE ME as the subject.


--
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

To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or 
reply to this email with the words REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-22 Thread Eric Thorsen
I'll try this out since I'm stuck and wanted to get out of the
business of building my own versions of clojure/-contrib (hence the
move to maven).
What do other projects do that have maven repos with similar
contraints?  Are there separate entries in the repo?

On Mar 22, 3:53 pm, Rich Hickey richhic...@gmail.com wrote:
 Do we really care what they are built with, or only that they target  
 1.5? (i.e. javac's  -target option)

 On Mar 22, 2010, at 11:54 AM, Stuart Sierra wrote:



  Actually, this is more complicated than I thought.  The build
  processes will use whatever default version of Java is installed
  locally.

  Maven has config options for the Java *compiler* version to use, but
  that will only work for .java source files (of which there are non in
  contrib).  The version of Java under which the Clojure compiler runs
  is just the local java executable.

  The solution, I suppose, is to install Java 1.5 on the
  build.clojure.org server and force it to be the default.

  -SS

  On Mar 22, 8:48 am, Rich Hickey richhic...@gmail.com wrote:
  On Mar 21, 2010, at 8:50 PM, Stuart Sierra wrote:

  No, but you can change the configs and recompile.

  Clojure itself uses Ant, so ant on a machine with only Java 1.5
  should do the trick.  To install that custom JAR in your local Maven
  repository, download the Maven Ant Tasks JAR and run:
  ant -lib /path/to/maven-ant-tasks.jar ci-build

  Contrib uses Maven, so add thes lines to its pom.xml in the  
  plugins
  section:

   plugin
     groupIdorg.apache.maven.plugins/groupId
     artifactIdmaven-compiler-plugin/artifactId
     configuration
         source1.5/source
         target1.5/target
     /configuration
   /plugin

  Then mvn install to build the JARs and put them in your local
  repository.

  Why isn't this in the default build? Clojure targets 1.5, and so
  should contrib.

  Rich

  --
  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

  To unsubscribe from this group, send email to clojure
  +unsubscribegooglegroups.com or reply to this email with the words  
  REMOVE ME as the subject.

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-22 Thread Mark Derricutt
The new version of the maven-clojure-compiler plugin now supports the
toolchains API to solve this ( running maven under 1.6, compiling with 1.5)
but that won't help clojure itself:

You can read more about this at:

  http://maven.apache.org/guides/mini/guide-using-toolchains.html

I really need to update the README for this, and actually post a release
announcement email.

/time?


-- 
Pull me down under...

On Tue, Mar 23, 2010 at 4:54 AM, Stuart Sierra
the.stuart.sie...@gmail.comwrote:

 Actually, this is more complicated than I thought.  The build
 processes will use whatever default version of Java is installed
 locally.

 Maven has config options for the Java *compiler* version to use, but
 that will only work for .java source files (of which there are non in
 contrib).  The version of Java under which the Clojure compiler runs
 is just the local java executable.

 The solution, I suppose, is to install Java 1.5 on the
 build.clojure.org server and force it to be the default.



-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-21 Thread Stuart Sierra
No, but you can change the configs and recompile.

Clojure itself uses Ant, so ant on a machine with only Java 1.5
should do the trick.  To install that custom JAR in your local Maven
repository, download the Maven Ant Tasks JAR and run:
ant -lib /path/to/maven-ant-tasks.jar ci-build

Contrib uses Maven, so add thes lines to its pom.xml in the plugins
section:

  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
  /plugin

Then mvn install to build the JARs and put them in your local
repository.

-SS



On Mar 21, 7:32 pm, Eric Thorsen ethor...@enclojure.org wrote:
 This is more of a maven question probably, but I have an app that
 needs versions of the jars built with jdk 1.5 and I'm using 
 thehttp://build.clojure.org/snapshotsrepo where they appear to be built
 with 1.6.  Are there versions (or plans to support 1.5 versions) in a
 maven repo somewhere?

 Thanks!
 Eric

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


Re: clojure and clojure-contrib jars built with the 1.5 jdk

2010-03-21 Thread Eric Thorsen
I figured as much.  The issue for me is the Netbeans plugin must have
1.5 java and I was hoping to get these from a repo.  I suppose I can
build the 1.5 versions and publish them (somewhere).  I'll look into
this.

Thanks,
Eric


On Mar 21, 8:50 pm, Stuart Sierra the.stuart.sie...@gmail.com wrote:
 No, but you can change the configs and recompile.

 Clojure itself uses Ant, so ant on a machine with only Java 1.5
 should do the trick.  To install that custom JAR in your local Maven
 repository, download the Maven Ant Tasks JAR and run:
 ant -lib /path/to/maven-ant-tasks.jar ci-build

 Contrib uses Maven, so add thes lines to its pom.xml in the plugins
 section:

   plugin
     groupIdorg.apache.maven.plugins/groupId
     artifactIdmaven-compiler-plugin/artifactId
     configuration
         source1.5/source
         target1.5/target
     /configuration
   /plugin

 Then mvn install to build the JARs and put them in your local
 repository.

 -SS

 On Mar 21, 7:32 pm, Eric Thorsen ethor...@enclojure.org wrote:



  This is more of a maven question probably, but I have an app that
  needs versions of the jars built with jdk 1.5 and I'm using 
  thehttp://build.clojure.org/snapshotsrepowhere they appear to be built
  with 1.6.  Are there versions (or plans to support 1.5 versions) in a
  maven repo somewhere?

  Thanks!
  Eric

-- 
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

To unsubscribe from this group, send email to 
clojure+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.