annotate agent/make/build.xml @ 3237:399aa66d375e

Fixed a bug in which the valueEquals method was misused. The method does only check the equality of the node data and not full GVN equality by taking inputs and successors into account.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Jul 2011 14:16:38 -0700
parents c18cbe5936b8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
a61af66fc99e Initial load
duke
parents:
diff changeset
2 <!--
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 337
diff changeset
3 Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
5
a61af66fc99e Initial load
duke
parents:
diff changeset
6 This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
7 under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
8 published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
9
a61af66fc99e Initial load
duke
parents:
diff changeset
10 This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
13 version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
14 accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
15
a61af66fc99e Initial load
duke
parents:
diff changeset
16 You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
17 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
18 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
19
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 337
diff changeset
20 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 337
diff changeset
21 or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 337
diff changeset
22 questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
23
a61af66fc99e Initial load
duke
parents:
diff changeset
24 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
25
a61af66fc99e Initial load
duke
parents:
diff changeset
26 <!-- This is an Ant project file. Ant is a build tool like make or gnumake which is not
a61af66fc99e Initial load
duke
parents:
diff changeset
27 dependent on the underlying OS shell. For more information on Ant, please see
a61af66fc99e Initial load
duke
parents:
diff changeset
28 http://ant.apache.org/ -->
a61af66fc99e Initial load
duke
parents:
diff changeset
29
a61af66fc99e Initial load
duke
parents:
diff changeset
30 <!-- A "project" describes a set of targets that may be requested
a61af66fc99e Initial load
duke
parents:
diff changeset
31 when Ant is executed. The "default" attribute defines the
a61af66fc99e Initial load
duke
parents:
diff changeset
32 target which is executed if no specific target is requested,
a61af66fc99e Initial load
duke
parents:
diff changeset
33 and the "basedir" attribute defines the current working directory
a61af66fc99e Initial load
duke
parents:
diff changeset
34 from which Ant executes the requested task. This is normally
a61af66fc99e Initial load
duke
parents:
diff changeset
35 set to the current working directory.
a61af66fc99e Initial load
duke
parents:
diff changeset
36 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
37
a61af66fc99e Initial load
duke
parents:
diff changeset
38
a61af66fc99e Initial load
duke
parents:
diff changeset
39 <project name="HotSpot Serviceability Agent" default="all" basedir=".">
a61af66fc99e Initial load
duke
parents:
diff changeset
40
a61af66fc99e Initial load
duke
parents:
diff changeset
41 <!-- Property Definitions -->
a61af66fc99e Initial load
duke
parents:
diff changeset
42
a61af66fc99e Initial load
duke
parents:
diff changeset
43 <property name="app.name" value="sa"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
44 <property name="dist.jar" value="${app.name}.jar"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
45 <property name="classes" value="../build/classes"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
46
a61af66fc99e Initial load
duke
parents:
diff changeset
47 <!-- The "prepare" target is used to construct the deployment home
a61af66fc99e Initial load
duke
parents:
diff changeset
48 directory structure (if necessary), and to copy in static files
a61af66fc99e Initial load
duke
parents:
diff changeset
49 as required. In the example below, Ant is instructed to create
a61af66fc99e Initial load
duke
parents:
diff changeset
50 the deployment directory, copy the contents of the "web/" source
a61af66fc99e Initial load
duke
parents:
diff changeset
51 hierarchy, and set up the WEB-INF subdirectory appropriately.
a61af66fc99e Initial load
duke
parents:
diff changeset
52 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
53
a61af66fc99e Initial load
duke
parents:
diff changeset
54 <target name="prepare">
a61af66fc99e Initial load
duke
parents:
diff changeset
55 <mkdir dir="${classes}"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
56 </target>
a61af66fc99e Initial load
duke
parents:
diff changeset
57
a61af66fc99e Initial load
duke
parents:
diff changeset
58
a61af66fc99e Initial load
duke
parents:
diff changeset
59 <!-- The "clean" target removes the deployment home directory structure,
a61af66fc99e Initial load
duke
parents:
diff changeset
60 so that the next time the "compile" target is requested, it will need
a61af66fc99e Initial load
duke
parents:
diff changeset
61 to compile everything from scratch.
a61af66fc99e Initial load
duke
parents:
diff changeset
62 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
63
a61af66fc99e Initial load
duke
parents:
diff changeset
64 <target name="clean">
a61af66fc99e Initial load
duke
parents:
diff changeset
65 <delete dir="${classes}"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
66 </target>
a61af66fc99e Initial load
duke
parents:
diff changeset
67
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69 <!-- The "compile" target is used to compile (or recompile) the Java classes
a61af66fc99e Initial load
duke
parents:
diff changeset
70 that make up this web application. The recommended source code directory
a61af66fc99e Initial load
duke
parents:
diff changeset
71 structure makes this very easy because the <javac> task automatically
a61af66fc99e Initial load
duke
parents:
diff changeset
72 works its way down a source code hierarchy and compiles any class that
a61af66fc99e Initial load
duke
parents:
diff changeset
73 has not yet been compiled, or where the source file is newer than the
a61af66fc99e Initial load
duke
parents:
diff changeset
74 class file.
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 Feel free to adjust the compilation option parameters (debug,
a61af66fc99e Initial load
duke
parents:
diff changeset
77 optimize, and deprecation) to suit your requirements. It is also
a61af66fc99e Initial load
duke
parents:
diff changeset
78 possible to base them on properties, so that you can adjust this
a61af66fc99e Initial load
duke
parents:
diff changeset
79 behavior at runtime.
a61af66fc99e Initial load
duke
parents:
diff changeset
80
a61af66fc99e Initial load
duke
parents:
diff changeset
81 The "compile" task depends on the "prepare" task, so the deployment
a61af66fc99e Initial load
duke
parents:
diff changeset
82 home directory structure will be created if needed the first time.
a61af66fc99e Initial load
duke
parents:
diff changeset
83 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
84
a61af66fc99e Initial load
duke
parents:
diff changeset
85 <target name="compile" depends="prepare" description="Compiles the sources">
a61af66fc99e Initial load
duke
parents:
diff changeset
86 <javac srcdir="../src/share/classes"
a61af66fc99e Initial load
duke
parents:
diff changeset
87 destdir="${classes}"
a61af66fc99e Initial load
duke
parents:
diff changeset
88 debug="on" deprecation="on"
a61af66fc99e Initial load
duke
parents:
diff changeset
89 source="1.4">
a61af66fc99e Initial load
duke
parents:
diff changeset
90 <classpath refid="javac.classpath" />
a61af66fc99e Initial load
duke
parents:
diff changeset
91 </javac>
a61af66fc99e Initial load
duke
parents:
diff changeset
92
a61af66fc99e Initial load
duke
parents:
diff changeset
93 <rmic classname="sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer"
a61af66fc99e Initial load
duke
parents:
diff changeset
94 base="${classes}"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
95 </target>
a61af66fc99e Initial load
duke
parents:
diff changeset
96
a61af66fc99e Initial load
duke
parents:
diff changeset
97 <target name="deploy" depends="compile" description="Creates a deployment bundle">
a61af66fc99e Initial load
duke
parents:
diff changeset
98 <delete file="${classes}/${dist.jar}" />
a61af66fc99e Initial load
duke
parents:
diff changeset
99 <copy todir="${classes}/sun/jvm/hotspot/utilities/soql/">
a61af66fc99e Initial load
duke
parents:
diff changeset
100 <fileset dir="../src/share/classes/sun/jvm/hotspot/utilities/soql" includes="*.js" />
a61af66fc99e Initial load
duke
parents:
diff changeset
101 </copy>
a61af66fc99e Initial load
duke
parents:
diff changeset
102
a61af66fc99e Initial load
duke
parents:
diff changeset
103 <mkdir dir="${classes}/sun/jvm/hotspot/ui/resources" />
a61af66fc99e Initial load
duke
parents:
diff changeset
104 <copy todir="${classes}/sun/jvm/hotspot/ui/resources">
a61af66fc99e Initial load
duke
parents:
diff changeset
105 <fileset dir="../src/share/classes/sun/jvm/hotspot/ui/resources" includes="*.png" />
a61af66fc99e Initial load
duke
parents:
diff changeset
106 </copy>
258
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
107 <copy todir="${classes}/toolbarButtonGraphics/development/">
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
108 <fileset dir="../src/share/classes/images/toolbarButtonGraphics/development/" includes="*.gif" />
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
109 </copy>
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
110 <copy todir="${classes}/toolbarButtonGraphics/general/">
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
111 <fileset dir="../src/share/classes/images/toolbarButtonGraphics/general/" includes="*.gif" />
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
112 </copy>
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
113 <copy todir="${classes}/toolbarButtonGraphics/navigation/">
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
114 <fileset dir="../src/share/classes/images/toolbarButtonGraphics/navigation/" includes="*.gif" />
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
115 </copy>
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
116 <copy todir="${classes}/toolbarButtonGraphics/text/">
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
117 <fileset dir="../src/share/classes/images/toolbarButtonGraphics/text/" includes="*.gif" />
54499b980c23 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 0
diff changeset
118 </copy>
0
a61af66fc99e Initial load
duke
parents:
diff changeset
119
a61af66fc99e Initial load
duke
parents:
diff changeset
120 <jar jarfile="${classes}/${dist.jar}"
a61af66fc99e Initial load
duke
parents:
diff changeset
121 basedir="${classes}"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
122 </target>
a61af66fc99e Initial load
duke
parents:
diff changeset
123
a61af66fc99e Initial load
duke
parents:
diff changeset
124 <target name="all" depends="deploy" description="Builds sources and deployment jar"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
125
a61af66fc99e Initial load
duke
parents:
diff changeset
126 </project>