Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/bootstrapMethodArgumentTest/build.xml
6004 views
1
<?xml version="1.0"?>
2
<!--
3
Copyright (c) 2019, 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="bootstrapMethodArgumentTest" default="build" basedir=".">
24
<taskdef resource="net/sf/antcontrib/antlib.xml" />
25
<description>
26
Build bootstrapMethodArgumentTest
27
</description>
28
29
<import file="${TEST_ROOT}/functional/cmdLineTests/buildTools.xml" />
30
31
<!-- set properties for this build -->
32
<property name="DEST" value="${BUILD_ROOT}/functional/cmdLineTests/bootstrapMethodArgumentTest" />
33
<property name="src" location="src" />
34
<property name="build_root" location="org" />
35
<property name="build" location="${build_root}/openj9/test/bsmargs" />
36
<property name="javaexecutable" value="${TEST_JDK_HOME}/bin/java" />
37
<property name="LIB" value="asmtools" />
38
<import file="${TEST_ROOT}/TKG/scripts/getDependencies.xml" />
39
40
<target name="init">
41
<mkdir dir="${DEST}" />
42
<mkdir dir="${build}" />
43
</target>
44
45
<target name="generate" depends="init,getDependentLibs" description="Run with asmtools.jar to generate bytecode">
46
<echo>Generating bytecode from jcod files</echo>
47
<exec executable="${javaexecutable}" dir="${build}">
48
<arg line="-jar ${LIB_DIR}/asmtools.jar jcoder ${src}/org/openj9/test/bsmargs/RejectInvalidCPEntryUtf8.jcod" />
49
</exec>
50
<exec executable="${javaexecutable}" dir="${build}">
51
<arg line="-jar ${LIB_DIR}/asmtools.jar jcoder ${src}/org/openj9/test/bsmargs/RejectInvalidCPEntryFieldref.jcod" />
52
</exec>
53
<exec executable="${javaexecutable}" dir="${build}">
54
<arg line="-jar ${LIB_DIR}/asmtools.jar jcoder ${src}/org/openj9/test/bsmargs/RejectInvalidCPEntryMethodref.jcod" />
55
</exec>
56
<exec executable="${javaexecutable}" dir="${build}">
57
<arg line="-jar ${LIB_DIR}/asmtools.jar jcoder ${src}/org/openj9/test/bsmargs/RejectInvalidCPEntryNameAndType.jcod" />
58
</exec>
59
<exec executable="${javaexecutable}" dir="${build}">
60
<arg line="-jar ${LIB_DIR}/asmtools.jar jcoder ${src}/org/openj9/test/bsmargs/RejectInvalidCPEntryInvokeDynamic.jcod" />
61
</exec>
62
<exec executable="${javaexecutable}" dir="${build}">
63
<arg line="-jar ${LIB_DIR}/asmtools.jar jcoder ${src}/org/openj9/test/bsmargs/RejectInvalidCPEntryInterfaceMethodref.jcod" />
64
</exec>
65
</target>
66
67
<target name="dist" depends="generate" description="generate the distribution">
68
<jar jarfile="${DEST}/bsmargstest.jar" filesonly="true">
69
<fileset dir="${build}" />
70
<fileset dir="./" />
71
</jar>
72
<copy todir="${DEST}">
73
<fileset dir="${src}/../" includes="*.xml,*.mk" />
74
</copy>
75
</target>
76
77
<target name="clean" depends="dist" description="clean up">
78
<!-- delete the ${build_root} directory trees -->
79
<delete dir="${build_root}" />
80
</target>
81
82
<target name="build" depends="buildCmdLineTestTools">
83
<antcall target="clean" inheritall="true" />
84
</target>
85
</project>
86
87