author | xdono |
Fri, 18 Sep 2009 09:39:47 -0700 | |
changeset 3873 | 393f394a4714 |
parent 3294 | 8943b2e74175 |
permissions | -rw-r--r-- |
6 | 1 |
<?xml version="1.0"?> |
2 |
<!-- |
|
3294 | 3 |
Copyright 2007-2009 Sun Microsystems, Inc. All Rights Reserved. |
6 | 4 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 |
||
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. |
|
11 |
||
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). |
|
17 |
||
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. |
|
21 |
||
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 |
--> |
|
26 |
||
27 |
<!-- |
|
28 |
This is the main build file for the complete jaxp workspace. |
|
29 |
--> |
|
30 |
||
31 |
<project name="jaxp" default="all" basedir="."> |
|
32 |
||
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"/> |
|
47 |
||
48 |
<target name="build" depends="banner, build-classes, build-tools"> |
|
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> |
|
53 |
||
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> |
|
61 |
||
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> |
|
69 |
||
70 |
<target name="-defs-pstrip"> |
|
71 |
<mkdir dir="${build.toolclasses.dir}"/> |
|
72 |
<javac srcdir="${make.tools.dir}/StripProperties" |
|
73 |
destdir="${build.toolclasses.dir}/" |
|
74 |
classpath="${ant.home}/lib/ant.jar"/> |
|
75 |
<taskdef name="pstrip" |
|
76 |
classname="StripPropertiesTask" |
|
77 |
classpath="${build.toolclasses.dir}/"/> |
|
78 |
</target> |
|
79 |
||
80 |
<target name="build-classes" depends="sanity"> |
|
81 |
<mkdir dir="${build.dir}"/> |
|
82 |
<mkdir dir="${build.classes.dir}"/> |
|
83 |
<javac fork="true" |
|
84 |
srcdir="${src.classes.dir}" |
|
85 |
destdir="${build.classes.dir}" |
|
86 |
memoryInitialSize="${javac.memoryInitialSize}" |
|
87 |
memoryMaximumSize="${javac.memoryMaximumSize}" |
|
2966 | 88 |
source="${javac.source}" |
2830
2c7571fb9056
6829575: 100028: Debug information is incomplete or missing
aph
parents:
6
diff
changeset
|
89 |
debug="${javac.debug}" |
6 | 90 |
target="${javac.target}"> |
91 |
<compilerarg value="-J-Xbootclasspath/p:${bootstrap.dir}/lib/javac.jar"/> |
|
92 |
<compilerarg line="${javac.version.opt}"/> |
|
93 |
</javac> |
|
94 |
</target> |
|
95 |
||
96 |
<target name="clean" description="Delete all generated files"> |
|
97 |
<delete dir="${build.dir}"/> |
|
98 |
<delete dir="${dist.dir}"/> |
|
99 |
</target> |
|
100 |
||
101 |
<target name="banner"> |
|
102 |
<echo>+---------------------------------------+</echo> |
|
103 |
<echo>+ Building JAXP Component +</echo> |
|
104 |
<echo>+---------------------------------------+</echo> |
|
105 |
</target> |
|
106 |
||
107 |
</project> |