jaxp/build.xml
author duke
Thu, 24 Aug 2017 16:29:54 +0200
changeset 45918 2f6544f9a0ea
parent 17265 a1a60bcda09e
permissions -rw-r--r--
Added tag jdk-10+16 for changeset 4bbea012e567
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     1
<?xml version="1.0"?>
7f561c08de6b Initial load
duke
parents:
diff changeset
     2
<!--
9059
f7d1d02fad53 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 5830
diff changeset
     3
 Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     4
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7f561c08de6b Initial load
duke
parents:
diff changeset
     5
7f561c08de6b Initial load
duke
parents:
diff changeset
     6
 This code is free software; you can redistribute it and/or modify it
7f561c08de6b Initial load
duke
parents:
diff changeset
     7
 under the terms of the GNU General Public License version 2 only, as
5512
74bb36df3a83 6943119: Rebrand source copyright notices
ohair
parents: 4294
diff changeset
     8
 published by the Free Software Foundation.  Oracle designates this
6
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
 particular file as subject to the "Classpath" exception as provided
5512
74bb36df3a83 6943119: Rebrand source copyright notices
ohair
parents: 4294
diff changeset
    10
 by Oracle in the LICENSE file that accompanied this code.
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    11
7f561c08de6b Initial load
duke
parents:
diff changeset
    12
 This code is distributed in the hope that it will be useful, but WITHOUT
7f561c08de6b Initial load
duke
parents:
diff changeset
    13
 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7f561c08de6b Initial load
duke
parents:
diff changeset
    14
 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7f561c08de6b Initial load
duke
parents:
diff changeset
    15
 version 2 for more details (a copy is included in the LICENSE file that
7f561c08de6b Initial load
duke
parents:
diff changeset
    16
 accompanied this code).
7f561c08de6b Initial load
duke
parents:
diff changeset
    17
7f561c08de6b Initial load
duke
parents:
diff changeset
    18
 You should have received a copy of the GNU General Public License version
7f561c08de6b Initial load
duke
parents:
diff changeset
    19
 2 along with this work; if not, write to the Free Software Foundation,
7f561c08de6b Initial load
duke
parents:
diff changeset
    20
 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
7f561c08de6b Initial load
duke
parents:
diff changeset
    21
5512
74bb36df3a83 6943119: Rebrand source copyright notices
ohair
parents: 4294
diff changeset
    22
 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
74bb36df3a83 6943119: Rebrand source copyright notices
ohair
parents: 4294
diff changeset
    23
 or visit www.oracle.com if you need additional information or have any
74bb36df3a83 6943119: Rebrand source copyright notices
ohair
parents: 4294
diff changeset
    24
 questions.
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
-->
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    27
<project name="jaxp" default="all" basedir=".">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    28
   
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    29
    <!-- For 'ant -p' or 'ant -projecthelp' -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    30
    
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    31
    <description>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    32
    Ant build script for the ${ant.project.name} part of the jdk.
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    34
    Input Properties: (see build.properties for the ant defaults)
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    35
      bootstrap.dir        - dir with lib/javac.jar, added to javac bootclasspath
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    36
      javac.debug          - true or false for debug classfiles
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    37
      javac.target         - classfile version target
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    38
      javac.source         - source version
5830
3adf4782de94 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5512
diff changeset
    39
3adf4782de94 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5512
diff changeset
    40
      Run 'make help' for help using the Makefile.
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    41
    </description>
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    43
    <!-- Project build properties. -->
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
    <property file="build.properties"/>
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    45
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
    46
    <!-- Source dir def -->
