jaxws/build-defs.xml
author weijun
Mon, 24 May 2010 09:37:16 +0800
changeset 5616 6f3f39ddc2c2
parent 4137 a06d987928b2
child 5516 d5307370d017
permissions -rw-r--r--
6948781: CertificateFactory.generateCertificate doesn't throw CertificateException for malformed certificate Reviewed-by: mullan
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="jaxws_defs" 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
    <!-- Specific build properties. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    30
    <property file="jaxws.properties"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    31
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    32
    <!-- Where generated xml files will stay. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    33
    <property name="xml.gen.dir" value="${build.dir}/xml_generated"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    34
    <property name="xml.template" value="build-drop-template.xml"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    35
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    36
    <!--  ############### -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    37
    <!--  Begin Macrodefs -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    38
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    39
    <!-- Copies template file, replaces @DROP@ pattern, and imports it. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    40
    <macrodef name="drop-import">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    41
        <attribute name="name"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    42
        <sequential>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    43
            <property name="xml.gen.@{name}" value="${xml.gen.dir}/build-drop-@{name}.xml"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    44
            <mkdir dir="${xml.gen.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    45
            <copy file="${xml.template}" tofile="${xml.gen.@{name}}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    46
            <replace file="${xml.gen.@{name}}" token="@DROP@" value="@{name}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    47
            <import file="${xml.gen.@{name}}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    48
        </sequential>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    49
    </macrodef>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    50
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    51
    <!--  End of Macrodefs -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    52
    <!--  ############### -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    53
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    54
    <!-- Create xml file and import it for these drops. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    55
    <drop-import name="jaxws_src"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    56
    <drop-import name="jaf_src"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    57
    <!-- <drop-import name="jaxws_tests"/> -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    58
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    59
    <!-- Special build area preparation. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    60
    <target name="-drop-build-prep" depends="init, -init-src-dirs">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    61
        <mkdir dir="${build.classes.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    62
        <copy todir="${build.classes.dir}">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    63
            <fileset dir="${primary.src.dir}"
3887
2d600411d2b7 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3885
diff changeset
    64
                     includes="**/*.xsd, **/*.default, **/*.properties"
2d600411d2b7 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3885
diff changeset
    65
                     excludes="**/*.java, **/*.package.html"/>
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    66
        </copy>
3887
2d600411d2b7 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3885
diff changeset
    67
        <replaceregexp match="#(.*)$" replace="#" flags="gm">
2d600411d2b7 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3885
diff changeset
    68
            <fileset dir="${build.classes.dir}" includes="**/*.properties"/>
2d600411d2b7 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3885
diff changeset
    69
        </replaceregexp>
2d600411d2b7 6886359: Missing jaxws property files and missing changes in jaxp/jaxws drop bundles
ohair
parents: 3885
diff changeset
    70
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    71
        <mkdir dir="${build.classes.dir}/META-INF/services"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    72
        <copy todir="${build.classes.dir}/META-INF/services"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    73
              file="${primary.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    74
        <copy todir="${build.classes.dir}/META-INF/services"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    75
              file="${primary.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    76
        <mkdir dir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    77
        <copy todir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    78
            <fileset dir="${primary.src.dir}/com/sun/tools/internal/xjc/runtime"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    79
                     includes="**/*.java"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    80
                     excludes="**/*.package.html"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    81
        </copy>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    82
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    83
4137
a06d987928b2 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3887
diff changeset
    84
    <!-- Try to get drop sources. -->
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    85
    <target name="-set-props"
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    86
	    depends="init,
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    87
                     jaxws_src-update,
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    88
                     jaf_src-update">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    89
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    90
4137
a06d987928b2 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3887
diff changeset
    91
    <!-- Set up source to use drop.dir. -->
a06d987928b2 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3887
diff changeset
    92
    <target name="-use-drop" depends="-set-props">
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    93
        <property name="primary.src.dir" value="${jaxws_src.src.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    94
        <path id="src.dir.id">
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    95
            <pathelement path="${primary.src.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    96
            <pathelement path="${jaf_src.src.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    97
        </path>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    98
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
    99
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   100
    <!-- Source directory selection. -->
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   101
    <target name="-init-src-dirs"
4137
a06d987928b2 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3887
diff changeset
   102
	    depends="init, -use-drop">
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   103
        <echo message="Using primary.src.dir=${primary.src.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   104
        <pathconvert property="src.list.id" refid="src.dir.id"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   105
        <echo message="Using src.dir.id=${src.list.id}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   106
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   107
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   108
    <!-- Create drop src.zip. -->
4137
a06d987928b2 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3887
diff changeset
   109
    <target name="-drop-src-zip" depends="init, -set-props">
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   110
        <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   111
        <zip file="${dist.src.zip}" basedir="${jaf_src.src.dir}" update="true"/>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   112
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   113
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   114
    <!-- Create src.zip. -->
4137
a06d987928b2 6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents: 3887
diff changeset
   115
    <target name="-dist-src-zip" depends="init, -drop-src-zip">
3885
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   116
    </target>
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   117
    
90241d0c87b6 6856630: Restructure jaxp/jaxws repositories
ohair
parents:
diff changeset
   118
</project>