src/demo/share/java2d/J2DBench/build.xml
author rehn
Thu, 20 Dec 2018 10:05:19 +0100
changeset 53077 33b8f6f4cdf5
parent 47216 71c04702a3d5
permissions -rw-r--r--
8214180: Need better granularity for sleeping Reviewed-by: eosterlund, dcubed, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<!--
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 15974
diff changeset
     2
 Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 Redistribution and use in source and binary forms, with or without
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 modification, are permitted provided that the following conditions
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 are met:
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
   - Redistributions of source code must retain the above copyright
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
     notice, this list of conditions and the following disclaimer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
   - Redistributions in binary form must reproduce the above copyright
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
     notice, this list of conditions and the following disclaimer in the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
     documentation and/or other materials provided with the distribution.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    15
   - Neither the name of Oracle nor the names of its
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
     contributors may be used to endorse or promote products derived
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
     from this software without specific prior written permission.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
<project name="J2DBench" default="dist" basedir=".">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
    <description>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
        simple example build file
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
    </description>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
  <!-- set global properties for this build -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
  <property name="src" location="src"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
  <property name="build" location="build"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
  <property name="dist"  location="dist"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
  <property name="resources"  location="resources"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
  <target name="init">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    <!-- Create the time stamp -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    <tstamp/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    <!-- Create the build directory structure used by compile -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    <mkdir dir="${build}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
  <target name="compile" depends="init"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
        description="compile the source " >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    <!-- Compile the java code from ${src} into ${build} -->
26349
137d39d10ffa 8042199: The build of J2DBench via makefile is broken after the JDK-8005402
serb
parents: 23010
diff changeset
    52
    <javac debug="off" source="1.6" target="1.6" srcdir="${src}" destdir="${build}"/>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
15974
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 14885
diff changeset
    55
  <target name="run" depends="dist"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    description="run J2DBench" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    <java jar="${dist}/J2DBench.jar"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
       fork="true"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    </java>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
15974
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 14885
diff changeset
    63
  <target name="analyze" depends="dist"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    description="run J2DAnalyzer" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    <java jar="${dist}/J2DAnalyzer.jar"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
       fork="true"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    </java>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
  <target name="resources" depends="init"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        description="copy resources into build dir" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    <!-- Copy the resource files from ${resources} into ${build}/ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    <mkdir dir="${dist}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    <mkdir dir="${build}/j2dbench/tests/text/textdata"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    <copy todir="${build}/j2dbench/tests/text/textdata">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
      <fileset dir="${resources}/textdata" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    </copy>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    <mkdir dir="${build}/j2dbench/tests/iio/images"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    <copy todir="${build}/j2dbench/tests/iio/images">
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
      <fileset dir="${resources}/images" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    </copy>
15974
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 14885
diff changeset
    83
    <mkdir dir="${build}/j2dbench/tests/cmm/images"/>
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 14885
diff changeset
    84
    <copy todir="${build}/j2dbench/tests/cmm/images">
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 14885
diff changeset
    85
      <fileset dir="${resources}/cmm_images" />
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 14885
diff changeset
    86
    </copy>
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
  <target name="dist" depends="compile, resources"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        description="generate the distribution" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    <!-- Create the distribution directory -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    <mkdir dir="${dist}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    <!-- Put everything in ${build} into the J2DBench.jar file -->
15974
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 14885
diff changeset
    95
    <jar jarfile="${dist}/J2DBench.jar" basedir="${build}"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        excludes="j2dbench/report/**" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
      <manifest>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        <attribute name="Built-By" value="${user.name}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
	<attribute name="Main-Class" value="j2dbench.J2DBench"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
      </manifest>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    </jar>
15974
91b0e63e6e83 8005530: [lcms] Improve performance of ColorConverOp for default destinations
bae
parents: 14885
diff changeset
   102
    <jar jarfile="${dist}/J2DAnalyzer.jar" basedir="${build}"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
        includes="j2dbench/report/**" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
      <manifest>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        <attribute name="Built-By" value="${user.name}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
	<attribute name="Main-Class" value="j2dbench.report.J2DAnalyzer"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
      </manifest>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    </jar>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
  <target name="clean"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
        description="clean up" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
    <!-- Delete the ${build} and ${dist} directory trees -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    <delete dir="${build}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    <delete dir="${dist}"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
  </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
</project>