Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/agent/make/build.xml
38828 views
<?xml version="1.0" encoding="UTF-8"?>1<!--2Copyright (c) 2002, 2008, Oracle and/or its affiliates. All rights reserved.3DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.45This code is free software; you can redistribute it and/or modify it6under the terms of the GNU General Public License version 2 only, as7published by the Free Software Foundation.89This code is distributed in the hope that it will be useful, but WITHOUT10ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12version 2 for more details (a copy is included in the LICENSE file that13accompanied this code).1415You should have received a copy of the GNU General Public License version162 along with this work; if not, write to the Free Software Foundation,17Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.1819Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20or visit www.oracle.com if you need additional information or have any21questions.2223-->2425<!-- This is an Ant project file. Ant is a build tool like make or gnumake which is not26dependent on the underlying OS shell. For more information on Ant, please see27http://ant.apache.org/ -->2829<!-- A "project" describes a set of targets that may be requested30when Ant is executed. The "default" attribute defines the31target which is executed if no specific target is requested,32and the "basedir" attribute defines the current working directory33from which Ant executes the requested task. This is normally34set to the current working directory.35-->363738<project name="HotSpot Serviceability Agent" default="all" basedir=".">3940<!-- Property Definitions -->4142<property name="app.name" value="sa"/>43<property name="dist.jar" value="${app.name}.jar"/>44<property name="classes" value="../build/classes"/>4546<!-- The "prepare" target is used to construct the deployment home47directory structure (if necessary), and to copy in static files48as required. In the example below, Ant is instructed to create49the deployment directory, copy the contents of the "web/" source50hierarchy, and set up the WEB-INF subdirectory appropriately.51-->5253<target name="prepare">54<mkdir dir="${classes}"/>55</target>565758<!-- The "clean" target removes the deployment home directory structure,59so that the next time the "compile" target is requested, it will need60to compile everything from scratch.61-->6263<target name="clean">64<delete dir="${classes}"/>65</target>666768<!-- The "compile" target is used to compile (or recompile) the Java classes69that make up this web application. The recommended source code directory70structure makes this very easy because the <javac> task automatically71works its way down a source code hierarchy and compiles any class that72has not yet been compiled, or where the source file is newer than the73class file.7475Feel free to adjust the compilation option parameters (debug,76optimize, and deprecation) to suit your requirements. It is also77possible to base them on properties, so that you can adjust this78behavior at runtime.7980The "compile" task depends on the "prepare" task, so the deployment81home directory structure will be created if needed the first time.82-->8384<target name="compile" depends="prepare" description="Compiles the sources">85<javac srcdir="../src/share/classes"86destdir="${classes}"87debug="on" deprecation="on"88source="1.4">89<classpath refid="javac.classpath" />90</javac>9192<rmic classname="sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer"93base="${classes}"/>94</target>9596<target name="deploy" depends="compile" description="Creates a deployment bundle">97<delete file="${classes}/${dist.jar}" />98<copy todir="${classes}/sun/jvm/hotspot/utilities/soql/">99<fileset dir="../src/share/classes/sun/jvm/hotspot/utilities/soql" includes="*.js" />100</copy>101102<mkdir dir="${classes}/sun/jvm/hotspot/ui/resources" />103<copy todir="${classes}/sun/jvm/hotspot/ui/resources">104<fileset dir="../src/share/classes/sun/jvm/hotspot/ui/resources" includes="*.png" />105</copy>106<copy todir="${classes}/toolbarButtonGraphics/development/">107<fileset dir="../src/share/classes/images/toolbarButtonGraphics/development/" includes="*.gif" />108</copy>109<copy todir="${classes}/toolbarButtonGraphics/general/">110<fileset dir="../src/share/classes/images/toolbarButtonGraphics/general/" includes="*.gif" />111</copy>112<copy todir="${classes}/toolbarButtonGraphics/navigation/">113<fileset dir="../src/share/classes/images/toolbarButtonGraphics/navigation/" includes="*.gif" />114</copy>115<copy todir="${classes}/toolbarButtonGraphics/text/">116<fileset dir="../src/share/classes/images/toolbarButtonGraphics/text/" includes="*.gif" />117</copy>118119<jar jarfile="${classes}/${dist.jar}"120basedir="${classes}"/>121</target>122123<target name="all" depends="deploy" description="Builds sources and deployment jar"/>124125</project>126127128