0N/A<?xml version="1.0" encoding="UTF-8"?>
0N/A
0N/A<!--
2362N/A Copyright (c) 2005, 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
2362N/A published by the Free Software Foundation. Oracle designates this
0N/A particular file as subject to the "Classpath" exception as provided
2362N/A by Oracle in the LICENSE file that accompanied this code.
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
2362N/A Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A or visit www.oracle.com if you need additional information or have any
2362N/A questions.
0N/A-->
0N/A
0N/A<!--
0N/A
0N/A The Original Code is HAT. The Initial Developer of the
0N/A Original Code is Bill Foote, with contributions from others
245N/A at JavaSoft/Sun.
0N/A
0N/A-->
0N/A
0N/A<!-- This is an Ant project file to build Heap Analysis Tool (HAT).
0N/A For more information on Ant, please see http://ant.apache.org/
0N/A
0N/A To build jhat.jar, run ant in current directory. jhat.jar is
0N/A built in /build directory.
0N/A-->
0N/A
0N/A<project name="Java Heap Analysis Tool" default="all" basedir=".">
0N/A
0N/A <!-- Property Definitions -->
0N/A
0N/A <property name="app.name" value="jhat"/>
0N/A <property name="src.dir" value="."/>
0N/A <property name="build.dir" value="build"/>
0N/A <property name="classes.dir" value="${build.dir}/classes"/>
0N/A <property name="dist.jar" value="${app.name}.jar"/>
0N/A
0N/A <target name="prepare">
0N/A <mkdir dir="${build.dir}"/>
0N/A <mkdir dir="${classes.dir}"/>
0N/A </target>
0N/A
0N/A <target name="clean">
0N/A <delete dir="${build.dir}"/>
0N/A </target>
0N/A
0N/A <target name="compile" depends="prepare" description="Compiles the sources">
0N/A <javac srcdir="${src.dir}" destdir="${classes.dir}"
0N/A debug="on" deprecation="on">
0N/A </javac>
0N/A
0N/A </target>
0N/A
0N/A <target name="deploy" depends="compile" description="Creates a deployment bundle">
0N/A <delete file="${build.dir}/${dist.jar}" />
0N/A <mkdir dir="${classes.dir}/com/sun/tools/hat/resources" />
0N/A <copy todir="${classes.dir}/com/sun/tools/hat/resources">
0N/A <fileset dir="${src.dir}/resources" includes="*" />
0N/A </copy>
0N/A
0N/A <jar jarfile="${build.dir}/${dist.jar}"
0N/A manifest="${src.dir}/MANIFEST.mf" basedir="${classes.dir}"/>
0N/A </target>
0N/A
0N/A <target name="all" depends="deploy" description="Builds sources and deployment jar"/>
0N/A
0N/A</project>