annotate agent/make/build.xml @ 0:a61af66fc99e jdk7-b24

Initial load
author duke
date Sat, 01 Dec 2007 00:00:00 +0000
parents
children 54499b980c23
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 <!--
a61af66fc99e Initial load
duke
parents:
diff changeset
3 Copyright 2002-2007 Sun Microsystems, Inc. All Rights Reserved.
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
a61af66fc99e Initial load
duke
parents:
diff changeset
20 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
a61af66fc99e Initial load
duke
parents:
diff changeset
21 CA 95054 USA or visit www.sun.com if you need additional information or
a61af66fc99e Initial load
duke
parents:
diff changeset
22 have any questions.
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="libs" value="../src/share/lib"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
46 <property name="classes" value="../build/classes"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
47
a61af66fc99e Initial load
duke
parents:
diff changeset
48 <!-- The "prepare" target is used to construct the deployment home
a61af66fc99e Initial load
duke
parents:
diff changeset
49 directory structure (if necessary), and to copy in static files
a61af66fc99e Initial load
duke
parents:
diff changeset
50 as required. In the example below, Ant is instructed to create
a61af66fc99e Initial load
duke
parents:
diff changeset
51 the deployment directory, copy the contents of the "web/" source
a61af66fc99e Initial load
duke
parents:
diff changeset
52 hierarchy, and set up the WEB-INF subdirectory appropriately.
a61af66fc99e Initial load
duke
parents:
diff changeset
53 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
54
a61af66fc99e Initial load
duke
parents:
diff changeset
55 <target name="prepare">
a61af66fc99e Initial load
duke
parents:
diff changeset
56 <mkdir dir="${classes}"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
57 </target>
a61af66fc99e Initial load
duke
parents:
diff changeset
58
a61af66fc99e Initial load
duke
parents:
diff changeset
59
a61af66fc99e Initial load
duke
parents:
diff changeset
60 <!-- The "clean" target removes the deployment home directory structure,
a61af66fc99e Initial load
duke
parents:
diff changeset
61 so that the next time the "compile" target is requested, it will need
a61af66fc99e Initial load
duke
parents:
diff changeset
62 to compile everything from scratch.
a61af66fc99e Initial load
duke
parents:
diff changeset
63 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
64
a61af66fc99e Initial load
duke
parents:
diff changeset
65 <target name="clean">
a61af66fc99e Initial load
duke
parents:
diff changeset
66 <delete dir="${classes}"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
67 </target>
a61af66fc99e Initial load
duke
parents:
diff changeset
68
a61af66fc99e Initial load
duke
parents:
diff changeset
69
a61af66fc99e Initial load
duke
parents:
diff changeset
70 <!-- The "compile" target is used to compile (or recompile) the Java classes
a61af66fc99e Initial load
duke
parents:
diff changeset
71 that make up this web application. The recommended source code directory
a61af66fc99e Initial load
duke
parents:
diff changeset
72 structure makes this very easy because the <javac> task automatically
a61af66fc99e Initial load
duke
parents:
diff changeset
73 works its way down a source code hierarchy and compiles any class that
a61af66fc99e Initial load
duke
parents:
diff changeset
74 has not yet been compiled, or where the source file is newer than the
a61af66fc99e Initial load
duke
parents:
diff changeset
75 class file.
a61af66fc99e Initial load
duke
parents:
diff changeset
76
a61af66fc99e Initial load
duke
parents:
diff changeset
77 Feel free to adjust the compilation option parameters (debug,
a61af66fc99e Initial load
duke
parents:
diff changeset
78 optimize, and deprecation) to suit your requirements. It is also
a61af66fc99e Initial load
duke
parents:
diff changeset
79 possible to base them on properties, so that you can adjust this
a61af66fc99e Initial load
duke
parents:
diff changeset
80 behavior at runtime.
a61af66fc99e Initial load
duke
parents:
diff changeset
81
a61af66fc99e Initial load
duke
parents:
diff changeset
82 The "compile" task depends on the "prepare" task, so the deployment
a61af66fc99e Initial load
duke
parents:
diff changeset
83 home directory structure will be created if needed the first time.
a61af66fc99e Initial load
duke
parents:
diff changeset
84 -->
a61af66fc99e Initial load
duke
parents:
diff changeset
85
a61af66fc99e Initial load
duke
parents:
diff changeset
86 <path id="javac.classpath">
a61af66fc99e Initial load
duke
parents:
diff changeset
87 <pathelement path="${libs}/maf-1_0.jar" />
a61af66fc99e Initial load
duke
parents:
diff changeset
88 <pathelement path="${libs}/jlfgr-1_0.jar" />
a61af66fc99e Initial load
duke
parents:
diff changeset
89 </path>
a61af66fc99e Initial load
duke
parents:
diff changeset
90
a61af66fc99e Initial load
duke
parents:
diff changeset
91 <target name="compile" depends="prepare" description="Compiles the sources">
a61af66fc99e Initial load
duke
parents:
diff changeset
92 <javac srcdir="../src/share/classes"
a61af66fc99e Initial load
duke
parents:
diff changeset
93 destdir="${classes}"
a61af66fc99e Initial load
duke
parents:
diff changeset
94 debug="on" deprecation="on"
a61af66fc99e Initial load
duke
parents:
diff changeset
95 source="1.4">
a61af66fc99e Initial load
duke
parents:
diff changeset
96 <classpath refid="javac.classpath" />
a61af66fc99e Initial load
duke
parents:
diff changeset
97 </javac>
a61af66fc99e Initial load
duke
parents:
diff changeset
98
a61af66fc99e Initial load
duke
parents:
diff changeset
99 <rmic classname="sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer"
a61af66fc99e Initial load
duke
parents:
diff changeset
100 base="${classes}"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
101 </target>
a61af66fc99e Initial load
duke
parents:
diff changeset
102
a61af66fc99e Initial load
duke
parents:
diff changeset
103 <target name="deploy" depends="compile" description="Creates a deployment bundle">
a61af66fc99e Initial load
duke
parents:
diff changeset
104 <delete file="${classes}/${dist.jar}" />
a61af66fc99e Initial load
duke
parents:
diff changeset
105 <copy todir="${classes}/sun/jvm/hotspot/utilities/soql/">
a61af66fc99e Initial load
duke
parents:
diff changeset
106 <fileset dir="../src/share/classes/sun/jvm/hotspot/utilities/soql" includes="*.js" />
a61af66fc99e Initial load
duke
parents:
diff changeset
107 </copy>
a61af66fc99e Initial load
duke
parents:
diff changeset
108
a61af66fc99e Initial load
duke
parents:
diff changeset
109 <mkdir dir="${classes}/sun/jvm/hotspot/ui/resources" />
a61af66fc99e Initial load
duke
parents:
diff changeset
110 <copy todir="${classes}/sun/jvm/hotspot/ui/resources">
a61af66fc99e Initial load
duke
parents:
diff changeset
111 <fileset dir="../src/share/classes/sun/jvm/hotspot/ui/resources" includes="*.png" />
a61af66fc99e Initial load
duke
parents:
diff changeset
112 </copy>
a61af66fc99e Initial load
duke
parents:
diff changeset
113
a61af66fc99e Initial load
duke
parents:
diff changeset
114 <jar jarfile="${classes}/${dist.jar}"
a61af66fc99e Initial load
duke
parents:
diff changeset
115 basedir="${classes}"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
116 </target>
a61af66fc99e Initial load
duke
parents:
diff changeset
117
a61af66fc99e Initial load
duke
parents:
diff changeset
118 <target name="all" depends="deploy" description="Builds sources and deployment jar"/>
a61af66fc99e Initial load
duke
parents:
diff changeset
119
a61af66fc99e Initial load
duke
parents:
diff changeset
120 </project>