Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/test/jdk/performance/client/RenderPerfTest/build.xml
41149 views
1
<!--
2
Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
3
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
5
This code is free software; you can redistribute it and/or modify it
6
under the terms of the GNU General Public License version 2 only, as
7
published by the Free Software Foundation.
8
9
This code is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
version 2 for more details (a copy is included in the LICENSE file that
13
accompanied this code).
14
15
You should have received a copy of the GNU General Public License version
16
2 along with this work; if not, write to the Free Software Foundation,
17
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
19
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
or visit www.oracle.com if you need additional information or have any
21
questions.
22
-->
23
24
<project name="RenderPerfTest" default="dist" basedir=".">
25
<description>
26
simple example build file
27
</description>
28
<!-- set global properties for this build -->
29
<property name="src" location="src"/>
30
<property name="build" location="build"/>
31
<property name="dist" location="dist"/>
32
<property name="resources" location="resources"/>
33
34
<target name="init">
35
<!-- Create the time stamp -->
36
<tstamp/>
37
<!-- Create the build directory structure used by compile -->
38
<mkdir dir="${build}"/>
39
</target>
40
41
<target name="compile" depends="init"
42
description="compile the source " >
43
<!-- Compile the java code from ${src} into ${build} -->
44
<javac includeantruntime="false" debug="off" srcdir="${src}" destdir="${build}"/>
45
</target>
46
47
<target name="run" depends="dist"
48
description="run RenderPerfTest" >
49
<java jar="${dist}/RenderPerfTest.jar"
50
fork="true"
51
>
52
</java>
53
</target>
54
55
<target name="resources" depends="init"
56
description="copy resources into build dir" >
57
<!-- Copy the resource files from ${resources} into ${build}/ -->
58
<mkdir dir="${dist}"/>
59
<mkdir dir="${dist}/renderperf"/>
60
<mkdir dir="${build}/renderperf/images"/>
61
<copy todir="${build}/renderperf/images">
62
<fileset dir="resources/renderperf/images" />
63
</copy>
64
</target>
65
66
<target name="dist" depends="compile, resources"
67
description="generate the distribution" >
68
<!-- Create the distribution directory -->
69
<mkdir dir="${dist}"/>
70
71
<!-- Put everything in ${build} into the RenderPerfTest.jar file -->
72
<jar jarfile="${dist}/RenderPerfTest.jar" basedir="${build}">
73
<manifest>
74
<attribute name="Built-By" value="${user.name}"/>
75
<attribute name="Main-Class" value="renderperf.RenderPerfTest"/>
76
</manifest>
77
</jar>
78
</target>
79
80
<target name="clean"
81
description="clean up" >
82
<!-- Delete the ${build} and ${dist} directory trees -->
83
<delete dir="${build}"/>
84
<delete dir="${dist}"/>
85
</target>
86
</project>
87
88