0N/A<?xml version="1.0"?>
0N/A
0N/A<!--
2362N/A Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
0N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A
0N/A This code is free software; you can redistribute it and/or modify it
0N/A under the terms of the GNU General Public License version 2 only, as
2362N/A published by the Free Software Foundation. Oracle designates this
0N/A particular file as subject to the "Classpath" exception as provided
2362N/A by Oracle in the LICENSE file that accompanied this code.
0N/A
0N/A This code is distributed in the hope that it will be useful, but WITHOUT
0N/A ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A version 2 for more details (a copy is included in the LICENSE file that
0N/A accompanied this code).
0N/A
0N/A You should have received a copy of the GNU General Public License version
0N/A 2 along with this work; if not, write to the Free Software Foundation,
0N/A Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A
2362N/A Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A or visit www.oracle.com if you need additional information or have any
2362N/A questions.
0N/A-->
0N/A
0N/A
0N/A
0N/A<!-- README - HOW TO USE THIS BUILD FILE
0N/A . You need Ant 1.5 or higher available in your path
0N/A . You need a build of Java SE 6 available in your path, or JAVA_HOME set to such a build
0N/A . cd to the directory containing this build.xml file
0N/A . Launch the build by typing: ant
0N/A . Please also read the important comment on basedir definition below.
0N/A -->
0N/A
2997N/A<project name="JMX API Version 1.4 - Java SE 6 implementation"
2997N/A default="jar"
2997N/A basedir="../../../../.."
0N/A >
0N/A
2997N/A <!-- IMPORTANT: BASEDIR DEFINITION
2997N/A This file is assumed to be in:
2997N/A <src_bundle_dir>/j2se/src/share/classes/javax/management
2997N/A Thus the basedir for this project is defined above as:
2997N/A basedir="../../../../.."
0N/A in order to be the parent dir of src subdir.
2997N/A Result of the build will be placed in ${basedir}/build_jmx
0N/A as defined by ${dir.build} property below.
0N/A -->
0N/A
0N/A <description>
2365N/A Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
0N/A
0N/A Description: JMX API Version 1.4 - Source Code from Java SE 6
0N/A </description>
0N/A
0N/A
0N/A <!-- build properties -->
0N/A
0N/A <property name="dir.src"
0N/A location="${basedir}/src/share/classes" />
0N/A
0N/A <property name="dir.build"
0N/A location="${basedir}/build_jmx" />
0N/A
0N/A <property name="dir.build.lib"
0N/A location="${dir.build}/lib" />
0N/A
0N/A <property name="dir.build.classes"
0N/A location="${dir.build}/classes" />
0N/A
0N/A <property name="dir.build.cache"
0N/A location="${dir.build}/cache" />
0N/A
0N/A <property name="flag.debug"
0N/A value="on" />
0N/A
0N/A <property name="flag.debug.level"
0N/A value="lines,source" />
0N/A
0N/A <property name="flag.optimize"
0N/A value="on" />
0N/A
0N/A <property name="flag.javac.source"
0N/A value="1.6" />
0N/A
0N/A <property name="flag.deprecation"
0N/A value="off" />
0N/A
0N/A <!-- ANT: when compiling, ignore the classpath in effect when Ant is run
0N/A and therefore use only the classpath specified in the javac tasks -->
0N/A <property name="build.sysclasspath"
0N/A value="ignore" />
0N/A
0N/A
0N/A
0N/A <!-- Concatenated classpaths: one classpath for each build purpose -->
0N/A
0N/A <path id="classpath.tobuild.jmx">
0N/A <!-- EMPTY, NO DEPENDENCY! -->
0N/A </path>
0N/A
0N/A
0N/A
0N/A <!-- Convert path objects to string properties for display -->
0N/A
0N/A <property name="property.classpath.tobuild.jmx" refid="classpath.tobuild.jmx" />
0N/A
0N/A
0N/A
0N/A
0N/A <!-- ********************* -->
0N/A <!-- *** BUILD TARGETS *** -->
0N/A <!-- ********************* -->
0N/A
0N/A
0N/A <!-- ~~~~~~~~~~~~~~~~~~~~ -->
0N/A <!-- Initialize the build -->
0N/A
0N/A <target name="init" >
0N/A
0N/A <!-- Set the values for build date and time -->
0N/A <tstamp>
0N/A <format property="BUILD_DATE" pattern="yyyy.MM.dd_HH:mm:ss_z" />
0N/A </tstamp>
0N/A
0N/A <!-- Create the build directory -->
0N/A <mkdir dir="${dir.build}" />
0N/A
0N/A <!-- Log the values of all properties to file -->
0N/A <echoproperties destfile="${dir.build}/properties.log" />
0N/A
0N/A <!-- Display the values of most important properties -->
0N/A <echo />
0N/A <echo>See the contents of ${dir.build}/properties.log for all defined properties.</echo>
0N/A <echo />
0N/A <echo message="MAIN JVM DEFAULT SYSTEM PROPERTIES: " />
0N/A <echo message=" java.runtime.version = ${java.runtime.version}" />
0N/A <echo message=" java.home = ${java.home}" />
0N/A <echo message=" os.arch = ${os.arch}" />
0N/A <echo message=" os.name = ${os.name}" />
0N/A <echo message=" os.version = ${os.version}" />
0N/A <echo message=" user.name = ${user.name}" />
0N/A <echo />
0N/A <echo message="ANT BUILT-IN PROPERTIES: " />
0N/A <echo message=" basedir = ${basedir}" />
0N/A <echo message=" ant.file = ${ant.file}" />
0N/A <echo message=" ant.version = ${ant.version}" />
0N/A <echo message=" ant.project.name = ${ant.project.name}" />
0N/A <echo message=" ant.java.version = ${ant.java.version}" />
0N/A <echo />
0N/A <echo message="MAIN ANT BUILD-SET PROPERTIES: " />
0N/A <echo message=" dir.src = ${dir.src}" />
0N/A <echo message=" dir.build = ${dir.build}" />
0N/A <echo message=" classpath.tobuild.jmx = ${property.classpath.tobuild.jmx}" />
0N/A <echo message=" flag.debug = ${flag.debug}" />
0N/A <echo message=" flag.debug.level = ${flag.debug.level}" />
0N/A <echo message=" flag.optimize = ${flag.optimize}" />
0N/A <echo message=" flag.javac.source = ${flag.javac.source}" />
0N/A <echo message=" flag.deprecation = ${flag.deprecation}" />
0N/A <echo message=" BUILD_DATE = ${BUILD_DATE}" />
0N/A
0N/A </target>
2997N/A
0N/A
0N/A
0N/A <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
0N/A <!-- Call classes subtargets and rmic stubs generation -->
0N/A
2997N/A <target name="classes" depends="init,classes-javac,classes-rmic"
2997N/A description="Call classes subtargets and rmic stubs generation"
0N/A />
0N/A
0N/A
0N/A <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
0N/A <!-- Build JMX java files -->
0N/A
0N/A <target name="classes-javac" depends="init"
0N/A description="Build JMX java files" >
0N/A
0N/A <mkdir dir="${dir.build.classes}" />
0N/A
0N/A <javac srcdir="${dir.src}"
2997N/A destdir="${dir.build.classes}"
0N/A source="${flag.javac.source}"
0N/A debug="${flag.debug}"
0N/A debuglevel="${flag.debug.level}"
0N/A optimize="${flag.optimize}"
0N/A includeAntRuntime="no"
2997N/A includeJavaRuntime="no"
0N/A >
0N/A <include name="javax/management/**"/>
0N/A <include name="com/sun/jmx/**"/>
0N/A </javac>
0N/A
0N/A </target>
0N/A
0N/A
0N/A <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
0N/A <!-- Generate RMI JRMP and IIOP stub class files for remote objects -->
0N/A
0N/A <target name="classes-rmic" depends="init,classes-javac"
0N/A description="Generate RMI JRMP and IIOP stub class files for remote objects" >
0N/A
0N/A
0N/A <!-- JRMP Stubs -->
0N/A
0N/A <rmic base="${dir.build.classes}"
0N/A classname="javax.management.remote.rmi.RMIConnectionImpl"
0N/A includeAntRuntime="no"
0N/A includeJavaRuntime="no"
0N/A stubversion="1.2"
0N/A >
0N/A </rmic>
0N/A
0N/A <rmic base="${dir.build.classes}"
0N/A classname="javax.management.remote.rmi.RMIServerImpl"
0N/A includeAntRuntime="no"
0N/A includeJavaRuntime="no"
0N/A stubversion="1.2"
0N/A >
0N/A </rmic>
0N/A
0N/A
0N/A <!-- IIOP Stubs -->
0N/A
0N/A <rmic base="${dir.build.classes}"
0N/A classname="javax.management.remote.rmi.RMIConnectionImpl"
0N/A includeAntRuntime="no"
0N/A includeJavaRuntime="no"
0N/A iiop="yes"
0N/A >
0N/A </rmic>
0N/A
0N/A <rmic base="${dir.build.classes}"
0N/A classname="javax.management.remote.rmi.RMIServerImpl"
0N/A includeAntRuntime="no"
0N/A includeJavaRuntime="no"
0N/A iiop="yes"
0N/A >
0N/A </rmic>
0N/A
0N/A </target>
0N/A
0N/A
0N/A <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
0N/A <!-- Jar all JMX classes -->
0N/A
0N/A <target name="jar" depends="init,classes"
0N/A description="Jar all JMX classes" >
0N/A
0N/A <mkdir dir="${dir.build.lib}" />
0N/A
2997N/A <jar jarfile="${dir.build.lib}/jmx.jar"
0N/A update="true"
0N/A >
0N/A
0N/A <fileset dir="${dir.build.classes}"
0N/A includes="**/*.class"
0N/A />
0N/A
0N/A <manifest >
0N/A <attribute name="Build-JDK" value="${java.runtime.version}" />
0N/A <attribute name="Build-Platform" value="${os.arch} ${os.name} ${os.version}" />
0N/A <attribute name="Build-User" value="${user.name}" />
0N/A <section name="common">
0N/A <attribute name="Sealed" value="true" />
0N/A <attribute name="Specification-Title" value="JMX(TM) API" />
0N/A <attribute name="Specification-Version" value="1.4" />
2997N/A <attribute name="Specification-Vendor" value="Oracle Corporation" />
0N/A <attribute name="Implementation-Title" value="JMX(TM) API, Java SE 6 implementation" />
2997N/A <attribute name="Implementation-Version" value="${BUILD_DATE} rebuild of Java SE JMX sources" />
2997N/A <attribute name="Implementation-Vendor" value="Source bundle from Oracle Corporation - Customer rebuilt" />
0N/A </section>
0N/A </manifest>
0N/A </jar>
0N/A
0N/A </target>
0N/A
0N/A
0N/A
0N/A <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
0N/A <!-- Delete only all class files in build/classes directory hierarchy -->
0N/A
0N/A <target name="clean-classes"
0N/A description="Delete only all *.class files in build_jmx/classes dir" >
0N/A <delete>
0N/A <fileset dir="${dir.build.classes}" includes="**/*.class" />
0N/A </delete>
0N/A </target>
0N/A
0N/A
0N/A <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
0N/A <!-- Delete build directory and all its contents -->
0N/A
2997N/A <target name="clean-all"
0N/A description="Delete build directory and all its contents" >
0N/A <delete dir="${dir.build}" />
2997N/A </target>
2997N/A
2997N/A
0N/A <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
0N/A <!-- Clean all and build everything -->
0N/A
2997N/A <target name="all" depends="clean-all,jar"
0N/A description="Clean all and build everything" />
0N/A
0N/A
0N/A</project>
0N/A