annotate jaxws/build-drop-template.xml @ 10401:49c33dd39bba

Added tag jdk8-b05 for changeset c4f9ea1ecb55
author duke
date Wed, 05 Jul 2017 17:50:24 +0200
parents 0ca88d5cdd40
children
rev   line source
ohair@3885 1 <?xml version="1.0"?>
ohair@3885 2 <!--
ohair@9063 3 Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
ohair@3885 4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@3885 5
ohair@3885 6 This code is free software; you can redistribute it and/or modify it
ohair@3885 7 under the terms of the GNU General Public License version 2 only, as
ohair@5516 8 published by the Free Software Foundation. Oracle designates this
ohair@3885 9 particular file as subject to the "Classpath" exception as provided
ohair@5516 10 by Oracle in the LICENSE file that accompanied this code.
ohair@3885 11
ohair@3885 12 This code is distributed in the hope that it will be useful, but WITHOUT
ohair@3885 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@3885 14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@3885 15 version 2 for more details (a copy is included in the LICENSE file that
ohair@3885 16 accompanied this code).
ohair@3885 17
ohair@3885 18 You should have received a copy of the GNU General Public License version
ohair@3885 19 2 along with this work; if not, write to the Free Software Foundation,
ohair@3885 20 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@3885 21
ohair@5516 22 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@5516 23 or visit www.oracle.com if you need additional information or have any
ohair@5516 24 questions.
ohair@3885 25 -->
ohair@3885 26
ohair@3885 27 <project name="@DROP@-drop" default="all" basedir=".">
ohair@3885 28
ohair@3885 29 <!-- Locations of master drop bundles. -->
ohair@3885 30 <property name="@DROP@.master.bundle.copy"
ohair@3885 31 value="${@DROP@.master.bundle.dir}/${@DROP@.bundle.name}"/>
ohair@3885 32 <property name="@DROP@.master.bundle.url"
ohair@3885 33 value="${@DROP@.master.bundle.url.base}/${@DROP@.bundle.name}"/>
ohair@3885 34
ohair@3885 35 <!-- Location where the copied bundle lands. -->
ohair@3885 36 <property name="@DROP@.bundle.copy"
ohair@4137 37 value="${drop.expanded.dir}/bundles/${@DROP@.bundle.name}"/>
ohair@3885 38
ohair@3885 39 <!-- Root of exploded area. -->
ohair@3885 40 <property name="@DROP@.root.dir" value="${drop.dir}/@DROP@"/>
ohair@3885 41 <property name="@DROP@.src.dir" value="${@DROP@.root.dir}/src"/>
ohair@3885 42
ohair@3885 43 <!-- To see if the drop areas are ready. (ignoring bundles) -->
ohair@3885 44 <target name="-@DROP@-ready">
ohair@3885 45 <condition property="@DROP@.ready">
ohair@4137 46 <or>
ohair@4137 47 <available file="${drop.included.dir}" type="dir"/>
ohair@4137 48 <and>
ohair@4137 49 <available file="${@DROP@.root.dir}" type="dir"/>
ohair@4137 50 <available file="${@DROP@.root.dir}/PATCHED" type="file"/>
ohair@4137 51 </and>
ohair@4137 52 </or>
ohair@3885 53 </condition>
ohair@3885 54 </target>
ohair@3885 55
ohair@3885 56 <!-- Copy over bundles from some shared master area. -->
ohair@3885 57 <condition property="@DROP@.master.bundle.copy.exists">
ohair@3885 58 <available file="${@DROP@.master.bundle.copy}" type="file"/>
ohair@3885 59 </condition>
ohair@3885 60 <target name="-@DROP@-copy-bundle"
ohair@3885 61 depends="init, -@DROP@-ready"
ohair@3885 62 if="@DROP@.master.bundle.copy.exists"
ohair@3885 63 unless="@DROP@.ready">
ohair@3885 64 <echo message="Copying from ${@DROP@.master.bundle.copy}"/>
ohair@3885 65 <dirname property="@DROP@.bundle.dirname" file="${@DROP@.bundle.copy}"/>
ohair@3885 66 <mkdir dir="${@DROP@.bundle.dirname}"/>
ohair@3885 67 <delete file="${@DROP@.bundle.copy}.temp"/>
ohair@3885 68 <delete file="${@DROP@.bundle.copy}"/>
ohair@3885 69 <copy file="${@DROP@.master.bundle.copy}" tofile="${@DROP@.bundle.copy}.temp"/>
ohair@3885 70 <move file="${@DROP@.bundle.copy}.temp" tofile="${@DROP@.bundle.copy}"/>
ohair@3885 71 <property name="@DROP@.master.bundle.found" value="true"/>
ohair@3885 72 </target>
ohair@3885 73
ohair@3885 74 <!-- Determine if the master url download should be used. -->
ohair@3885 75 <target name="-@DROP@-url-should-be-used" unless="@DROP@.url.should.be.used">
ohair@3885 76 <condition property="@DROP@.url.should.be.used">
ohair@3885 77 <and>
ohair@5836 78 <istrue value="${allow.downloads}"/>
ohair@3885 79 <not>
ohair@3885 80 <isset property="@DROP@.master.bundle.copy.exists"/>
ohair@3885 81 </not>
ohair@3885 82 </and>
ohair@3885 83 </condition>
ohair@3885 84 </target>
ohair@3885 85
ohair@3885 86 <!-- Download bundles from a url. -->
ohair@3885 87 <target name="-@DROP@-url-bundle"
ohair@3885 88 depends="init, -@DROP@-ready, -@DROP@-url-should-be-used"
ohair@3885 89 if="@DROP@.url.should.be.used"
ohair@3885 90 unless="@DROP@.ready">
ohair@3885 91 <echo message="Downloading from ${@DROP@.master.bundle.url}"/>
ohair@3885 92 <dirname property="@DROP@.bundle.dirname" file="${@DROP@.bundle.copy}"/>
ohair@3885 93 <mkdir dir="${@DROP@.bundle.dirname}"/>
ohair@3885 94 <delete file="${@DROP@.bundle.copy}.temp"/>
ohair@3885 95 <delete file="${@DROP@.bundle.copy}"/>
ohair@3885 96 <get src="${@DROP@.master.bundle.url}" dest="${@DROP@.bundle.copy}.temp"/>
ohair@3885 97 <move file="${@DROP@.bundle.copy}.temp" tofile="${@DROP@.bundle.copy}"/>
ohair@3885 98 <property name="@DROP@.master.bundle.found" value="true"/>
ohair@3885 99 </target>
ohair@3885 100
ohair@3885 101 <!-- Fill in the drop zones, but just when needed. -->
ohair@3885 102 <target name="@DROP@-update"
ohair@3885 103 depends="init,
ohair@3885 104 -@DROP@-copy-bundle,
ohair@3885 105 -@DROP@-url-bundle,
ohair@3885 106 -@DROP@-ready"
ohair@3885 107 if="@DROP@.master.bundle.found"
ohair@3885 108 unless="@DROP@.ready">
ohair@3885 109 <delete dir="${@DROP@.root.dir}"/>
ohair@3885 110 <delete dir="${@DROP@.root.dir}-temp"/>
ohair@3885 111 <mkdir dir="${@DROP@.root.dir}-temp"/>
ohair@4137 112 <checksum file="${@DROP@.bundle.copy}"
ohair@4137 113 property="@DROP@.bundle.md5.checksum.is"/>
ohair@4137 114 <condition property="@DROP@.bundle.md5.checksum.good">
ohair@4137 115 <equals arg1="${@DROP@.bundle.md5.checksum}"
ohair@4137 116 arg2="${@DROP@.bundle.md5.checksum.is}"/>
ohair@4137 117 </condition>
ohair@4137 118 <fail unless="@DROP@.bundle.md5.checksum.good">
ohair@4137 119 Checksum on file ${@DROP@.bundle.copy} is
ohair@4137 120 ${@DROP@.bundle.md5.checksum.is}, not ${@DROP@.bundle.md5.checksum}
ohair@4137 121 </fail>
ohair@3885 122 <unzip src="${@DROP@.bundle.copy}" dest="${@DROP@.root.dir}-temp"/>
ohair@3885 123 <move file="${@DROP@.root.dir}-temp" tofile="${@DROP@.root.dir}"/>
ohair@3885 124 <touch>
ohair@3885 125 <fileset dir="${@DROP@.root.dir}"/>
ohair@3885 126 </touch>
ohair@3885 127 <condition property="patch.utility" value="gpatch" else="patch">
ohair@3885 128 <os name="SunOS"/>
ohair@3885 129 </condition>
ohair@3885 130 <apply executable="${patch.utility}"
ohair@3885 131 dir="${@DROP@.root.dir}"
ohair@3885 132 parallel="false"
ohair@3885 133 failonerror="true"
ohair@3885 134 verbose="true">
ohair@3885 135 <arg value="-l"/>
ohair@3885 136 <arg value="-p0"/>
ohair@3885 137 <arg value="-i"/>
ohair@3885 138 <filelist dir="${patches.dir}/@DROP@" files="${@DROP@.patch.list}"/>
ohair@3885 139 </apply>
ohair@3885 140 <echo file="${@DROP@.root.dir}/PATCHED"
ohair@3885 141 message="Patches have been applied."/>
ohair@3885 142 </target>
ohair@3885 143
ohair@3885 144 </project>