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