Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/Valhalla/build.xml
6000 views
1
<?xml version="1.0"?>
2
3
<!--
4
Copyright (c) 2017, 2021 IBM Corp. and others
5
6
This program and the accompanying materials are made available under
7
the terms of the Eclipse Public License 2.0 which accompanies this
8
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
or the Apache License, Version 2.0 which accompanies this distribution and
10
is available at https://www.apache.org/licenses/LICENSE-2.0.
11
12
This Source Code may also be made available under the following
13
Secondary Licenses when the conditions for such availability set
14
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
General Public License, version 2 with the GNU Classpath
16
Exception [1] and GNU General Public License, version 2 with the
17
OpenJDK Assembly Exception [2].
18
19
[1] https://www.gnu.org/software/classpath/license.html
20
[2] http://openjdk.java.net/legal/assembly-exception.html
21
22
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
23
-->
24
<project name="Valhalla Tests" default="build" basedir=".">
25
<taskdef resource='net/sf/antcontrib/antlib.xml'/>
26
<description>
27
Build Valhalla Tests
28
</description>
29
30
<!-- set global properties for this build -->
31
<property name="DEST" value="${BUILD_ROOT}/functional/Valhalla" />
32
33
<!--Properties for this particular build-->
34
<property name="src" location="./src"/>
35
<property name="build" location="./bin"/>
36
<property name="transformerListener" location="${TEST_ROOT}/Utils/src"/>
37
<property name="LIB" value="asm,jcommander,testng"/>
38
<import file="${TEST_ROOT}/TKG/scripts/getDependencies.xml"/>
39
40
<target name="init">
41
<mkdir dir="${DEST}" />
42
<mkdir dir="${build}"/>
43
<copy todir="${DEST}">
44
<fileset dir="${TEST_ROOT}/functional/Valhalla" includes="libvalhallatest.so" />
45
</copy>
46
</target>
47
48
<target name="compile" depends="init,getDependentLibs" description="Using java ${JDK_VERSION} to compile the source " >
49
<echo>Ant version is ${ant.version}</echo>
50
<echo>============COMPILER SETTINGS============</echo>
51
<echo>===fork: yes</echo>
52
<echo>===executable: ${compiler.javac}</echo>
53
<echo>===debug: on</echo>
54
<echo>===destdir: ${DEST}</echo>
55
<javac srcdir="${src}" destdir="${build}" debug="true" fork="true" executable="${compiler.javac}" encoding="ISO-8859-1">
56
<src path="${src}"/>
57
<src path="${transformerListener}" />
58
<compilerarg line='--add-exports java.base/jdk.internal.misc=ALL-UNNAMED' />
59
<classpath>
60
<pathelement location="${LIB_DIR}/testng.jar"/>
61
<pathelement location="${LIB_DIR}/jcommander.jar"/>
62
<pathelement location="${LIB_DIR}/asm.jar"/>
63
</classpath>
64
</javac>
65
</target>
66
67
<target name="dist" depends="compile" description="generate the distribution" >
68
<mkdir dir="${DEST}"/>
69
<jar jarfile="${DEST}/ValhallaTests.jar" filesonly="true">
70
<fileset dir="${build}"/>
71
<fileset dir="${src}/../" includes="*.properties,*.xml"/>
72
</jar>
73
<copy todir="${DEST}">
74
<fileset dir="${src}/../" includes="*.xml" />
75
<fileset dir="${src}/../" includes="*.mk" />
76
</copy>
77
</target>
78
79
<target name="build" >
80
<if>
81
<equals arg1="${JDK_VERSION}" arg2="Valhalla"/>
82
<then>
83
<antcall target="clean" inheritall="true" />
84
</then>
85
</if>
86
</target>
87
88
<target name="clean" depends="dist" description="clean up" >
89
<!-- Delete the ${build} directory trees -->
90
<delete dir="${build}"/>
91
</target>
92
</project>
93
94