jdk/src/share/classes/javax/management/build.xml
author ohair
Tue, 25 May 2010 15:58:33 -0700
changeset 5506 202f599c92aa
parent 2 90ce3da70b43
child 5551 327690766109
permissions -rw-r--r--
6943119: Rebrand source copyright notices Reviewed-by: darcy, weijun
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<?xml version="1.0"?>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
<!--
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     4
 Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    11
 by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    24
 or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    25
 questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
-->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
<!-- README - HOW TO USE THIS BUILD FILE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
     . You need Ant 1.5 or higher available in your path
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
     . You need a build of Java SE 6 available in your path, or JAVA_HOME set to such a build
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
     . cd to the directory containing this build.xml file
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
     . Launch the build by typing: ant
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
     . Please also read the important comment on basedir definition below.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
<project name="JMX API Version 1.4 - Java SE 6 implementation" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
	 default="jar" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
	 basedir="../../../../.." 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
	 >
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    <!-- IMPORTANT: BASEDIR DEFINITION  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
         This file is assumed to be in: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
         <src_bundle_dir>/j2se/src/share/classes/javax/management 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
         Thus the basedir for this project is defined above as: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
         basedir="../../../../.."  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
         in order to be the parent dir of src subdir.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
	 Result of the build will be placed in ${basedir}/build_jmx 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
	 as defined by ${dir.build} property below.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
     -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    <description>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
	Copyright 2006 Sun Microsystems, Inc.  All rights reserved. Use is subject to license terms.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
        Description: JMX API Version 1.4 - Source Code from Java SE 6
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    </description>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    <!-- build properties -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    <property name="dir.src"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
	      location="${basedir}/src/share/classes" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    <property name="dir.build"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
	      location="${basedir}/build_jmx" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    <property name="dir.build.lib"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
	      location="${dir.build}/lib" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    <property name="dir.build.classes"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
	      location="${dir.build}/classes" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    <property name="dir.build.cache"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
	      location="${dir.build}/cache" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    <property name="flag.debug"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
	      value="on" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    <property name="flag.debug.level"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
	      value="lines,source" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    <property name="flag.optimize"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
	      value="on" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    <property name="flag.javac.source"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
	      value="1.6" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    <property name="flag.deprecation"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
	      value="off" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    <!-- ANT: when compiling, ignore the classpath in effect when Ant is run
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
	      and therefore use only the classpath specified in the javac tasks -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    <property name="build.sysclasspath"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
	      value="ignore" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    <!-- Concatenated classpaths: one classpath for each build purpose -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    <path id="classpath.tobuild.jmx">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
	<!-- EMPTY, NO DEPENDENCY! -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    </path>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    <!-- Convert path objects to string properties for display -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    <property name="property.classpath.tobuild.jmx"	refid="classpath.tobuild.jmx" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
    <!-- ********************* -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    <!-- *** BUILD TARGETS *** -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    <!-- ********************* -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    <!-- ~~~~~~~~~~~~~~~~~~~~ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    <!-- Initialize the build -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    <target name="init" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        <!-- Set the values for build date and time -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        <tstamp>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
	    <format property="BUILD_DATE"        pattern="yyyy.MM.dd_HH:mm:ss_z" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        </tstamp>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
        <!-- Create the build directory -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        <mkdir dir="${dir.build}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        <!-- Log the values of all properties to file -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        <echoproperties destfile="${dir.build}/properties.log" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        <!-- Display the values of most important properties -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
	<echo />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
	<echo>See the contents of ${dir.build}/properties.log for all defined properties.</echo>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
	<echo />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        <echo message="MAIN JVM DEFAULT SYSTEM PROPERTIES: " />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        <echo message="   java.runtime.version        = ${java.runtime.version}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
        <echo message="   java.home                   = ${java.home}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
        <echo message="   os.arch                     = ${os.arch}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
        <echo message="   os.name                     = ${os.name}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        <echo message="   os.version                  = ${os.version}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        <echo message="   user.name                   = ${user.name}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
	<echo />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        <echo message="ANT BUILT-IN PROPERTIES: " />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        <echo message="   basedir                     = ${basedir}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        <echo message="   ant.file                    = ${ant.file}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
        <echo message="   ant.version                 = ${ant.version}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
        <echo message="   ant.project.name            = ${ant.project.name}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
        <echo message="   ant.java.version            = ${ant.java.version}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
	<echo />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        <echo message="MAIN ANT BUILD-SET PROPERTIES: " />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
        <echo message="   dir.src                     = ${dir.src}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
        <echo message="   dir.build                   = ${dir.build}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        <echo message="   classpath.tobuild.jmx       = ${property.classpath.tobuild.jmx}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        <echo message="   flag.debug                  = ${flag.debug}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        <echo message="   flag.debug.level            = ${flag.debug.level}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
        <echo message="   flag.optimize               = ${flag.optimize}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
        <echo message="   flag.javac.source           = ${flag.javac.source}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        <echo message="   flag.deprecation            = ${flag.deprecation}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        <echo message="   BUILD_DATE                  = ${BUILD_DATE}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
    <!-- Call classes subtargets and rmic stubs generation -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
    <target name="classes" depends="init,classes-javac,classes-rmic" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
	    description="Call classes subtargets and rmic stubs generation" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
    />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    <!-- Build JMX java files                  -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
    <target name="classes-javac" depends="init"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
	    description="Build JMX java files" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        <mkdir dir="${dir.build.classes}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
	<javac 	srcdir="${dir.src}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
		destdir="${dir.build.classes}" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
		source="${flag.javac.source}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
		debug="${flag.debug}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
		debuglevel="${flag.debug.level}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
		optimize="${flag.optimize}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
		includeAntRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
		includeJavaRuntime="no"	
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
	        >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
	    <include name="javax/management/**"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
	    <include name="com/sun/jmx/**"/>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
	</javac>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    <!-- Generate RMI JRMP and IIOP stub class files for remote objects -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    <target name="classes-rmic" depends="init,classes-javac"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
            description="Generate RMI JRMP and IIOP stub class files for remote objects" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
	<!-- JRMP Stubs -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        <rmic 	base="${dir.build.classes}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
		classname="javax.management.remote.rmi.RMIConnectionImpl"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
		includeAntRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
		includeJavaRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
		stubversion="1.2"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
		>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
	</rmic>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
	<rmic	base="${dir.build.classes}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
		classname="javax.management.remote.rmi.RMIServerImpl"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
		includeAntRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
		includeJavaRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
		stubversion="1.2"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
		>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
        </rmic>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
	<!-- IIOP Stubs -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
	<rmic 	base="${dir.build.classes}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
		classname="javax.management.remote.rmi.RMIConnectionImpl"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
		includeAntRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
		includeJavaRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
		iiop="yes"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
		>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
	</rmic>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
	<rmic	base="${dir.build.classes}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
		classname="javax.management.remote.rmi.RMIServerImpl"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
		includeAntRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
		includeJavaRuntime="no"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
		iiop="yes"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
		>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
        </rmic>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    <!-- Jar all JMX  classes                 -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    <target name="jar" depends="init,classes"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
            description="Jar all JMX classes" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
       <mkdir dir="${dir.build.lib}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
       <jar jarfile="${dir.build.lib}/jmx.jar" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
	    update="true"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
	    >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
	    <fileset dir="${dir.build.classes}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
		includes="**/*.class"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
	    />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
	    <manifest >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
		    <attribute name="Build-JDK"              value="${java.runtime.version}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
		    <attribute name="Build-Platform"         value="${os.arch} ${os.name} ${os.version}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
		    <attribute name="Build-User"             value="${user.name}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
		<section name="common">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
		    <attribute name="Sealed"                 value="true" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
		    <attribute name="Specification-Title"    value="JMX(TM) API" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
		    <attribute name="Specification-Version"  value="1.4" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
		    <attribute name="Specification-Vendor"   value="Sun Microsystems, Inc." />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
		    <attribute name="Implementation-Title"   value="JMX(TM) API, Java SE 6 implementation" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
		    <attribute name="Implementation-Version" value="${BUILD_DATE} rebuild of Mustang JMX sources" /> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
		    <attribute name="Implementation-Vendor"  value="Source bundle from Sun Microsystems, Inc. - Customer rebuilt" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
		</section>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
	    </manifest>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
       </jar>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
    <!-- Delete only all class files in build/classes directory hierarchy -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
    <target name="clean-classes"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
            description="Delete only all *.class files in build_jmx/classes dir" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
        <delete>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
           <fileset dir="${dir.build.classes}" includes="**/*.class" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
        </delete>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
    </target>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
    <!-- Delete build directory and all its contents -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
    <target name="clean-all" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
            description="Delete build directory and all its contents" >
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
        <delete dir="${dir.build}" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
    </target>               
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
    <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
    <!-- Clean all and build everything -->
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
    <target name="all" depends="clean-all,jar" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
	    description="Clean all and build everything" />
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
</project>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312