hotspot/agent/make/build.xml
author kvn
Mon, 25 Feb 2008 15:05:44 -0800
changeset 202 dc13bf0e5d5d
parent 1 489c9b5090e2
child 966 9373f9953a5e
permissions -rw-r--r--
6633953: type2aelembytes{T_ADDRESS} should be 8 bytes in 64 bit VM Summary: T_ADDRESS size is defined as 'int' size (4 bytes) but C2 use it for raw pointers and as memory type for StoreP and LoadP nodes. Reviewed-by: jrose
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
489c9b5090e2 Initial load
duke
parents:
diff changeset
     2
<!--
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 Copyright 2002-2007 Sun Microsystems, Inc.  All Rights Reserved.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    19
489c9b5090e2 Initial load
duke
parents:
diff changeset
    20
 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    21
 CA 95054 USA or visit www.sun.com if you need additional information or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 have any questions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
  
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
-->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    25
489c9b5090e2 Initial load
duke
parents:
diff changeset
    26
<!-- This is an Ant project file. Ant is a build tool like make or gnumake which is not
489c9b5090e2 Initial load
duke
parents:
diff changeset
    27
     dependent on the underlying OS shell. For more information on Ant, please see
489c9b5090e2 Initial load
duke
parents:
diff changeset
    28
     http://ant.apache.org/ -->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    29
489c9b5090e2 Initial load
duke
parents:
diff changeset
    30
<!-- A "project" describes a set of targets that may be requested
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
     when Ant is executed.  The "default" attribute defines the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
     target which is executed if no specific target is requested,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
     and the "basedir" attribute defines the current working directory
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
     from which Ant executes the requested task.  This is normally
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
     set to the current working directory.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
-->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
<project name="HotSpot Serviceability Agent" default="all" basedir=".">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
489c9b5090e2 Initial load
duke
parents:
diff changeset
    41
  <!-- Property Definitions -->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    42
489c9b5090e2 Initial load
duke
parents:
diff changeset
    43
  <property name="app.name" value="sa"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    44
  <property name="dist.jar" value="${app.name}.jar"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    45
  <property name="libs"     value="../src/share/lib"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
  <property name="classes"  value="../build/classes"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
<!-- The "prepare" target is used to construct the deployment home
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
     directory structure (if necessary), and to copy in static files
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
     as required.  In the example below, Ant is instructed to create
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
     the deployment directory, copy the contents of the "web/" source
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
     hierarchy, and set up the WEB-INF subdirectory appropriately.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
-->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
  <target name="prepare">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
    <mkdir dir="${classes}"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
  </target>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
<!-- The "clean" target removes the deployment home directory structure,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
     so that the next time the "compile" target is requested, it will need
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
     to compile everything from scratch.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
-->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
  <target name="clean">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
     <delete dir="${classes}"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
  </target>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
<!-- The "compile" target is used to compile (or recompile) the Java classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
     that make up this web application.  The recommended source code directory
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
     structure makes this very easy because the <javac> task automatically
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
     works its way down a source code hierarchy and compiles any class that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
     has not yet been compiled, or where the source file is newer than the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
     class file.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
     Feel free to adjust the compilation option parameters (debug,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
     optimize, and deprecation) to suit your requirements.  It is also
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
     possible to base them on properties, so that you can adjust this
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
     behavior at runtime.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
     The "compile" task depends on the "prepare" task, so the deployment
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
     home directory structure will be created if needed the first time.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
-->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  <path id="javac.classpath">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
    <pathelement path="${libs}/maf-1_0.jar" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
    <pathelement path="${libs}/jlfgr-1_0.jar" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  </path>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  <target name="compile" depends="prepare" description="Compiles the sources">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
    <javac srcdir="../src/share/classes" 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
           destdir="${classes}"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
           debug="on" deprecation="on"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
           source="1.4">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
      <classpath refid="javac.classpath" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
    </javac>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
    <rmic classname="sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
	  base="${classes}"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
  </target>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  <target name="deploy" depends="compile" description="Creates a deployment bundle">
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
    <delete file="${classes}/${dist.jar}" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
    <copy todir="${classes}/sun/jvm/hotspot/utilities/soql/">
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
      <fileset dir="../src/share/classes/sun/jvm/hotspot/utilities/soql" includes="*.js" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
    </copy>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
    <mkdir dir="${classes}/sun/jvm/hotspot/ui/resources" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
    <copy todir="${classes}/sun/jvm/hotspot/ui/resources">
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
      <fileset dir="../src/share/classes/sun/jvm/hotspot/ui/resources" includes="*.png" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
    </copy>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
    <jar jarfile="${classes}/${dist.jar}"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   115
         basedir="${classes}"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
  </target>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
  <target name="all" depends="deploy" description="Builds sources and deployment jar"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
</project>