12457
c348e06f0e82 7160496: Rename JDK8 JAXP source directory
joehw
parents: 12005
diff changeset
    47
    <property name="jaxp.src.dir" value="src"/>
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
    48
    <path id="src.dir.id">
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
    49
      <pathelement path="${jaxp.src.dir}"/>
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
    50
    </path>
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    52
    <!-- Initialization of directories needed for build. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    53
    <target name="init">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    54
        <mkdir dir="${build.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    55
        <mkdir dir="${build.classes.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    56
        <mkdir dir="${dist.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    57
        <mkdir dir="${dist.lib.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    58
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    59
    
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    60
    <!-- Sanity checks and settings -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    61
    <target name="sanity"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    62
	    depends="-javac-jar-exists"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    63
            description="Display settings of configuration values">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    64
        <echo message="${sanity.info}"/>
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    67
     <!-- Check for bootstrap javac.jar file, warn if missing. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    68
    <condition property="javac.jar.exists">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    69
        <available file="${javac.jar}" type="file"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    70
    </condition>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    71
    <target name="-javac-jar-exists"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    72
            unless="javac.jar.exists">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    73
        <echo message="WARNING: Cannot find ${javac.jar}"/>
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    76
    <!-- Creation of distribution files to jdk build process. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    77
    <target name="dist"
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
    78
	    depends="init, build, -dist-classes-jar, -dist-src-zip"
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    79
            description="Create all built distribution files.">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    80
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    81
    <target name="-dist-classes-jar-uptodate"
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
    82
	    depends="init">
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    83
        <condition property="dist.classes.jar.uptodate">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    84
            <and>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    85
                <available file="${dist.classes.jar}" type="file"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    86
                <uptodate targetfile="${dist.classes.jar}">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    87
                    <srcfiles dir="${build.classes.dir}" includes="**"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    88
                </uptodate>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    89
            </and>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    90
        </condition>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    91
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    92
    <target name="-dist-classes-jar"
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
    93
	    depends="init, -dist-classes-jar-uptodate"
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    94
            unless="dist.classes.jar.uptodate">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    95
        <delete file="${dist.classes.jar}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
    96
        <jar file="${dist.classes.jar}" basedir="${build.classes.dir}"/>
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
    99
    <!-- Special build area setup. -->
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   100
    <target name="-build-setup" depends="init">
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   101
        <mkdir dir="${build.classes.dir}"/>
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   102
        <copy todir="${build.classes.dir}">
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   103
            <fileset dir="${jaxp.src.dir}"
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   104
                     includes="**/*.properties"/>
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   105
        </copy>
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   106
        <replaceregexp match="#(.*)$" replace="#" flags="gm">
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   107
            <fileset dir="${build.classes.dir}" includes="**/*.properties"/>
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   108
        </replaceregexp>
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   109
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   110
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   111
    <!-- Create src.zip. -->
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   112
    <target name="-dist-src-zip" depends="init">
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   113
        <zip file="${dist.src.zip}" basedir="${jaxp.src.dir}"/>
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   114
    </target>
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   115
    
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   116
    <!-- Build (compilation) of sources to class files. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   117
    <target name="build"
5830
3adf4782de94 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5512
diff changeset
   118
	    depends="compile, -build-setup">
3adf4782de94 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5512
diff changeset
   119
    </target>
3adf4782de94 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5512
diff changeset
   120
    <target name="compile"
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   121
	    depends="init">
5830
3adf4782de94 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5512
diff changeset
   122
        <mkdir dir="${build.classes.dir}"/>
4294
4b507ae0d54b 6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents: 4131
diff changeset
   123
        <javac 
5830
3adf4782de94 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5512
diff changeset
   124
	     includeAntRuntime="false" 
3adf4782de94 6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents: 5512
diff changeset
   125
	     classpath="${build.classes.dir}:${tools.jar}"
4294
4b507ae0d54b 6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents: 4131
diff changeset
   126
	     fork="true"
6
7f561c08de6b Initial load
duke
parents:
diff changeset
   127
             destdir="${build.classes.dir}"
7f561c08de6b Initial load
duke
parents:
diff changeset
   128
             memoryInitialSize="${javac.memoryInitialSize}"
7f561c08de6b Initial load
duke
parents:
diff changeset
   129
             memoryMaximumSize="${javac.memoryMaximumSize}"
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   130
             source="${javac.source}"
2830
2c7571fb9056 6829575: 100028: Debug information is incomplete or missing
aph
parents: 6
diff changeset
   131
	     debug="${javac.debug}"
6
7f561c08de6b Initial load
duke
parents:
diff changeset
   132
             target="${javac.target}">
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   133
            <compilerarg value="-J-Xbootclasspath/p:${javac.jar}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   134
            <compilerarg line="${javac.version.opt} ${javac.lint.opts} ${javac.no.jdk.warnings}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   135
            <src refid="src.dir.id"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   136
        </javac>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   137
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   138
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   139
    <!-- Test. (FIXME: Need to know how to run tests.) -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   140
    <target name="test"
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   141
	    depends="init, dist">
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   142
        <echo message="FIXME: How do you run the tests"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   143
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   144
    
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   145
    <!-- Populate source area if needed. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   146
    <target name="source"
