Commit cd906b0e authored by John Zhang's avatar John Zhang

modified README and build.xml for environment setup

parent b248aaa1
Pipeline #2063 canceled with stage
......@@ -44,7 +44,8 @@ The suite is built using ant 1.9 (1.10 and later will fail for many of the bench
**NOTE**
1. A number of benchmarks including trade and tomcat do not reliably _build_ under Java 6 (all run under Java 6). Therefore you must explicitly use a Java 5 VM at build time (see below).
1. PMD 6.1.0 requires JDK 9 for building; but it can run with JDK 7+
2. JDK 7 is required by Geronimo 3.0.0 to run DayTrader
**IMPORTANT:** before trying to build the suite:
......@@ -53,7 +54,7 @@ The suite is built using ant 1.9 (1.10 and later will fail for many of the bench
2. Copy `default.properties` to `local.properties` and edit it for your environment.
* Specifically, you must set `java14.lib` to point to a Java 1.4 installation and `java14.compile.classpath` to correctly capture the libraries for that installation(otherwise derby will not build correctly)
* Specifically, you must set `jdk9home` to point to a Java 9 installation.
For more information, run `ant -p` in the benchmarks directory.
......
......@@ -23,8 +23,8 @@ DEPENDENCIES:
- ant1.9 (http://ant.apache.org) # note that builds will fail if ant 1.10 or later are used
- csv (http:/www.nongnu.org/cvs/)
- svn (http://subversion.apache.org)
For convinience, both are included in the tools directory:
For convinience, javacc and maven are included in the tools directory:
${toolsdir}
......@@ -47,32 +47,16 @@ BUILDING:
or
export ANT_OPTS="-Dhttp.proxyHost=xxx.xxx.xxx.xxx -Dhttp.proxyPort=3128"
When the Java6 runtime is invoked to build Tomcat, it may have incorrect/broken
cacerts, which stop files from being downloaded by ant. This can be addressed
by pointing to cacerts in your 1.8 JVM:
export ANT_OPTS="-Djavax.net.ssl.trustStore=${JAVA-8-HOME}/jre/lib/security/cacerts"
3. Copy default.properties to local.properties and edit local.properties
for your environment.
4. You may need to modify your local maven settings in order to get the trade benchmarks
to build. In particular, you may need to edit the file:
~/.m2/repository/org/apache/geronimo/geronimo/2.1.4/geronimo-2.1.4.pom
and change the version numbers near line 2423:
from:
[1.5,1.6)
to:
[1.5,)
5. Run ant:
4. Run ant:
ant [builds all benchmarks]
ant dist [builds all benchmarks, this is the default]
ant source [builds a source distribution including benchmarks and tools]
ant bm [builds a specific benchmark, bm]
6. A log of each directory is created under this benchmark directory
5. A log of each directory is created under this benchmark directory
for benchmark build status and build success or failure files
to be stored. The directory log directory is normally of the
form
......
......@@ -15,10 +15,5 @@ make=/usr/bin/make
# file.
build.failonerror=true
# Building some of the benchmarks requires jdk 1.6 and its librariess.
# If you have any of these JVMs in standard locations, Derby should
# automatically find them and compile successfully. If you have them
# in non-standard locations, Derby needs to be told where to find the
# class files. It should be sufficient to have a 1.6 JVM.
j16lib=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes
jdk16home=/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
# JDK 9 is required for building PMD 6.1.0, but it can run with JDK 7+
jdk9home=/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment