hotspot/agent/make/build.xml
author swamyv
Tue, 29 Jul 2008 13:54:27 -0700
changeset 966 9373f9953a5e
parent 1 489c9b5090e2
child 1217 5eb97f366a6a
permissions -rw-r--r--
6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar Summary: Removed maf-1_0.jar and jlfg-1_0.jar files. Reviewed-by: poonam, jjh
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="classes"  value="../build/classes"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
<!-- The "prepare" target is used to construct the deployment home
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
     directory structure (if necessary), and to copy in static files
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
     as required.  In the example below, Ant is instructed to create
489c9b5090e2 Initial load
duke
parents:
diff changeset
    50
     the deployment directory, copy the contents of the "web/" source
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
     hierarchy, and set up the WEB-INF subdirectory appropriately.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
-->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  <target name="prepare">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    55
    <mkdir dir="${classes}"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    56
  </target>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    57
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
<!-- The "clean" target removes the deployment home directory structure,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    60
     so that the next time the "compile" target is requested, it will need
489c9b5090e2 Initial load
duke
parents:
diff changeset
    61
     to compile everything from scratch.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    62
-->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    63
489c9b5090e2 Initial load
duke
parents:
diff changeset
    64
  <target name="clean">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    65
     <delete dir="${classes}"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    66
  </target>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
<!-- The "compile" target is used to compile (or recompile) the Java classes
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
     that make up this web application.  The recommended source code directory
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
     structure makes this very easy because the <javac> task automatically
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
     works its way down a source code hierarchy and compiles any class that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
     has not yet been compiled, or where the source file is newer than the
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
     class file.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
     Feel free to adjust the compilation option parameters (debug,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
     optimize, and deprecation) to suit your requirements.  It is also
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
     possible to base them on properties, so that you can adjust this
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
     behavior at runtime.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
     The "compile" task depends on the "prepare" task, so the deployment
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
     home directory structure will be created if needed the first time.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
-->
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
  <target name="compile" depends="prepare" description="Compiles the sources">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
    <javac srcdir="../src/share/classes" 
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
           destdir="${classes}"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
           debug="on" deprecation="on"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
           source="1.4">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
      <classpath refid="javac.classpath" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
    </javac>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
    <rmic classname="sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer"
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
	  base="${classes}"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  </target>
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
  <target name="deploy" depends="compile" description="Creates a deployment bundle">
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
    <delete file="${classes}/${dist.jar}" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
    <copy todir="${classes}/sun/jvm/hotspot/utilities/soql/">
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
      <fileset dir="../src/share/classes/sun/jvm/hotspot/utilities/soql" includes="*.js" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
    </copy>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
    <mkdir dir="${classes}/sun/jvm/hotspot/ui/resources" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
    <copy todir="${classes}/sun/jvm/hotspot/ui/resources">
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
      <fileset dir="../src/share/classes/sun/jvm/hotspot/ui/resources" includes="*.png" />
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
    </copy>
966
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   107
    <copy todir="${classes}/toolbarButtonGraphics/development/">
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   108
      <fileset dir="../src/share/classes/images/toolbarButtonGraphics/development/" includes="*.gif" />
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   109
    </copy>
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   110
    <copy todir="${classes}/toolbarButtonGraphics/general/">
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   111
      <fileset dir="../src/share/classes/images/toolbarButtonGraphics/general/" includes="*.gif" />
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   112
    </copy>
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   113
    <copy todir="${classes}/toolbarButtonGraphics/navigation/">
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   114
      <fileset dir="../src/share/classes/images/toolbarButtonGraphics/navigation/" includes="*.gif" />
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   115
    </copy>
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   116
    <copy todir="${classes}/toolbarButtonGraphics/text/">
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   117
      <fileset dir="../src/share/classes/images/toolbarButtonGraphics/text/" includes="*.gif" />
9373f9953a5e 6710791: Remove files or build from source:maf-1_0.jar, jlfg-1_0.jar
swamyv
parents: 1
diff changeset
   118
    </copy>
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
    <jar jarfile="${classes}/${dist.jar}"
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
         basedir="${classes}"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
  </target>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
  <target name="all" depends="deploy" description="Builds sources and deployment jar"/>
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
</project>