annotate build-defs.xml @ 178:88d74afc5593

Added tag jdk7-b127 for changeset ef19f173578c
author cl
date Thu, 27 Jan 2011 17:28:40 -0800
parents 4ac192952d75
children de11bd049d6f
rev   line source
ohair@84 1 <?xml version="1.0"?>
ohair@84 2 <!--
ohair@115 3 Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
ohair@84 4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@84 5
ohair@84 6 This code is free software; you can redistribute it and/or modify it
ohair@84 7 under the terms of the GNU General Public License version 2 only, as
ohair@115 8 published by the Free Software Foundation. Oracle designates this
ohair@84 9 particular file as subject to the "Classpath" exception as provided
ohair@115 10 by Oracle in the LICENSE file that accompanied this code.
ohair@84 11
ohair@84 12 This code is distributed in the hope that it will be useful, but WITHOUT
ohair@84 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@84 14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@84 15 version 2 for more details (a copy is included in the LICENSE file that
ohair@84 16 accompanied this code).
ohair@84 17
ohair@84 18 You should have received a copy of the GNU General Public License version
ohair@84 19 2 along with this work; if not, write to the Free Software Foundation,
ohair@84 20 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@84 21
ohair@115 22 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@115 23 or visit www.oracle.com if you need additional information or have any
ohair@115 24 questions.
ohair@84 25 -->
ohair@84 26
ohair@84 27 <project name="jaxws_defs" default="all" basedir=".">
ohair@84 28
ohair@84 29 <!-- Specific build properties. -->
ohair@84 30 <property file="jaxws.properties"/>
ohair@84 31
ohair@84 32 <!-- Where generated xml files will stay. -->
ohair@84 33 <property name="xml.gen.dir" value="${build.dir}/xml_generated"/>
ohair@84 34 <property name="xml.template" value="build-drop-template.xml"/>
ohair@84 35
ohair@84 36 <!-- ############### -->
ohair@84 37 <!-- Begin Macrodefs -->
ohair@84 38
ohair@84 39 <!-- Copies template file, replaces @DROP@ pattern, and imports it. -->
ohair@84 40 <macrodef name="drop-import">
ohair@84 41 <attribute name="name"/>
ohair@84 42 <sequential>
ohair@84 43 <property name="xml.gen.@{name}" value="${xml.gen.dir}/build-drop-@{name}.xml"/>
ohair@84 44 <mkdir dir="${xml.gen.dir}"/>
ohair@84 45 <copy file="${xml.template}" tofile="${xml.gen.@{name}}"/>
ohair@84 46 <replace file="${xml.gen.@{name}}" token="@DROP@" value="@{name}"/>
ohair@84 47 <import file="${xml.gen.@{name}}"/>
ohair@84 48 </sequential>
ohair@84 49 </macrodef>
ohair@84 50
ohair@84 51 <!-- End of Macrodefs -->
ohair@84 52 <!-- ############### -->
ohair@84 53
ohair@84 54 <!-- Create xml file and import it for these drops. -->
ohair@84 55 <drop-import name="jaxws_src"/>
ohair@84 56 <drop-import name="jaf_src"/>
ohair@84 57 <!-- <drop-import name="jaxws_tests"/> -->
ohair@123 58
ohair@123 59 <!-- Fail and print helpful messages if source does not exist. -->
ohair@123 60 <target name="-src-help">
ohair@123 61 <fail message="${failed.url.src.message}">
ohair@123 62 <condition>
ohair@123 63 <and>
ohair@123 64 <not>
ohair@123 65 <and>
ohair@123 66 <available file="${jaxws_src.src.dir}" type="dir"/>
ohair@123 67 <available file="${jaf_src.src.dir}" type="dir"/>
ohair@123 68 </and>
ohair@123 69 </not>
ohair@123 70 <istrue value="${allow.downloads}"/>
ohair@123 71 </and>
ohair@123 72 </condition>
ohair@123 73 </fail>
ohair@123 74 <fail message="${failed.nourl.src.message}">
ohair@123 75 <condition>
ohair@123 76 <not>
ohair@123 77 <and>
ohair@123 78 <available file="${jaxws_src.src.dir}" type="dir"/>
ohair@123 79 <available file="${jaf_src.src.dir}" type="dir"/>
ohair@123 80 </and>
ohair@123 81 </not>
ohair@123 82 </condition>
ohair@123 83 </fail>
ohair@123 84 </target>
ohair@84 85
ohair@123 86 <!-- Special build area setup. -->
ohair@123 87 <target name="-drop-build-setup" depends="init, -init-src-dirs">
ohair@84 88 <mkdir dir="${build.classes.dir}"/>
ohair@84 89 <copy todir="${build.classes.dir}">
ohair@84 90 <fileset dir="${primary.src.dir}"
ohair@86 91 includes="**/*.xsd, **/*.default, **/*.properties"
ohair@86 92 excludes="**/*.java, **/*.package.html"/>
ohair@84 93 </copy>
ohair@86 94 <replaceregexp match="#(.*)$" replace="#" flags="gm">
ohair@86 95 <fileset dir="${build.classes.dir}" includes="**/*.properties"/>
ohair@86 96 </replaceregexp>
ohair@86 97
ohair@84 98 <mkdir dir="${build.classes.dir}/META-INF/services"/>
ohair@84 99 <copy todir="${build.classes.dir}/META-INF/services"
ohair@84 100 file="${primary.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory"/>
ohair@84 101 <copy todir="${build.classes.dir}/META-INF/services"
ohair@84 102 file="${primary.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin"/>
ohair@84 103 <mkdir dir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"/>
ohair@84 104 <copy todir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime">
ohair@84 105 <fileset dir="${primary.src.dir}/com/sun/tools/internal/xjc/runtime"
ohair@84 106 includes="**/*.java"
ohair@84 107 excludes="**/*.package.html"/>
ohair@84 108 </copy>
ohair@84 109 </target>
ohair@84 110
ohair@90 111 <!-- Try to get drop sources. -->
ohair@84 112 <target name="-set-props"
ohair@84 113 depends="init,
ohair@84 114 jaxws_src-update,
ohair@84 115 jaf_src-update">
ohair@84 116 </target>
ohair@84 117
ohair@90 118 <!-- Set up source to use drop.dir. -->
ohair@90 119 <target name="-use-drop" depends="-set-props">
ohair@84 120 <property name="primary.src.dir" value="${jaxws_src.src.dir}"/>
ohair@84 121 <path id="src.dir.id">
ohair@84 122 <pathelement path="${primary.src.dir}"/>
ohair@84 123 <pathelement path="${jaf_src.src.dir}"/>
ohair@84 124 </path>
ohair@84 125 </target>
ohair@84 126
ohair@84 127 <!-- Source directory selection. -->
ohair@84 128 <target name="-init-src-dirs"
ohair@123 129 depends="init, -use-drop,-src-help">
ohair@84 130 <echo message="Using primary.src.dir=${primary.src.dir}"/>
ohair@84 131 <pathconvert property="src.list.id" refid="src.dir.id"/>
ohair@84 132 <echo message="Using src.dir.id=${src.list.id}"/>
ohair@84 133 </target>
ohair@84 134
ohair@84 135 <!-- Create drop src.zip. -->
ohair@90 136 <target name="-drop-src-zip" depends="init, -set-props">
ohair@84 137 <zip file="${dist.src.zip}" basedir="${primary.src.dir}"/>
ohair@84 138 <zip file="${dist.src.zip}" basedir="${jaf_src.src.dir}" update="true"/>
ohair@84 139 </target>
ohair@84 140
ohair@84 141 <!-- Create src.zip. -->
ohair@90 142 <target name="-dist-src-zip" depends="init, -drop-src-zip">
ohair@84 143 </target>
ohair@84 144
ohair@84 145 </project>