Thu, 26 Apr 2012 14:06:31 -0700
Added tag jdk8-b36 for changeset 89b36c658e39
duke@1 | 1 | <?xml version="1.0"?> |
duke@1 | 2 | <!-- |
ohair@194 | 3 | Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. |
duke@1 | 4 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
duke@1 | 5 | |
duke@1 | 6 | This code is free software; you can redistribute it and/or modify it |
duke@1 | 7 | under the terms of the GNU General Public License version 2 only, as |
ohair@116 | 8 | published by the Free Software Foundation. Oracle designates this |
duke@1 | 9 | particular file as subject to the "Classpath" exception as provided |
ohair@116 | 10 | by Oracle in the LICENSE file that accompanied this code. |
duke@1 | 11 | |
duke@1 | 12 | This code is distributed in the hope that it will be useful, but WITHOUT |
duke@1 | 13 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
duke@1 | 14 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
duke@1 | 15 | version 2 for more details (a copy is included in the LICENSE file that |
duke@1 | 16 | accompanied this code). |
duke@1 | 17 | |
duke@1 | 18 | You should have received a copy of the GNU General Public License version |
duke@1 | 19 | 2 along with this work; if not, write to the Free Software Foundation, |
duke@1 | 20 | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
duke@1 | 21 | |
ohair@116 | 22 | Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@116 | 23 | or visit www.oracle.com if you need additional information or have any |
ohair@116 | 24 | questions. |
duke@1 | 25 | --> |
duke@1 | 26 | |
ohair@85 | 27 | <project name="jaxws" default="all" basedir="."> |
ohair@85 | 28 | |
ohair@85 | 29 | <!-- For 'ant -p' or 'ant -projecthelp' --> |
ohair@85 | 30 | |
ohair@85 | 31 | <description> |
ohair@85 | 32 | Ant build script for the ${ant.project.name} part of the jdk. |
duke@1 | 33 | |
ohair@85 | 34 | Input Properties: (see build.properties for the ant defaults) |
ohair@85 | 35 | bootstrap.dir - dir with lib/javac.jar, added to javac bootclasspath |
ohair@85 | 36 | javac.debug - true or false for debug classfiles |
ohair@85 | 37 | javac.target - classfile version target |
ohair@85 | 38 | javac.source - source version |
ohair@124 | 39 | |
ohair@124 | 40 | Run 'make help' for help using the Makefile. |
ohair@85 | 41 | </description> |
duke@1 | 42 | |
ohair@85 | 43 | <!-- Project build properties. --> |
duke@1 | 44 | <property file="build.properties"/> |
duke@1 | 45 | |
ohair@286 | 46 | <property name="jaxws.src.dir" value="src/share/jaxws_classes"/> |
ohair@286 | 47 | <property name="jaf.src.dir" value="src/share/jaf_classes"/> |
ohair@286 | 48 | <path id="src.dir.id"> |
ohair@286 | 49 | <pathelement path="${jaxws.src.dir}"/> |
ohair@286 | 50 | <pathelement path="${jaf.src.dir}"/> |
ohair@286 | 51 | </path> |
ohair@85 | 52 | |
ohair@85 | 53 | <!-- Initialization of directories needed for build. --> |
ohair@85 | 54 | <target name="init"> |
ohair@85 | 55 | <mkdir dir="${build.dir}"/> |
ohair@85 | 56 | <mkdir dir="${build.classes.dir}"/> |
ohair@85 | 57 | <mkdir dir="${dist.dir}"/> |
ohair@85 | 58 | <mkdir dir="${dist.lib.dir}"/> |
ohair@85 | 59 | </target> |
ohair@85 | 60 | |
ohair@85 | 61 | <!-- Sanity checks and settings --> |
ohair@85 | 62 | <target name="sanity" |
ohair@85 | 63 | depends="-javac-jar-exists" |
ohair@85 | 64 | description="Display settings of configuration values"> |
ohair@85 | 65 | <echo message="${sanity.info}"/> |
duke@1 | 66 | </target> |
duke@1 | 67 | |
ohair@85 | 68 | <!-- Check for bootstrap javac.jar file, warn if missing. --> |
ohair@85 | 69 | <condition property="javac.jar.exists"> |
ohair@85 | 70 | <available file="${javac.jar}" type="file"/> |
ohair@85 | 71 | </condition> |
ohair@85 | 72 | <target name="-javac-jar-exists" |
ohair@85 | 73 | unless="javac.jar.exists"> |
ohair@85 | 74 | <echo message="WARNING: Cannot find ${javac.jar}"/> |
duke@1 | 75 | </target> |
ohair@286 | 76 | |
ohair@286 | 77 | <!-- Create src.zip. --> |
ohair@286 | 78 | <target name="-dist-src-zip" depends="init"> |
ohair@286 | 79 | <zip file="${dist.src.zip}" basedir="${jaxws.src.dir}"/> |
ohair@286 | 80 | <zip file="${dist.src.zip}" basedir="${jaf.src.dir}" update="true"/> |
ohair@286 | 81 | </target> |
duke@1 | 82 | |
ohair@85 | 83 | <!-- Creation of distribution files to jdk build process. --> |
ohair@85 | 84 | <target name="dist" |
ohair@286 | 85 | depends="init, build, -dist-classes-jar, -dist-src-zip" |
ohair@85 | 86 | description="Create all built distribution files."> |
ohair@85 | 87 | </target> |
ohair@85 | 88 | <target name="-dist-classes-jar-uptodate" |
ohair@286 | 89 | depends="init"> |
ohair@85 | 90 | <condition property="dist.classes.jar.uptodate"> |
ohair@85 | 91 | <and> |
ohair@85 | 92 | <available file="${dist.classes.jar}" type="file"/> |
ohair@85 | 93 | <uptodate targetfile="${dist.classes.jar}"> |
ohair@85 | 94 | <srcfiles dir="${build.classes.dir}" includes="**"/> |
ohair@85 | 95 | </uptodate> |
ohair@85 | 96 | </and> |
ohair@85 | 97 | </condition> |
ohair@85 | 98 | </target> |
ohair@85 | 99 | <target name="-dist-classes-jar" |
ohair@286 | 100 | depends="init, -dist-classes-jar-uptodate" |
ohair@85 | 101 | unless="dist.classes.jar.uptodate"> |
ohair@85 | 102 | <delete file="${dist.classes.jar}"/> |
ohair@85 | 103 | <jar file="${dist.classes.jar}" basedir="${build.classes.dir}"/> |
duke@1 | 104 | </target> |
duke@1 | 105 | |
ohair@286 | 106 | <!-- Special build area setup. --> |
ohair@286 | 107 | <target name="-build-setup" depends="init"> |
ohair@286 | 108 | <mkdir dir="${build.classes.dir}"/> |
ohair@286 | 109 | <copy todir="${build.classes.dir}"> |
ohair@286 | 110 | <fileset dir="${jaxws.src.dir}" |
ohair@286 | 111 | includes="**/*.xsd, **/*.default, **/*.properties" |
ohair@286 | 112 | excludes="**/*.java, **/*.package.html"/> |
ohair@286 | 113 | </copy> |
ohair@286 | 114 | <replaceregexp match="#(.*)$" replace="#" flags="gm"> |
ohair@286 | 115 | <fileset dir="${build.classes.dir}" includes="**/*.properties"/> |
ohair@286 | 116 | </replaceregexp> |
ohair@286 | 117 | |
ohair@286 | 118 | <mkdir dir="${build.classes.dir}/META-INF/services"/> |
ohair@286 | 119 | <copy todir="${build.classes.dir}/META-INF" |
ohair@286 | 120 | file="${jaf.src.dir}/META-INF/mailcap.default"/> |
ohair@286 | 121 | <copy todir="${build.classes.dir}/META-INF" |
ohair@286 | 122 | file="${jaf.src.dir}/META-INF/mimetypes.default"/> |
ohair@286 | 123 | <copy todir="${build.classes.dir}/META-INF/services" |
ohair@286 | 124 | file="${jaxws.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin"/> |
ohair@286 | 125 | <copy todir="${build.classes.dir}/META-INF/services" |
ohair@286 | 126 | file="${jaxws.src.dir}/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin"/> |
ohair@286 | 127 | <mkdir dir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"/> |
ohair@286 | 128 | <copy todir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"> |
ohair@286 | 129 | <fileset dir="${jaxws.src.dir}/com/sun/tools/internal/xjc/runtime" |
ohair@286 | 130 | includes="**/*.java" |
ohair@286 | 131 | excludes="**/*.package.html"/> |
ohair@286 | 132 | </copy> |
duke@1 | 133 | </target> |
duke@1 | 134 | |
ohair@85 | 135 | <!-- Build (compilation) of sources to class files. --> |
ohair@85 | 136 | <target name="build" |
ohair@124 | 137 | depends="compile, -build-setup"> |
ohair@124 | 138 | </target> |
ohair@124 | 139 | <target name="compile" |
ohair@286 | 140 | depends="init"> |
ohair@124 | 141 | <mkdir dir="${build.classes.dir}"/> |
ohair@95 | 142 | <javac |
ohair@95 | 143 | includeAntRuntime="false" |
ohair@95 | 144 | classpath="${build.classes.dir}:${tools.jar}" |
ohair@95 | 145 | fork="true" |
duke@1 | 146 | destdir="${build.classes.dir}" |
duke@1 | 147 | memoryInitialSize="${javac.memoryInitialSize}" |
duke@1 | 148 | memoryMaximumSize="${javac.memoryMaximumSize}" |
jjg@63 | 149 | source="${javac.source}" |
aph@54 | 150 | debug="${javac.debug}" |
ohair@85 | 151 | target="${javac.target}"> |
ohair@85 | 152 | <compilerarg value="-J-Xbootclasspath/p:${javac.jar}"/> |
ohair@85 | 153 | <compilerarg line="${javac.version.opt} ${javac.lint.opts} ${javac.no.jdk.warnings}"/> |
ohair@85 | 154 | <src refid="src.dir.id"/> |
ohair@85 | 155 | </javac> |
duke@1 | 156 | </target> |
duke@1 | 157 | |
ohair@85 | 158 | <!-- Test. (FIXME: Need to know how to run tests.) --> |
ohair@85 | 159 | <target name="test" |
ohair@286 | 160 | depends="init, dist"> |
ohair@85 | 161 | <echo message="FIXME: How do you run the tests"/> |
ohair@85 | 162 | </target> |
ohair@85 | 163 | |
ohair@85 | 164 | <!-- Populate source area if needed. --> |
ohair@85 | 165 | <target name="source" |
ohair@286 | 166 | depends="init" |
ohair@85 | 167 | description="Populate all source file directories"> |
duke@1 | 168 | </target> |
duke@1 | 169 | |
ohair@85 | 170 | <!-- Clean up compiled files. --> |
ohair@85 | 171 | <target name="clean" |
ohair@85 | 172 | description="Delete all generated files"> |
ohair@85 | 173 | <delete dir="${build.dir}"/> |
ohair@85 | 174 | <delete dir="${dist.dir}"/> |
ohair@85 | 175 | </target> |
ohair@85 | 176 | |
ohair@85 | 177 | <!-- Clean up compiled files and all imported source files. --> |
ohair@85 | 178 | <target name="clobber" |
ohair@85 | 179 | depends="clean" |
ohair@85 | 180 | description="Delete all generated files, including imported sources"> |
ohair@85 | 181 | </target> |
ohair@85 | 182 | |
ohair@85 | 183 | <target name="-banner"> |
ohair@85 | 184 | <echo message="+---------------------------------------+"/> |
ohair@85 | 185 | <echo message="+ Starting ant project ${ant.project.name} +"/> |
ohair@85 | 186 | <echo message="+---------------------------------------+"/> |
ohair@85 | 187 | </target> |
ohair@85 | 188 | |
ohair@85 | 189 | <!-- Do everything but test. --> |
ohair@85 | 190 | <target name="all" |
ohair@85 | 191 | depends="-banner, sanity, dist" |
ohair@85 | 192 | description="Build everything."> |
ohair@85 | 193 | <echo message="+---------------------------------------+"/> |
ohair@85 | 194 | <echo message="+ Finishing ant project ${ant.project.name}"/> |
ohair@85 | 195 | <echo message="+---------------------------------------+"/> |
duke@1 | 196 | </target> |
duke@1 | 197 | |
duke@1 | 198 | </project> |