jaxws/build-drop-template.xml
author darcy
Tue, 03 Nov 2009 15:01:50 -0800
changeset 4182 ffdc79c88a0e
parent 3885 90241d0c87b6
child 4137 a06d987928b2
permissions -rw-r--r--
6897550: BigInteger constructor should use local cached String length Reviewed-by: andrew, chegar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     1
<?xml version="1.0"?>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     2
<!--
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     3
 Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     4
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     5
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     6
 This code is free software; you can redistribute it and/or modify it
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     7
 under the terms of the GNU General Public License version 2 only, as
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     8
 published by the Free Software Foundation.  Sun designates this
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
     9
 particular file as subject to the "Classpath" exception as provided
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    10
 by Sun in the LICENSE file that accompanied this code.
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    11
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    12
 This code is distributed in the hope that it will be useful, but WITHOUT
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    13
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    14
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    15
 version 2 for more details (a copy is included in the LICENSE file that
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    16
 accompanied this code).
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    17
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    18
 You should have received a copy of the GNU General Public License version
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    19
 2 along with this work; if not, write to the Free Software Foundation,
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    20
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    21
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    22
 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    23
 CA 95054 USA or visit www.sun.com if you need additional information or
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    24
 have any questions.
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    25
-->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    26
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    27
<project name="@DROP@-drop" default="all" basedir=".">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    28
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    29
    <!-- Locations of master drop bundles. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    30
    <property name="@DROP@.master.bundle.copy"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    31
              value="${@DROP@.master.bundle.dir}/${@DROP@.bundle.name}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    32
    <property name="@DROP@.master.bundle.url"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    33
              value="${@DROP@.master.bundle.url.base}/${@DROP@.bundle.name}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    34
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    35
    <!-- Location where the copied bundle lands. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    36
    <property name="@DROP@.bundle.copy"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    37
              value="${drop.dir}/bundles/${@DROP@.bundle.name}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    38
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    39
    <!-- Root of exploded area. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    40
    <property name="@DROP@.root.dir" value="${drop.dir}/@DROP@"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    41
    <property name="@DROP@.src.dir" value="${@DROP@.root.dir}/src"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    42
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    43
    <!-- To see if the drop areas are ready. (ignoring bundles) -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    44
    <target name="-@DROP@-ready">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    45
        <condition property="@DROP@.ready">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    46
            <and>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    47
                <available file="${@DROP@.root.dir}" type="dir"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    48
                <available file="${@DROP@.root.dir}/PATCHED" type="file"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    49
            </and>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    50
        </condition>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    51
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    52
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    53
    <!-- Copy over bundles from some shared master area. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    54
    <condition property="@DROP@.master.bundle.copy.exists">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    55
        <available file="${@DROP@.master.bundle.copy}" type="file"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    56
    </condition>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    57
    <target name="-@DROP@-copy-bundle"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    58
	    depends="init, -@DROP@-ready"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    59
            if="@DROP@.master.bundle.copy.exists"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    60
            unless="@DROP@.ready">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    61
        <echo message="Copying from ${@DROP@.master.bundle.copy}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    62
        <dirname property="@DROP@.bundle.dirname" file="${@DROP@.bundle.copy}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    63
        <mkdir dir="${@DROP@.bundle.dirname}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    64
        <delete file="${@DROP@.bundle.copy}.temp"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    65
        <delete file="${@DROP@.bundle.copy}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    66
        <copy file="${@DROP@.master.bundle.copy}" tofile="${@DROP@.bundle.copy}.temp"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    67
        <move file="${@DROP@.bundle.copy}.temp" tofile="${@DROP@.bundle.copy}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    68
        <property name="@DROP@.master.bundle.found" value="true"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    69
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    70
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    71
    <!-- Determine if the master url download should be used. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    72
    <target name="-@DROP@-url-should-be-used" unless="@DROP@.url.should.be.used">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    73
        <condition property="@DROP@.url.should.be.used">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    74
            <and>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    75
                <http url="${@DROP@.master.bundle.url.base}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    76
                <not>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    77
                    <isset property="@DROP@.master.bundle.copy.exists"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    78
                </not>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    79
            </and>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    80
        </condition>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    81
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    82
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    83
    <!-- Download bundles from a url. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    84
    <target name="-@DROP@-url-bundle"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    85
	    depends="init, -@DROP@-ready, -@DROP@-url-should-be-used"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    86
            if="@DROP@.url.should.be.used"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    87
            unless="@DROP@.ready">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    88
        <echo message="Downloading from ${@DROP@.master.bundle.url}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    89
        <dirname property="@DROP@.bundle.dirname" file="${@DROP@.bundle.copy}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    90
        <mkdir dir="${@DROP@.bundle.dirname}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    91
        <delete file="${@DROP@.bundle.copy}.temp"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    92
        <delete file="${@DROP@.bundle.copy}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    93
        <get src="${@DROP@.master.bundle.url}" dest="${@DROP@.bundle.copy}.temp"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    94
        <move file="${@DROP@.bundle.copy}.temp" tofile="${@DROP@.bundle.copy}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    95
        <property name="@DROP@.master.bundle.found" value="true"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    96
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    97
    
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    98
    <!-- Fill in the drop zones, but just when needed. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    99
    <target name="@DROP@-update"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   100
            depends="init, 
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   101
		     -@DROP@-copy-bundle,
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   102
		     -@DROP@-url-bundle,
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   103
                     -@DROP@-ready"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   104
            if="@DROP@.master.bundle.found"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   105
            unless="@DROP@.ready">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   106
        <delete dir="${@DROP@.root.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   107
        <delete dir="${@DROP@.root.dir}-temp"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   108
        <mkdir dir="${@DROP@.root.dir}-temp"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   109
        <unzip src="${@DROP@.bundle.copy}" dest="${@DROP@.root.dir}-temp"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   110
        <move file="${@DROP@.root.dir}-temp" tofile="${@DROP@.root.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   111
        <touch>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   112
            <fileset dir="${@DROP@.root.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   113
        </touch>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   114
        <condition property="patch.utility" value="gpatch" else="patch">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   115
            <os name="SunOS"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   116
        </condition>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   117
        <apply executable="${patch.utility}"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   118
		   dir="${@DROP@.root.dir}"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   119
	           parallel="false"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   120
	           failonerror="true"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   121
	           verbose="true">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   122
            <arg value="-l"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   123
            <arg value="-p0"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   124
            <arg value="-i"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   125
            <filelist dir="${patches.dir}/@DROP@" files="${@DROP@.patch.list}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   126
        </apply>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   127
        <echo file="${@DROP@.root.dir}/PATCHED"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   128
	      message="Patches have been applied."/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   129
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   130
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   131
</project>