jaxp/build-defs.xml
author duke
Wed, 05 Jul 2017 17:13:58 +0200
changeset 5554 c523f5987ed5
parent 5512 74bb36df3a83
child 5830 3adf4782de94
permissions -rw-r--r--
Merge
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="jaxp_defs" 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
    <!-- Specific build properties. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    30
    <property file="jaxp.properties"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    31
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    32
    <!-- Where generated xml files will stay. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    33
    <property name="xml.gen.dir" value="${build.dir}/xml_generated"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    34
    <property name="xml.template" value="build-drop-template.xml"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    35
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    36
    <!--  ############### -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    37
    <!--  Begin Macrodefs -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    38
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    39
    <!-- Copies template file, replaces @DROP@ pattern, and imports it. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    40
    <macrodef name="drop-import">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    41
        <attribute name="name"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    42
        <sequential>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    43
            <property name="xml.gen.@{name}" value="${xml.gen.dir}/build-drop-@{name}.xml"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    44
            <mkdir dir="${xml.gen.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    45
            <copy file="${xml.template}" tofile="${xml.gen.@{name}}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    46
            <replace file="${xml.gen.@{name}}" token="@DROP@" value="@{name}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    47
            <import file="${xml.gen.@{name}}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    48
        </sequential>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    49
    </macrodef>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    50
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    51
    <!--  End of Macrodefs -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    52
    <!--  ############### -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    53
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    54
    <!-- Create xml file and import it for these drops. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    55
    <drop-import name="jaxp_src"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    56
    <!-- <drop-import name="jaxp_tests"/> -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    57
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    58
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    59
    <!-- Special build area preparation. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    60
    <target name="-drop-build-prep" depends="init, -init-src-dirs">
3882
35b6f37d3023 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3879
diff changeset
    61
        <mkdir dir="${build.classes.dir}"/>
35b6f37d3023 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3879
diff changeset
    62
        <copy todir="${build.classes.dir}">
35b6f37d3023 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3879
diff changeset
    63
            <fileset dir="${primary.src.dir}"
35b6f37d3023 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3879
diff changeset
    64
                     includes="**/*.properties"/>
35b6f37d3023 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3879
diff changeset
    65
        </copy>
35b6f37d3023 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3879
diff changeset
    66
        <replaceregexp match="#(.*)$" replace="#" flags="gm">
35b6f37d3023 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3879
diff changeset
    67
            <fileset dir="${build.classes.dir}" includes="**/*.properties"/>
35b6f37d3023 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3879
diff changeset
    68
        </replaceregexp>
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    69
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    70
4131
c5661b1a888f 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3882
diff changeset
    71
    <!-- Try to get drop sources. -->
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    72
    <target name="-set-props"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    73
	    depends="init,
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    74
                     jaxp_src-update">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    75
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    76
4131
c5661b1a888f 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3882
diff changeset
    77
    <!-- Set up source to use drop.dir. -->
c5661b1a888f 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3882
diff changeset
    78
    <target name="-use-drop" depends="-set-props">
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    79
        <property name="primary.src.dir" value="${jaxp_src.src.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    80
        <path id="src.dir.id">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    81
            <pathelement path="${primary.src.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    82
        </path>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    83
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    84
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    85
    <!-- Source directory selection. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    86
    <target name="-init-src-dirs"
4131
c5661b1a888f 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3882
diff changeset
    87
	    depends="init, -use-drop">
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    88
        <echo message="Using primary.src.dir=${primary.src.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    89
        <pathconvert property="src.list.id" refid="src.dir.id"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    90
        <echo message="Using src.dir.id=${src.list.id}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    91
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    92
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    93
    <!-- Create drop src.zip. -->
4131
c5661b1a888f 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3882
diff changeset
    94
    <target name="-drop-src-zip" depends="init, -set-props">
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    95
        <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    96
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    97
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    98
    <!-- Create src.zip. -->
4131
c5661b1a888f 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3882
diff changeset
    99
    <target name="-dist-src-zip" depends="init, -drop-src-zip">
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   100
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   101
    
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   102
</project>