Path: blob/master/test/jdk/performance/client/RenderPerfTest/build.xml
41149 views
<!--1Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.2DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.34This code is free software; you can redistribute it and/or modify it5under the terms of the GNU General Public License version 2 only, as6published by the Free Software Foundation.78This code is distributed in the hope that it will be useful, but WITHOUT9ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11version 2 for more details (a copy is included in the LICENSE file that12accompanied this code).1314You should have received a copy of the GNU General Public License version152 along with this work; if not, write to the Free Software Foundation,16Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.1718Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19or visit www.oracle.com if you need additional information or have any20questions.21-->2223<project name="RenderPerfTest" default="dist" basedir=".">24<description>25simple example build file26</description>27<!-- set global properties for this build -->28<property name="src" location="src"/>29<property name="build" location="build"/>30<property name="dist" location="dist"/>31<property name="resources" location="resources"/>3233<target name="init">34<!-- Create the time stamp -->35<tstamp/>36<!-- Create the build directory structure used by compile -->37<mkdir dir="${build}"/>38</target>3940<target name="compile" depends="init"41description="compile the source " >42<!-- Compile the java code from ${src} into ${build} -->43<javac includeantruntime="false" debug="off" srcdir="${src}" destdir="${build}"/>44</target>4546<target name="run" depends="dist"47description="run RenderPerfTest" >48<java jar="${dist}/RenderPerfTest.jar"49fork="true"50>51</java>52</target>5354<target name="resources" depends="init"55description="copy resources into build dir" >56<!-- Copy the resource files from ${resources} into ${build}/ -->57<mkdir dir="${dist}"/>58<mkdir dir="${dist}/renderperf"/>59<mkdir dir="${build}/renderperf/images"/>60<copy todir="${build}/renderperf/images">61<fileset dir="resources/renderperf/images" />62</copy>63</target>6465<target name="dist" depends="compile, resources"66description="generate the distribution" >67<!-- Create the distribution directory -->68<mkdir dir="${dist}"/>6970<!-- Put everything in ${build} into the RenderPerfTest.jar file -->71<jar jarfile="${dist}/RenderPerfTest.jar" basedir="${build}">72<manifest>73<attribute name="Built-By" value="${user.name}"/>74<attribute name="Main-Class" value="renderperf.RenderPerfTest"/>75</manifest>76</jar>77</target>7879<target name="clean"80description="clean up" >81<!-- Delete the ${build} and ${dist} directory trees -->82<delete dir="${build}"/>83<delete dir="${dist}"/>84</target>85</project>868788