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