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>
> > >    <groupId>org.apache.maven.plugins</groupId>
> > >    <artifactId>maven-compiler-plugin</artifactId>
> > >    <configuration>
> > >        <source>1.5</source>
> > >        <target>1.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.

Reply via email to