agent/make/build.xml

Mon, 28 Jul 2014 15:06:38 -0700

author
fzhinkin
date
Mon, 28 Jul 2014 15:06:38 -0700
changeset 6997
dbb05f6d93c4
parent 1907
c18cbe5936b8
child 6876
710a3c8b516e
permissions
-rw-r--r--

8051344: JVM crashed in Compile::start() during method parsing w/ UseRTMDeopt turned on
Summary: call rtm_deopt() only if there were no compilation bailouts before.
Reviewed-by: kvn

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

mercurial