12005
a754d69d5e60 7150324: Stop using drop bundles in jaxp
ohair
parents: 11301
diff changeset
   147
            depends="init"
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   148
            description="Populate all source file directories">
6
7f561c08de6b Initial load
duke
parents:
diff changeset
   149
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
   150
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   151
    <!-- Clean up compiled files. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   152
    <target name="clean"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   153
            description="Delete all generated files">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   154
        <delete dir="${build.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   155
        <delete dir="${dist.dir}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   156
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   157
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   158
    <!-- Clean up compiled files and all imported source files. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   159
    <target name="clobber"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   160
	    depends="clean"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   161
            description="Delete all generated files, including imported sources">
6
7f561c08de6b Initial load
duke
parents:
diff changeset
   162
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
   163
3879
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   164
    <target name="-banner">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   165
        <echo message="+---------------------------------------+"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   166
        <echo message="+ Starting ant project ${ant.project.name} +"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   167
        <echo message="+---------------------------------------+"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   168
    </target>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   169
   
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   170
    <!-- Do everything but test. -->
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   171
    <target name="all"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   172
	    depends="-banner, sanity, dist"
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   173
            description="Build everything.">
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   174
        <echo message="+---------------------------------------+"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   175
        <echo message="+ Finishing ant project ${ant.project.name}"/>
0d9209bdf36c 6856630: Restructure jaxp/jaxws repositories
ohair
parents: 3294
diff changeset
   176
        <echo message="+---------------------------------------+"/>
6
7f561c08de6b Initial load
duke
parents:
diff changeset
   177
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
   178
17265
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   179
    <target name="javadoc" depends="init" description="Build basic Javadoc for public packages.">
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   180
        <property name="javadoc.options" value=""/> <!-- default, can be overridden per user or per project -->
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   181
        <!-- Note: even with this default value, includes/excludes
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   182
         from share.src.dir get javadoc'd; see packageset below -->
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   183
        <property name="javadoc.packagenames" value="none"/> <!-- default, can be overridden per user or per project -->
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   184
        <property name="javadoc.dir" value="${build.dir}/docs/api"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   185
        <property name="includes" value="**"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   186
        <javadoc destdir="${javadoc.dir}" source="1.5"
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   187
            windowtitle="UNOFFICIAL" failonerror="true" use="true"
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   188
            author="false" version="false"
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   189
            packagenames="${javadoc.packagenames}">
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   190
            <header><![CDATA[<strong>Unofficial Javadoc</strong> generated from developer sources for preview purposes only]]></header>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   191
            <arg line="${javadoc.options}"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   192
            <bootclasspath>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   193
                <path location="${java.home}/lib/rt.jar"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   194
                <path location="${build.classes.dir}"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   195
            </bootclasspath>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   196
            <sourcepath>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   197
                <pathelement location="${jaxp.src.dir}"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   198
            </sourcepath>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   199
            <!-- XXX just <fileset> (restricted further to **/*.java) and no <packageset> -->
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   200
            <!-- means that {@link some.package} will not work, which is no good. -->
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   201
            <!-- (It correctly skips excluded single classes, but not if packageset is also included, -->
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   202
            <!-- which also causes duplicates in the class index for included files.) -->
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   203
            <packageset dir="${jaxp.src.dir}" includes="${includes}" excludes="${excludes}">
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   204
                <or>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   205
                    <filename name="javax/"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   206
                    <filename name="org/w3c/"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   207
                    <filename name="org/xml/sax/"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   208
                </or>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   209
            </packageset>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   210
        </javadoc>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   211
    </target>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   212
    <target name="javadoc-nb" depends="javadoc" if="netbeans.home">
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   213
        <property name="javadoc.dir=" value="${build.dir}/docs/api"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   214
        <nbbrowse file="${javadoc.dir}/index.html"/>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   215
    </target>
a1a60bcda09e 8010495: Update JAXP NetBeans project - add support for generating javadoc
dfuchs
parents: 12457
diff changeset
   216
6
7f561c08de6b Initial load
duke
parents:
diff changeset
   217
</project>