build-defs.xml

Thu, 08 Apr 2010 17:02:46 -0700

author
mikejwre
date
Thu, 08 Apr 2010 17:02:46 -0700
changeset 109
bf3675aa7f20
parent 91
cc35f0e129d2
child 116
4ac192952d75
permissions
-rw-r--r--

Added tag jdk7-b88 for changeset 8c666f8f3565

     1 <?xml version="1.0"?>
     2 <!--
     3  Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
     4  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     6  This code is free software; you can redistribute it and/or modify it
     7  under the terms of the GNU General Public License version 2 only, as
     8  published by the Free Software Foundation.  Sun designates this
     9  particular file as subject to the "Classpath" exception as provided
    10  by Sun in the LICENSE file that accompanied this code.
    12  This code is distributed in the hope that it will be useful, but WITHOUT
    13  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    14  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    15  version 2 for more details (a copy is included in the LICENSE file that
    16  accompanied this code).
    18  You should have received a copy of the GNU General Public License version
    19  2 along with this work; if not, write to the Free Software Foundation,
    20  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    22  Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    23  CA 95054 USA or visit www.sun.com if you need additional information or
    24  have any questions.
    25 -->
    27 <project name="jaxws_defs" default="all" basedir=".">
    29     <!-- Specific build properties. -->
    30     <property file="jaxws.properties"/>
    32     <!-- Where generated xml files will stay. -->
    33     <property name="xml.gen.dir" value="${build.dir}/xml_generated"/>
    34     <property name="xml.template" value="build-drop-template.xml"/>
    36     <!--  ############### -->
    37     <!--  Begin Macrodefs -->
    39     <!-- Copies template file, replaces @DROP@ pattern, and imports it. -->
    40     <macrodef name="drop-import">
    41         <attribute name="name"/>
    42         <sequential>
    43             <property name="xml.gen.@{name}" value="${xml.gen.dir}/build-drop-@{name}.xml"/>
    44             <mkdir dir="${xml.gen.dir}"/>
    45             <copy file="${xml.template}" tofile="${xml.gen.@{name}}"/>
    46             <replace file="${xml.gen.@{name}}" token="@DROP@" value="@{name}"/>
    47             <import file="${xml.gen.@{name}}"/>
    48         </sequential>
    49     </macrodef>
    51     <!--  End of Macrodefs -->
    52     <!--  ############### -->
    54     <!-- Create xml file and import it for these drops. -->
    55     <drop-import name="jaxws_src"/>
    56     <drop-import name="jaf_src"/>
    57     <!-- <drop-import name="jaxws_tests"/> -->
    59     <!-- Special build area preparation. -->
    60     <target name="-drop-build-prep" depends="init, -init-src-dirs">
    61         <mkdir dir="${build.classes.dir}"/>
    62         <copy todir="${build.classes.dir}">
    63             <fileset dir="${primary.src.dir}"
    64                      includes="**/*.xsd, **/*.default, **/*.properties"
    65                      excludes="**/*.java, **/*.package.html"/>
    66         </copy>
    67         <replaceregexp match="#(.*)$" replace="#" flags="gm">
    68             <fileset dir="${build.classes.dir}" includes="**/*.properties"/>
    69         </replaceregexp>
    71         <mkdir dir="${build.classes.dir}/META-INF/services"/>
    72         <copy todir="${build.classes.dir}/META-INF/services"
    73               file="${primary.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory"/>
    74         <copy todir="${build.classes.dir}/META-INF/services"
    75               file="${primary.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin"/>
    76         <mkdir dir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"/>
    77         <copy todir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime">
    78             <fileset dir="${primary.src.dir}/com/sun/tools/internal/xjc/runtime"
    79                      includes="**/*.java"
    80                      excludes="**/*.package.html"/>
    81         </copy>
    82     </target>
    84     <!-- Try to get drop sources. -->
    85     <target name="-set-props"
    86 	    depends="init,
    87                      jaxws_src-update,
    88                      jaf_src-update">
    89     </target>
    91     <!-- Set up source to use drop.dir. -->
    92     <target name="-use-drop" depends="-set-props">
    93         <property name="primary.src.dir" value="${jaxws_src.src.dir}"/>
    94         <path id="src.dir.id">
    95             <pathelement path="${primary.src.dir}"/>
    96             <pathelement path="${jaf_src.src.dir}"/>
    97         </path>
    98     </target>
   100     <!-- Source directory selection. -->
   101     <target name="-init-src-dirs"
   102 	    depends="init, -use-drop">
   103         <echo message="Using primary.src.dir=${primary.src.dir}"/>
   104         <pathconvert property="src.list.id" refid="src.dir.id"/>
   105         <echo message="Using src.dir.id=${src.list.id}"/>
   106     </target>
   108     <!-- Create drop src.zip. -->
   109     <target name="-drop-src-zip" depends="init, -set-props">
   110         <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/>
   111         <zip file="${dist.src.zip}" basedir="${jaf_src.src.dir}" update="true"/>
   112     </target>
   114     <!-- Create src.zip. -->
   115     <target name="-dist-src-zip" depends="init, -drop-src-zip">
   116     </target>
   118 </project>

mercurial