make/build.xml

Tue, 28 Jul 2009 12:12:47 -0700

author
xdono
date
Tue, 28 Jul 2009 12:12:47 -0700
changeset 71
faa13cd4d6cd
parent 64
2ec98e99e4ea
permissions
-rw-r--r--

6862919: Update copyright year
Summary: Update copyright for files that have been modified in 2009, up to 07/09
Reviewed-by: tbell, ohair

     1 <?xml version="1.0"?>
     2 <!--
     3  Copyright 2007-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 <!--
    28  This is the main build file for the jaxws workspace.
    29  -->
    31 <project name="jaxws" default="all" basedir=".">
    33     <!-- Convenient shorthands for standard locations within the workspace. -->
    34     <property file="build.properties"/>
    35     <property name="topdir" value=".."/>
    36     <property name="build.dir" location="${topdir}/build"/>
    37     <property name="build.classes.dir" location="${build.dir}/classes"/>
    38     <property name="build.gensrc.dir" location="${build.dir}/gensrc"/>
    39     <property name="build.toolclasses.dir" location="${build.dir}/toolclasses"/>
    40     <property name="dist.dir" location="${topdir}/dist"/>
    41     <property name="dist.lib.dir" location="${dist.dir}/lib"/>
    42     <property name="make.dir" location="${topdir}/make"/>
    43     <property name="make.tools.dir" location="${make.dir}/tools"/>
    44     <property name="src.dir" location="${topdir}/src"/>
    45     <property name="src.classes.dir" location="${src.dir}/share/classes"/>
    46     <property environment="env"/>
    48     <target name="build" depends="banner, build-classes, build-tools, build-binaries">
    49 	<mkdir dir="${dist.lib.dir}"/>
    50 	<jar file="${dist.lib.dir}/classes.jar" basedir="${build.classes.dir}"/>
    51 	<zip file="${dist.lib.dir}/src.zip" basedir="${src.classes.dir}"/>
    52     </target>
    54     <!-- Debug information -->
    55     <target name="sanity"
    56         description="display settings of configuration values">
    57         <echo level="info">ant.home = ${ant.home}</echo>
    58         <echo level="info">java.home = ${env.JAVA_HOME}</echo>
    59         <echo level="info">bootstrap.dir = ${bootstrap.dir}</echo>
    60     </target>
    62     <target name="build-tools" depends="-defs-pstrip">
    63         <mkdir dir="${build.dir}"/>
    64         <mkdir dir="${build.classes.dir}"/>
    65 	    <pstrip srcdir="${src.classes.dir}"
    66                     destdir="${build.classes.dir}"
    67 		    includes="**/*.properties"/>
    68     </target>
    70     <target name="build-binaries">
    71         <mkdir dir="${build.dir}"/>
    72         <mkdir dir="${build.classes.dir}"/>
    73             <copy todir="${build.classes.dir}">
    74                  <fileset dir="${src.classes.dir}"
    75                      includes="**/*.xsd, **/*.default"
    76                      excludes="**/*.java, **/*.package.html, **/*.properties"/>
    77             </copy>
    78         <mkdir dir="${build.classes.dir}/META-INF/services"/>
    79             <copy todir="${build.classes.dir}/META-INF/services"
    80                   file="${src.classes.dir}/com/sun/tools/etc/META-INF/services/com.sun.mirror.apt.AnnotationProcessorFactory"/>
    81             <copy todir="${build.classes.dir}/META-INF/services"
    82                   file="${src.classes.dir}/com/sun/tools/etc/META-INF/services/com.sun.tools.internal.xjc.Plugin"/>
    83  	    <!-- copy jaxb sources files required for jaxb tool time -->	
    84            <mkdir dir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime"/>
    85             <copy todir="${build.classes.dir}/com/sun/tools/internal/xjc/runtime">
    86                  <fileset dir="${src.classes.dir}/com/sun/tools/internal/xjc/runtime"
    87                      includes="**/*.java"
    88                      excludes="**/*.package.html"/>
    89             </copy>
    90     </target>
    92     <target name="-defs-pstrip">
    93       <mkdir dir="${build.toolclasses.dir}"/>
    94       <javac srcdir="${make.tools.dir}/StripProperties"
    95 		destdir="${build.toolclasses.dir}/"
    96 		classpath="${ant.home}/lib/ant.jar"/>
    97       <taskdef name="pstrip"
    98 		 classname="StripPropertiesTask"
    99 		 classpath="${build.toolclasses.dir}/"/>
   100     </target>
   102     <target name="build-classes" depends="sanity">
   103       <mkdir dir="${build.dir}"/>
   104       <mkdir dir="${build.classes.dir}"/>
   105       <javac fork="true"
   106              srcdir="${src.classes.dir}"
   107              destdir="${build.classes.dir}"
   108              memoryInitialSize="${javac.memoryInitialSize}"
   109              memoryMaximumSize="${javac.memoryMaximumSize}"
   110              source="${javac.source}"
   111 	     debug="${javac.debug}"
   112              target="${javac.target}"
   113              excludes="com/sun/tools/internal/txw2/**">
   114          <compilerarg value="-J-Xbootclasspath/p:${bootstrap.dir}/lib/javac.jar"/>
   115          <compilerarg line="${javac.version.opt}"/>
   116          <compilerarg line="${javac.no.jdk.warnings}"/>
   117       </javac>
   118     </target>
   120     <target name="clean" description="Delete all generated files">
   121 	<delete dir="${build.dir}"/>
   122 	<delete dir="${dist.dir}"/>
   123     </target>
   125     <target name="banner">
   126       <echo>+---------------------------------------+</echo>
   127       <echo>+    Building JAX-WS Component          +</echo>
   128       <echo>+---------------------------------------+</echo>
   129     </target>
   131 </project>

mercurial