aboutsummaryrefslogtreecommitdiff
path: root/jtreg-build.yaml
diff options
context:
space:
mode:
authorStuart Monteith <stuart.monteith@linaro.org>2017-01-13 18:42:41 +0000
committerStuart Monteith <stuart.monteith@linaro.org>2017-01-13 18:42:41 +0000
commit6241ace4e1e8283314d1169d5dc2a55d62ba493a (patch)
tree1b79f1394c5165a09c0336730d607d295958c226 /jtreg-build.yaml
parentd73d30f80c15a4ab8147a22ee32f776846617ec3 (diff)
jdk: Include asmtools.jar in classpath for jtreg
The ant build.xml file doesn't include asmtools.jar in the manifest classpath for jtreg. This results in "jasm" and "jcoder" not being found, even when asmtools.jar is included. This changes the build to use the makefile build instead of the ant build. Change-Id: I055ab2e82dc38d3f87e1cf9eec7ae8a4b91bab8f
Diffstat (limited to 'jtreg-build.yaml')
-rw-r--r--jtreg-build.yaml50
1 files changed, 30 insertions, 20 deletions
diff --git a/jtreg-build.yaml b/jtreg-build.yaml
index f5feb141e4..0d82ca7ed6 100644
--- a/jtreg-build.yaml
+++ b/jtreg-build.yaml
@@ -55,7 +55,7 @@
# Build asmtools for jtreg.
cd asmtools
- ant -f build/build.xml -DbuildArea.dir=$PWD/out
+ ant -f build/build.xml
cd ../jtreg
@@ -114,26 +114,37 @@
# syntax of the -target and -source command have changed with jdk9
sed -i 's|1.8|8|g' make/build.xml
- ant -v -f make/build.xml \
- -Djunit.jar=./junit/junit.jar \
- -Dtestng.jar=./testng/testng.jar \
- -Djavatest.home=./jh2.0 \
- -Djavatest.home=./jtharness \
- -Djavatest.jar=./jtharness/lib/javatest.jar \
- -Djavahelp.home=./jh2.0 \
- -Djhall.jar=./jh2.0/javahelp/lib/jhall.jar \
- -Djh.jar=./jh2.0/javahelp/lib/jh.jar \
- -Dasmtools.home=./asmtools-6.0 \
- -Dasmtools.jar=./asmtools-6.0/lib/asmtools.jar \
- -Dbuild.version=$BUILD_VERSION \
- -Dbuild.number=$BUILD_NUMBER
+
+ # Parameters for makefile build, which includes asmtools.jar in
+ # classpath in manifest.
+ # java and ant's home directories are found from the commands.
+ export JDK17HOME=$(dirname $(java -XshowSettings:properties |& \
+ grep java.home | sed 's,^.*java.home = \(.*\),\1,'))
+ export JAVAHELP_HOME=$PWD/jh2.0/javahelp
+ export JAVATEST_HOME=$PWD/jtharness
+ export JAVATEST_JAR=$PWD/jtharness/lib/javatest.jar
+ export JAVAHARNESS_HOME=$PWD/jtharness
+ export ASMTOOLS_HOME=$PWD/asmtools-6.0
+ export TESTNG_HOME=$PWD/testng
+ export TESTNG_JAR=$PWD/testng/testng.jar
+ export JUNIT_JAR=$PWD/junit/junit.jar
+ export ANTHOME=$(ant -diagnostics | grep ant.home | \
+ sed 's,^.*: \(.*\),\1,' | uniq)
+
+ # Makefile expects files that are not supplied from the packages we
+ # are downloading. Create dummy versions to keep it happy.
+ touch $JAVAHARNESS_HOME/COPYRIGHT-javatest.html
+ mkdir -p $JAVAHARNESS_HOME/doc/javatest/
+ touch $JAVAHARNESS_HOME/doc/javatest/javatestGUI.pdf
+ touch $TESTNG_HOME/LICENSE.txt
+
+ make -C make
rm -f *.zip
rm -f *.tar.gz
- cp -r ./dist/jtreg .
- cp jcommander/jcommander.jar ./dist/jtreg/lib
- chmod u+x ./dist/jtreg/bin/*
+ cp jcommander/jcommander.jar ./build/images/jtreg/lib
+ chmod u+x ./build/images/jtreg/bin/*
ls -lash
@@ -146,11 +157,10 @@
artifact=${JOB_NAME}-${MAJOR}.${MINOR}.${MICRO}-${VERSION_SUFFIX}
- cd ./dist
+ cd ./build/images
tar afcv $artifact.tar.${ZIP_TYPE} jtreg
- mv $artifact.tar.${ZIP_TYPE} ../..
+ mv $artifact.tar.${ZIP_TYPE} ../../..
cd ..
- rm -fr ${artifact}
publishers:
- archive:
artifacts: 'jtreg-build-*-SNAPSHOT.tar.xz'