annotate make/netbeans/jmx/build.xml @ 726:3ef0bdfa7609

6785258: Update copyright year Summary: Update copyright for files that have been modified starting July 2008 to Dec 2008 Reviewed-by: katleman, ohair, tbell
author xdono
date Mon, 15 Dec 2008 16:55:25 -0800
parents 76ecb928e83a
children 00cd9dc3c2b5
rev   line source
duke@0 1 <!--
xdono@726 2 Copyright 2007-2008 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3
duke@0 4 Redistribution and use in source and binary forms, with or without
duke@0 5 modification, are permitted provided that the following conditions
duke@0 6 are met:
duke@0 7
duke@0 8 - Redistributions of source code must retain the above copyright
duke@0 9 notice, this list of conditions and the following disclaimer.
duke@0 10
duke@0 11 - Redistributions in binary form must reproduce the above copyright
duke@0 12 notice, this list of conditions and the following disclaimer in the
duke@0 13 documentation and/or other materials provided with the distribution.
duke@0 14
duke@0 15 - Neither the name of Sun Microsystems nor the names of its
duke@0 16 contributors may be used to endorse or promote products derived
duke@0 17 from this software without specific prior written permission.
duke@0 18
duke@0 19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
duke@0 20 IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
duke@0 21 THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
duke@0 22 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
duke@0 23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
duke@0 24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
duke@0 25 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
duke@0 26 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
duke@0 27 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
duke@0 28 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
duke@0 29 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
duke@0 30 -->
duke@0 31
duke@0 32 <project name="jmx" default="build" basedir=".">
duke@0 33
duke@0 34 <import file="../common/shared.xml"/>
duke@0 35
duke@0 36 <target name="-pre-init">
duke@0 37 <!-- Set the values for build date and time -->
duke@0 38 <tstamp>
duke@0 39 <format property="BUILD_DATE" pattern="yyyy.MM.dd_HH:mm:ss_z" />
duke@0 40 <format property="BUILD_DATE_SIMPLE" pattern="dd_MMM_yyyy" />
duke@0 41 </tstamp>
duke@0 42
duke@0 43 <!-- These properties are set here instead of in the build.properties file, -->
duke@0 44 <!-- because they depend on the values of BUILD_DATE and BUILD_DATE_SIMPLE -->
duke@0 45 <!-- At this time, ./build.properties has not been loaded yet. -->
duke@0 46 <property name="project.build.name" value="openjdk-bXX"/>
emcmanus@686 47 <property name="project.build.fulltag"
duke@0 48 value="${ant.project.name}-${project.build.name}-${BUILD_DATE}" />
duke@0 49
duke@0 50 <!-- unchecked warnings will be fixed in JMX 2.0 as part of the work
duke@0 51 being done on JSR 255 new features -->
emcmanus@686 52 <property name="javac.options"
emcmanus@686 53 value="-Xlint -Xlint:-deprecation"/>
duke@0 54 </target>
duke@0 55
duke@0 56
duke@0 57 <target name="-pre-compile" depends="-init">
duke@0 58 <!-- Dir to keep generated stub source -->
duke@0 59 <mkdir dir="${gensrc.dir}" />
duke@0 60 </target>
emcmanus@686 61
duke@0 62
duke@0 63 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~ -->
duke@0 64 <!-- Call rmic-jmx subtargets -->
duke@0 65
duke@0 66 <target name="-rmic-jmx" depends="-init,-rmic-jmx-jrmp,-rmic-jmx-iiop"
emcmanus@686 67 description="Calls -init,-rmic-jmx-jrmp,-rmic-jmx-iiop"
duke@0 68 />
duke@0 69
duke@0 70
duke@0 71 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
duke@0 72 <!-- Generate RMI JRMP stub class files for remote objects -->
duke@0 73 <!-- Generated java files are kept in a separate directory -->
duke@0 74
duke@0 75 <target name="-rmic-jmx-jrmp" depends="-init"
duke@0 76 description="Generate RMI JRMP stub class files for remote objects. Keep generated java files in separate dir." >
duke@0 77
duke@0 78 <!-- Dir to keep generated stub source -->
duke@0 79 <mkdir dir="${gensrc.dir}" />
duke@0 80
duke@0 81 <rmic base="${classes.dir}/javax/management"
duke@0 82 sourcebase="${gensrc.dir}"
duke@0 83 includeAntRuntime="no"
duke@0 84 includeJavaRuntime="no"
duke@0 85 stubversion="1.2"
duke@0 86 >
duke@0 87 <include name="javax/management/remote/rmi/RMIConnectionImpl.class" />
duke@0 88 <include name="javax/management/remote/rmi/RMIServerImpl.class" />
duke@0 89 </rmic>
duke@0 90
duke@0 91 </target>
duke@0 92
duke@0 93
duke@0 94 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
duke@0 95 <!-- Generate RMI IIOP stub class files for remote objects -->
duke@0 96
duke@0 97 <target name="-rmic-jmx-iiop" depends="-init,-check-jmx-iiop-uptodate" unless="jmx-iiop-uptodate"
duke@0 98 description="Generate RMI IIOP stub class files for remote objects. Do not keep generated java files." >
emcmanus@686 99
duke@0 100 <rmic base="${classes.dir}"
duke@0 101 includeAntRuntime="no"
duke@0 102 includeJavaRuntime="no"
duke@0 103 stubversion="1.2"
duke@0 104 iiop="yes"
duke@0 105 >
duke@0 106 <include name="javax/management/remote/rmi/RMIConnectionImpl.class" />
duke@0 107 <include name="javax/management/remote/rmi/RMIServerImpl.class" />
duke@0 108 </rmic>
duke@0 109
duke@0 110 </target>
duke@0 111
duke@0 112
duke@0 113 <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
duke@0 114 <!-- Check if jmx rmic generated IIOP stub and tie class files are up to date -->
duke@0 115
duke@0 116 <target name="-check-jmx-iiop-uptodate" depends="-init">
duke@0 117
emcmanus@686 118 <uptodate property="jmx-iiop-uptodate"
duke@0 119 srcfile="${classes.dir}/javax/management/remote/rmi/RMIConnectionImpl.class"
duke@0 120 targetfile="${classes.dir}/org/omg/stub/javax/management/remote/rmi/_RMIConnectionImpl_Tie.class"
duke@0 121 />
emcmanus@686 122 <uptodate property="jmx-iiop-uptodate"
duke@0 123 srcfile="${classes.dir}/javax/management/remote/rmi/RMIServerImpl.class"
duke@0 124 targetfile="${classes.dir}/org/omg/stub/javax/management/remote/rmi/_RMIServerImpl_Tie.class"
duke@0 125 />
duke@0 126
duke@0 127 <echo message="jmx-iiop-uptodate=${jmx-iiop-uptodate}" />
duke@0 128
duke@0 129 </target>
duke@0 130
duke@0 131 <target name="-post-compile" depends="-init,-rmic-jmx"
duke@0 132 description="Jar JMX class files (including RMI stubs)" >
duke@0 133 <mkdir dir="${dist.dir}/lib"/>
emcmanus@686 134 <jar jarfile="${dist.dir}/lib/${jar.jmx.name}"
duke@0 135 update="true"
duke@0 136 index="false"
duke@0 137 duplicate="fail">
duke@0 138 <fileset dir="${classes.dir}" excludes="**/*.java"/>
duke@0 139 <manifest >
duke@0 140 <attribute name="Built-By" value="${user.name}" />
duke@0 141 <section name="common">
duke@0 142 <attribute name="Sealed" value="${jar.jmx.sealed}" />
duke@0 143 <attribute name="Specification-Title" value="${jar.jmx.spec.title}" />
duke@0 144 <attribute name="Specification-Version" value="${jar.jmx.spec.version}" />
duke@0 145 <attribute name="Specification-Vendor" value="${jar.jmx.spec.vendor}" />
duke@0 146 <attribute name="Implementation-Title" value="${jar.jmx.impl.title}" />
emcmanus@686 147 <attribute name="Implementation-Version" value="${project.build.fulltag}" />
duke@0 148 <attribute name="Implementation-Vendor" value="${jar.jmx.impl.vendor}" />
duke@0 149 </section>
duke@0 150 </manifest>
duke@0 151 </jar>
duke@0 152 </target>
duke@0 153
duke@0 154 <target name="clean" depends="-init,shared.clean">
duke@0 155 <delete file="${dist.dir}/lib/${jar.jmx.name}"/>
duke@0 156 </target>
duke@0 157 </project>