jaxp/make/build.xml
author dcherepanov
Thu, 09 Jul 2009 15:18:50 -0400
changeset 3233 abdab1f90b46
parent 2967 faa3111c009c
child 3294 8943b2e74175
permissions -rw-r--r--
6759726: TrayIcon constructor throws NPE instead of documented IAE Reviewed-by: art
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
<!--
7f561c08de6b Initial load
duke
parents:
diff changeset
     3
 Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
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
7f561c08de6b Initial load
duke
parents:
diff changeset
     8
 published by the Free Software Foundation.  Sun designates this
7f561c08de6b Initial load
duke
parents:
diff changeset
     9
 particular file as subject to the "Classpath" exception as provided
7f561c08de6b Initial load
duke
parents:
diff changeset
    10
 by Sun in the LICENSE file that accompanied this code.
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
7f561c08de6b Initial load
duke
parents:
diff changeset
    22
 Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
7f561c08de6b Initial load
duke
parents:
diff changeset
    23
 CA 95054 USA or visit www.sun.com if you need additional information or
7f561c08de6b Initial load
duke
parents:
diff changeset
    24
 have any questions.
7f561c08de6b Initial load
duke
parents:
diff changeset
    25
-->
7f561c08de6b Initial load
duke
parents:
diff changeset
    26
7f561c08de6b Initial load
duke
parents:
diff changeset
    27
<!--
7f561c08de6b Initial load
duke
parents:
diff changeset
    28
 This is the main build file for the complete jaxp workspace.
7f561c08de6b Initial load
duke
parents:
diff changeset
    29
 -->
7f561c08de6b Initial load
duke
parents:
diff changeset
    30
7f561c08de6b Initial load
duke
parents:
diff changeset
    31
<project name="jaxp" default="all" basedir=".">
7f561c08de6b Initial load
duke
parents:
diff changeset
    32
7f561c08de6b Initial load
duke
parents:
diff changeset
    33
    <!-- Convenient shorthands for standard locations within the workspace. -->
7f561c08de6b Initial load
duke
parents:
diff changeset
    34
    <property file="build.properties"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    35
    <property name="topdir" value=".."/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    36
    <property name="build.dir" location="${topdir}/build"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    37
    <property name="build.classes.dir" location="${build.dir}/classes"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    38
    <property name="build.gensrc.dir" location="${build.dir}/gensrc"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    39
    <property name="build.toolclasses.dir" location="${build.dir}/toolclasses"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    40
    <property name="dist.dir" location="${topdir}/dist"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    41
    <property name="dist.lib.dir" location="${dist.dir}/lib"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    42
    <property name="make.dir" location="${topdir}/make"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    43
    <property name="make.tools.dir" location="${make.dir}/tools"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    44
    <property name="src.dir" location="${topdir}/src"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    45
    <property name="src.classes.dir" location="${src.dir}/share/classes"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    46
    <property environment="env"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    47
7f561c08de6b Initial load
duke
parents:
diff changeset
    48
    <target name="build" depends="banner, build-classes, build-tools">
7f561c08de6b Initial load
duke
parents:
diff changeset
    49
	<mkdir dir="${dist.lib.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    50
	<jar file="${dist.lib.dir}/classes.jar" basedir="${build.classes.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    51
	<zip file="${dist.lib.dir}/src.zip" basedir="${src.classes.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    52
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
    53
7f561c08de6b Initial load
duke
parents:
diff changeset
    54
    <!-- Debug information -->
7f561c08de6b Initial load
duke
parents:
diff changeset
    55
    <target name="sanity"
7f561c08de6b Initial load
duke
parents:
diff changeset
    56
        description="display settings of configuration values">
7f561c08de6b Initial load
duke
parents:
diff changeset
    57
	<echo level="info">ant.home = ${ant.home}</echo>
7f561c08de6b Initial load
duke
parents:
diff changeset
    58
	<echo level="info">java.home = ${env.JAVA_HOME}</echo>
7f561c08de6b Initial load
duke
parents:
diff changeset
    59
	<echo level="info">bootstrap.dir = ${bootstrap.dir}</echo>
