0N/A<?xml version="1.0" encoding="UTF-8"?>
0N/A<!--
1472N/A Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved.
0N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A
0N/A This code is free software; you can redistribute it and/or modify it
0N/A under the terms of the GNU General Public License version 2 only, as
0N/A published by the Free Software Foundation.
0N/A
0N/A This code is distributed in the hope that it will be useful, but WITHOUT
0N/A ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A version 2 for more details (a copy is included in the LICENSE file that
0N/A accompanied this code).
0N/A
0N/A You should have received a copy of the GNU General Public License version
0N/A 2 along with this work; if not, write to the Free Software Foundation,
0N/A Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A
1472N/A Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A or visit www.oracle.com if you need additional information or have any
1472N/A questions.
0N/A
0N/A-->
0N/A
0N/A<!-- This is an Ant project file. Ant is a build tool like make or gnumake which is not
0N/A dependent on the underlying OS shell. For more information on Ant, please see
0N/A http://ant.apache.org/ -->
0N/A
0N/A<!-- A "project" describes a set of targets that may be requested
0N/A when Ant is executed. The "default" attribute defines the
0N/A target which is executed if no specific target is requested,
0N/A and the "basedir" attribute defines the current working directory
0N/A from which Ant executes the requested task. This is normally
0N/A set to the current working directory.
0N/A-->
0N/A
0N/A
0N/A<project name="HotSpot Serviceability Agent" default="all" basedir=".">
0N/A
0N/A <!-- Property Definitions -->
0N/A
0N/A <property name="app.name" value="sa"/>
0N/A <property name="dist.jar" value="${app.name}.jar"/>
0N/A <property name="classes" value="/build/classes"/>
0N/A
0N/A<!-- The "prepare" target is used to construct the deployment home
0N/A directory structure (if necessary), and to copy in static files
0N/A as required. In the example below, Ant is instructed to create
0N/A the deployment directory, copy the contents of the "web/" source
0N/A hierarchy, and set up the WEB-INF subdirectory appropriately.
0N/A-->
0N/A
0N/A <target name="prepare">
0N/A <mkdir dir="${classes}"/>
0N/A </target>
0N/A
0N/A
0N/A<!-- The "clean" target removes the deployment home directory structure,
0N/A so that the next time the "compile" target is requested, it will need
0N/A to compile everything from scratch.
0N/A-->
0N/A
0N/A <target name="clean">
0N/A <delete dir="${classes}"/>
0N/A </target>
0N/A
0N/A
0N/A<!-- The "compile" target is used to compile (or recompile) the Java classes
0N/A that make up this web application. The recommended source code directory
0N/A structure makes this very easy because the <javac> task automatically
0N/A works its way down a source code hierarchy and compiles any class that
0N/A has not yet been compiled, or where the source file is newer than the
0N/A class file.
0N/A
0N/A Feel free to adjust the compilation option parameters (debug,
0N/A optimize, and deprecation) to suit your requirements. It is also
0N/A possible to base them on properties, so that you can adjust this
0N/A behavior at runtime.
0N/A
0N/A The "compile" task depends on the "prepare" task, so the deployment
0N/A home directory structure will be created if needed the first time.
0N/A-->
0N/A
0N/A <target name="compile" depends="prepare" description="Compiles the sources">
0N/A <javac srcdir="/src/share/classes"
0N/A destdir="${classes}"
0N/A debug="on" deprecation="on"
0N/A source="1.4">
0N/A <classpath refid="javac.classpath" />
0N/A </javac>
0N/A
0N/A <rmic classname="sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer"
0N/A base="${classes}"/>
0N/A </target>
0N/A
0N/A <target name="deploy" depends="compile" description="Creates a deployment bundle">
0N/A <delete file="${classes}/${dist.jar}" />
0N/A <copy todir="${classes}/sun/jvm/hotspot/utilities/soql/">
0N/A <fileset dir="/src/share/classes/sun/jvm/hotspot/utilities/soql" includes="*.js" />
0N/A </copy>
0N/A
0N/A <mkdir dir="${classes}/sun/jvm/hotspot/ui/resources" />
0N/A <copy todir="${classes}/sun/jvm/hotspot/ui/resources">
0N/A <fileset dir="/src/share/classes/sun/jvm/hotspot/ui/resources" includes="*.png" />
0N/A </copy>
258N/A <copy todir="${classes}/toolbarButtonGraphics/development/">
258N/A <fileset dir="/src/share/classes/images/toolbarButtonGraphics/development/" includes="*.gif" />
258N/A </copy>
258N/A <copy todir="${classes}/toolbarButtonGraphics/general/">
258N/A <fileset dir="/src/share/classes/images/toolbarButtonGraphics/general/" includes="*.gif" />
258N/A </copy>
258N/A <copy todir="${classes}/toolbarButtonGraphics/navigation/">
258N/A <fileset dir="/src/share/classes/images/toolbarButtonGraphics/navigation/" includes="*.gif" />
258N/A </copy>
258N/A <copy todir="${classes}/toolbarButtonGraphics/text/">
258N/A <fileset dir="/src/share/classes/images/toolbarButtonGraphics/text/" includes="*.gif" />
258N/A </copy>
0N/A
0N/A <jar jarfile="${classes}/${dist.jar}"
0N/A basedir="${classes}"/>
0N/A </target>
0N/A
0N/A <target name="all" depends="deploy" description="Builds sources and deployment jar"/>
0N/A
0N/A</project>