Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/make/netbeans/jmx/build.xml
38813 views
<!--1Copyright (c) 2007, 2008, Oracle and/or its affiliates. All rights reserved.23Redistribution and use in source and binary forms, with or without4modification, are permitted provided that the following conditions5are met:67- Redistributions of source code must retain the above copyright8notice, this list of conditions and the following disclaimer.910- Redistributions in binary form must reproduce the above copyright11notice, this list of conditions and the following disclaimer in the12documentation and/or other materials provided with the distribution.1314- Neither the name of Oracle nor the names of its15contributors may be used to endorse or promote products derived16from this software without specific prior written permission.1718THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS19IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,20THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR21PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR22CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,23EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,24PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR25PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF26LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING27NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS28SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.29-->3031<project name="jmx" default="build" basedir=".">3233<import file="../common/shared.xml"/>3435<target name="-pre-init">36<!-- Set the values for build date and time -->37<tstamp>38<format property="BUILD_DATE" pattern="yyyy.MM.dd_HH:mm:ss_z" />39<format property="BUILD_DATE_SIMPLE" pattern="dd_MMM_yyyy" />40</tstamp>4142<!-- These properties are set here instead of in the build.properties file, -->43<!-- because they depend on the values of BUILD_DATE and BUILD_DATE_SIMPLE -->44<!-- At this time, ./build.properties has not been loaded yet. -->45<property name="project.build.name" value="openjdk-bXX"/>46<property name="project.build.fulltag"47value="${ant.project.name}-${project.build.name}-${BUILD_DATE}" />4849<!-- unchecked warnings will be fixed in JMX 2.0 as part of the work50being done on JSR 255 new features -->51<property name="javac.options"52value="-Xlint -Xlint:-deprecation"/>53</target>545556<target name="-pre-compile" depends="-init">57<!-- Dir to keep generated stub source -->58<mkdir dir="${gensrc.dir}" />59</target>606162<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~ -->63<!-- Call rmic-jmx subtargets -->6465<target name="-rmic-jmx" depends="-init,-rmic-jmx-jrmp,-rmic-jmx-iiop"66description="Calls -init,-rmic-jmx-jrmp,-rmic-jmx-iiop"67/>686970<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->71<!-- Generate RMI JRMP stub class files for remote objects -->72<!-- Generated java files are kept in a separate directory -->7374<target name="-rmic-jmx-jrmp" depends="-init"75description="Generate RMI JRMP stub class files for remote objects. Keep generated java files in separate dir." >7677<!-- Dir to keep generated stub source -->78<mkdir dir="${gensrc.dir}" />7980<rmic base="${classes.dir}/javax/management"81sourcebase="${gensrc.dir}"82includeAntRuntime="no"83includeJavaRuntime="no"84stubversion="1.2"85>86<include name="javax/management/remote/rmi/RMIConnectionImpl.class" />87<include name="javax/management/remote/rmi/RMIServerImpl.class" />88</rmic>8990</target>919293<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->94<!-- Generate RMI IIOP stub class files for remote objects -->9596<target name="-rmic-jmx-iiop" depends="-init,-check-jmx-iiop-uptodate" unless="jmx-iiop-uptodate"97description="Generate RMI IIOP stub class files for remote objects. Do not keep generated java files." >9899<rmic base="${classes.dir}"100includeAntRuntime="no"101includeJavaRuntime="no"102stubversion="1.2"103iiop="yes"104>105<include name="javax/management/remote/rmi/RMIConnectionImpl.class" />106<include name="javax/management/remote/rmi/RMIServerImpl.class" />107</rmic>108109</target>110111112<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->113<!-- Check if jmx rmic generated IIOP stub and tie class files are up to date -->114115<target name="-check-jmx-iiop-uptodate" depends="-init">116117<uptodate property="jmx-iiop-uptodate"118srcfile="${classes.dir}/javax/management/remote/rmi/RMIConnectionImpl.class"119targetfile="${classes.dir}/org/omg/stub/javax/management/remote/rmi/_RMIConnectionImpl_Tie.class"120/>121<uptodate property="jmx-iiop-uptodate"122srcfile="${classes.dir}/javax/management/remote/rmi/RMIServerImpl.class"123targetfile="${classes.dir}/org/omg/stub/javax/management/remote/rmi/_RMIServerImpl_Tie.class"124/>125126<echo message="jmx-iiop-uptodate=${jmx-iiop-uptodate}" />127128</target>129130<target name="-post-compile" depends="-init,-rmic-jmx"131description="Jar JMX class files (including RMI stubs)" >132<mkdir dir="${dist.dir}/lib"/>133<jar jarfile="${dist.dir}/lib/${jar.jmx.name}"134update="true"135index="false"136duplicate="fail">137<fileset dir="${classes.dir}" excludes="**/*.java"/>138<manifest >139<attribute name="Built-By" value="${user.name}" />140<section name="common">141<attribute name="Sealed" value="${jar.jmx.sealed}" />142<attribute name="Specification-Title" value="${jar.jmx.spec.title}" />143<attribute name="Specification-Version" value="${jar.jmx.spec.version}" />144<attribute name="Specification-Vendor" value="${jar.jmx.spec.vendor}" />145<attribute name="Implementation-Title" value="${jar.jmx.impl.title}" />146<attribute name="Implementation-Version" value="${project.build.fulltag}" />147<attribute name="Implementation-Vendor" value="${jar.jmx.impl.vendor}" />148</section>149</manifest>150</jar>151</target>152153<target name="clean" depends="-init,shared.clean">154<delete file="${dist.dir}/lib/${jar.jmx.name}"/>155</target>156</project>157158159