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