On Mon, 4 Feb 2013, rudolf.korhum...@uniklinik-freiburg.de wrote:

 > We  use Linux too.
 > I got problems building  the 2.1 branch with Java 1.7, but I didn't  tried
 > to find out what's wrong.

I think I found the source of this problem: running the bundled ant with Java 
1.7 sets ant.java.version to 1.6. When ant.java.version is compared to the 
target.vm version in the build scripts, this causes a failure.

Here's the debug output from the bundled ant:

----------------------------------------------------------------
Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.6 in: /usr/lib/jvm/jdk1.7.0_13/jre
Detected OS: Linux
----------------------------------------------------------------

Whereas running the version of ant that comes with my Ubuntu Linux prints this:

----------------------------------------------------------------
Apache Ant(TM) version 1.8.2 compiled on December 3 2011
Trying the default build file: build.xml
Buildfile: /mounts/software/rainer/lenya/apache-lenya-2.1.X/build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.7 in: /usr/lib/jvm/jdk1.7.0_13/jre
Detected OS: Linux
----------------------------------------------------------------

So, why does the bundled ant think that the java version is 1.6?

   Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lenya.apache.org
For additional commands, e-mail: dev-h...@lenya.apache.org

Reply via email to