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