Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/classes/com/sun/tools/hat/build.xml
38920 views
<?xml version="1.0" encoding="UTF-8"?>12<!--3Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved.4DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.56This code is free software; you can redistribute it and/or modify it7under the terms of the GNU General Public License version 2 only, as8published by the Free Software Foundation. Oracle designates this9particular file as subject to the "Classpath" exception as provided10by Oracle in the LICENSE file that accompanied this code.1112This code is distributed in the hope that it will be useful, but WITHOUT13ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or14FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License15version 2 for more details (a copy is included in the LICENSE file that16accompanied this code).1718You should have received a copy of the GNU General Public License version192 along with this work; if not, write to the Free Software Foundation,20Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.2122Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA23or visit www.oracle.com if you need additional information or have any24questions.25-->2627<!--2829The Original Code is HAT. The Initial Developer of the30Original Code is Bill Foote, with contributions from others31at JavaSoft/Sun.3233-->3435<!-- This is an Ant project file to build Heap Analysis Tool (HAT).36For more information on Ant, please see http://ant.apache.org/3738To build jhat.jar, run ant in current directory. jhat.jar is39built in ./build directory.40-->4142<project name="Java Heap Analysis Tool" default="all" basedir=".">4344<!-- Property Definitions -->4546<property name="app.name" value="jhat"/>47<property name="src.dir" value="."/>48<property name="build.dir" value="build"/>49<property name="classes.dir" value="${build.dir}/classes"/>50<property name="dist.jar" value="${app.name}.jar"/>5152<target name="prepare">53<mkdir dir="${build.dir}"/>54<mkdir dir="${classes.dir}"/>55</target>5657<target name="clean">58<delete dir="${build.dir}"/>59</target>6061<target name="compile" depends="prepare" description="Compiles the sources">62<javac srcdir="${src.dir}" destdir="${classes.dir}"63debug="on" deprecation="on">64</javac>6566</target>6768<target name="deploy" depends="compile" description="Creates a deployment bundle">69<delete file="${build.dir}/${dist.jar}" />70<mkdir dir="${classes.dir}/com/sun/tools/hat/resources" />71<copy todir="${classes.dir}/com/sun/tools/hat/resources">72<fileset dir="${src.dir}/resources" includes="*" />73</copy>7475<jar jarfile="${build.dir}/${dist.jar}"76manifest="${src.dir}/MANIFEST.mf" basedir="${classes.dir}"/>77</target>7879<target name="all" depends="deploy" description="Builds sources and deployment jar"/>8081</project>828384