author | xdono |
Wed, 02 Jul 2008 12:55:45 -0700 | |
changeset 715 | f16baef3a20e |
parent 468 | 642c8c0be52e |
child 5506 | 202f599c92aa |
permissions | -rw-r--r-- |
2 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
||
3 |
<!-- |
|
715 | 4 |
Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved. |
2 | 5 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6 |
||
7 |
This code is free software; you can redistribute it and/or modify it |
|
8 |
under the terms of the GNU General Public License version 2 only, as |
|
9 |
published by the Free Software Foundation. Sun designates this |
|
10 |
particular file as subject to the "Classpath" exception as provided |
|
11 |
by Sun in the LICENSE file that accompanied this code. |
|
12 |
||
13 |
This code is distributed in the hope that it will be useful, but WITHOUT |
|
14 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 |
version 2 for more details (a copy is included in the LICENSE file that |
|
17 |
accompanied this code). |
|
18 |
||
19 |
You should have received a copy of the GNU General Public License version |
|
20 |
2 along with this work; if not, write to the Free Software Foundation, |
|
21 |
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
22 |
||
23 |
Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
|
24 |
CA 95054 USA or visit www.sun.com if you need additional information or |
|
25 |
have any questions. |
|
26 |
--> |
|
27 |
||
28 |
<!-- |
|
29 |
||
30 |
The Original Code is HAT. The Initial Developer of the |
|
31 |
Original Code is Bill Foote, with contributions from others |
|
468
642c8c0be52e
6695553: Cleanup GPLv2+SPL legal notices in hat sources
ohair
parents:
2
diff
changeset
|
32 |
at JavaSoft/Sun. |
2 | 33 |
|
34 |
--> |
|
35 |
||
36 |
<!-- This is an Ant project file to build Heap Analysis Tool (HAT). |
|
37 |
For more information on Ant, please see http://ant.apache.org/ |
|
38 |
||
39 |
To build jhat.jar, run ant in current directory. jhat.jar is |
|
40 |
built in ./build directory. |
|
41 |
--> |
|
42 |
||
43 |
<project name="Java Heap Analysis Tool" default="all" basedir="."> |
|
44 |
||
45 |
<!-- Property Definitions --> |
|
46 |
||
47 |
<property name="app.name" value="jhat"/> |
|
48 |
<property name="src.dir" value="."/> |
|
49 |
<property name="build.dir" value="build"/> |
|
50 |
<property name="classes.dir" value="${build.dir}/classes"/> |
|
51 |
<property name="dist.jar" value="${app.name}.jar"/> |
|
52 |
||
53 |
<target name="prepare"> |
|
54 |
<mkdir dir="${build.dir}"/> |
|
55 |
<mkdir dir="${classes.dir}"/> |
|
56 |
</target> |
|
57 |
||
58 |
<target name="clean"> |
|
59 |
<delete dir="${build.dir}"/> |
|
60 |
</target> |
|
61 |
||
62 |
<target name="compile" depends="prepare" description="Compiles the sources"> |
|
63 |
<javac srcdir="${src.dir}" destdir="${classes.dir}" |
|
64 |
debug="on" deprecation="on"> |
|
65 |
</javac> |
|
66 |
||
67 |
</target> |
|
68 |
||
69 |
<target name="deploy" depends="compile" description="Creates a deployment bundle"> |
|
70 |
<delete file="${build.dir}/${dist.jar}" /> |
|
71 |
<mkdir dir="${classes.dir}/com/sun/tools/hat/resources" /> |
|
72 |
<copy todir="${classes.dir}/com/sun/tools/hat/resources"> |
|
73 |
<fileset dir="${src.dir}/resources" includes="*" /> |
|
74 |
</copy> |
|
75 |
||
76 |
<jar jarfile="${build.dir}/${dist.jar}" |
|
77 |
manifest="${src.dir}/MANIFEST.mf" basedir="${classes.dir}"/> |
|
78 |
</target> |
|
79 |
||
80 |
<target name="all" depends="deploy" description="Builds sources and deployment jar"/> |
|
81 |
||
82 |
</project> |