7f561c08de6b Initial load
duke
parents:
diff changeset
    60
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
    61
7f561c08de6b Initial load
duke
parents:
diff changeset
    62
    <target name="build-tools" depends="-defs-pstrip">
7f561c08de6b Initial load
duke
parents:
diff changeset
    63
        <mkdir dir="${build.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    64
        <mkdir dir="${build.classes.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    65
	    <pstrip srcdir="${src.classes.dir}"
7f561c08de6b Initial load
duke
parents:
diff changeset
    66
                    destdir="${build.classes.dir}"
7f561c08de6b Initial load
duke
parents:
diff changeset
    67
		    includes="**/*.properties"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    68
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
    69
7f561c08de6b Initial load
duke
parents:
diff changeset
    70
    <target name="-defs-pstrip">
7f561c08de6b Initial load
duke
parents:
diff changeset
    71
      <mkdir dir="${build.toolclasses.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    72
      <javac srcdir="${make.tools.dir}/StripProperties"
7f561c08de6b Initial load
duke
parents:
diff changeset
    73
		destdir="${build.toolclasses.dir}/"
7f561c08de6b Initial load
duke
parents:
diff changeset
    74
		classpath="${ant.home}/lib/ant.jar"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    75
      <taskdef name="pstrip"
7f561c08de6b Initial load
duke
parents:
diff changeset
    76
		 classname="StripPropertiesTask"
7f561c08de6b Initial load
duke
parents:
diff changeset
    77
		 classpath="${build.toolclasses.dir}/"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    78
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
    79
7f561c08de6b Initial load
duke
parents:
diff changeset
    80
    <target name="build-classes" depends="sanity">
7f561c08de6b Initial load
duke
parents:
diff changeset
    81
      <mkdir dir="${build.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    82
      <mkdir dir="${build.classes.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    83
      <javac fork="true"
7f561c08de6b Initial load
duke
parents:
diff changeset
    84
             srcdir="${src.classes.dir}"
7f561c08de6b Initial load
duke
parents:
diff changeset
    85
             destdir="${build.classes.dir}"
7f561c08de6b Initial load
duke
parents:
diff changeset
    86
             memoryInitialSize="${javac.memoryInitialSize}"
7f561c08de6b Initial load
duke
parents:
diff changeset
    87
             memoryMaximumSize="${javac.memoryMaximumSize}"
2966
b6cb15e139ac 6827026: Change javac source and target default to 7
jjg
parents: 6
diff changeset
    88
	     source="${javac.source}"
2830
2c7571fb9056 6829575: 100028: Debug information is incomplete or missing
aph
parents: 6
diff changeset
    89
	     debug="${javac.debug}"
6
7f561c08de6b Initial load
duke
parents:
diff changeset
    90
             target="${javac.target}">
7f561c08de6b Initial load
duke
parents:
diff changeset
    91
         <compilerarg value="-J-Xbootclasspath/p:${bootstrap.dir}/lib/javac.jar"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    92
         <compilerarg line="${javac.version.opt}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    93
      </javac>
7f561c08de6b Initial load
duke
parents:
diff changeset
    94
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
    95
7f561c08de6b Initial load
duke
parents:
diff changeset
    96
    <target name="clean" description="Delete all generated files">
7f561c08de6b Initial load
duke
parents:
diff changeset
    97
	<delete dir="${build.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    98
	<delete dir="${dist.dir}"/>
7f561c08de6b Initial load
duke
parents:
diff changeset
    99
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
   100
7f561c08de6b Initial load
duke
parents:
diff changeset
   101
    <target name="banner">
7f561c08de6b Initial load
duke
parents:
diff changeset
   102
      <echo>+---------------------------------------+</echo>
7f561c08de6b Initial load
duke
parents:
diff changeset
   103
      <echo>+    Building JAXP Component            +</echo>
7f561c08de6b Initial load
duke
parents:
diff changeset
   104
      <echo>+---------------------------------------+</echo>
7f561c08de6b Initial load
duke
parents:
diff changeset
   105
    </target>
7f561c08de6b Initial load
duke
parents:
diff changeset
   106
7f561c08de6b Initial load
duke
parents:
diff changeset
   107
</project>