author | alexsch |
Tue, 21 Feb 2012 15:03:07 +0400 | |
changeset 11977 | aea89067210d |
parent 11307 | 10cccac677d1 |
child 12009 | 4abb694f273a |
permissions | -rw-r--r-- |
8 | 1 |
<?xml version="1.0"?> |
2 |
<!-- |
|
9063
937a014028a6
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
5836
diff
changeset
|
3 |
Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. |
8 | 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 |
|
5516 | 8 |
published by the Free Software Foundation. Oracle designates this |
8 | 9 |
particular file as subject to the "Classpath" exception as provided |
5516 | 10 |
by Oracle in the LICENSE file that accompanied this code. |
8 | 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 |
||
5516 | 22 |
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
23 |
or visit www.oracle.com if you need additional information or have any |
|
24 |
questions. |
|
8 | 25 |
--> |
26 |
||
3885 | 27 |
<project name="jaxws" default="all" basedir="."> |
28 |
||
29 |
<!-- For 'ant -p' or 'ant -projecthelp' --> |
|
30 |
||
31 |
<description> |
|
32 |
Ant build script for the ${ant.project.name} part of the jdk. |
|
8 | 33 |
|
3885 | 34 |
Input Properties: (see build.properties for the ant defaults) |
35 |
bootstrap.dir - dir with lib/javac.jar, added to javac bootclasspath |
|
36 |
javac.debug - true or false for debug classfiles |
|
37 |
javac.target - classfile version target |
|
38 |
javac.source - source version |
|
5836
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
39 |
drops.dir - directory that holds source drop bundles |
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
40 |
allow.download - permit downloads from public url (default is false) |
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
41 |
(used if bundles not found in drops.dir) |
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
42 |
|
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
43 |
Run 'make help' for help using the Makefile. |
3885 | 44 |
</description> |
8 | 45 |
|
3885 | 46 |
<!-- Project build properties. --> |
8 | 47 |
<property file="build.properties"/> |
48 |
||
4137
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
49 |
<!-- See if drop sources were included. --> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
50 |
<condition property="drop.dir" |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
51 |
value="${drop.included.dir}" |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
52 |
else="${drop.expanded.dir}"> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
53 |
<available file="${drop.included.dir}" type="dir"/> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
54 |
</condition> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
55 |
|
3885 | 56 |
<!-- Get shared targets. --> |
57 |
<import file="build-defs.xml"/> |
|
8 | 58 |
|
3885 | 59 |
<!-- Initialization of directories needed for build. --> |
60 |
<target name="init"> |
|
8 | 61 |
<mkdir dir="${build.dir}"/> |
62 |
<mkdir dir="${build.classes.dir}"/> |
|
3885 | 63 |
<mkdir dir="${dist.dir}"/> |
64 |
<mkdir dir="${dist.lib.dir}"/> |
|
65 |
</target> |
|
66 |
||
67 |
<!-- Sanity checks and settings --> |
|
68 |
<target name="sanity" |
|
69 |
depends="-javac-jar-exists" |
|
70 |
description="Display settings of configuration values"> |
|
71 |
<echo message="${sanity.info}"/> |
|
72 |
</target> |
|
73 |
||
74 |
<!-- Check for bootstrap javac.jar file, warn if missing. --> |
|
75 |
<condition property="javac.jar.exists"> |
|
76 |
<available file="${javac.jar}" type="file"/> |
|
77 |
</condition> |
|
78 |
<target name="-javac-jar-exists" |
|
79 |
unless="javac.jar.exists"> |
|
80 |
<echo message="WARNING: Cannot find ${javac.jar}"/> |
|
8 | 81 |
</target> |
82 |
||
3885 | 83 |
<!-- Creation of distribution files to jdk build process. --> |
84 |
<target name="dist" |
|
85 |
depends="init, -init-src-dirs, build, -dist-classes-jar, -dist-src-zip" |
|
86 |
description="Create all built distribution files."> |
|
87 |
</target> |
|
88 |
<target name="-dist-classes-jar-uptodate" |
|
89 |
depends="init, -init-src-dirs"> |
|
90 |
<condition property="dist.classes.jar.uptodate"> |
|
91 |
<and> |
|
92 |
<available file="${dist.classes.jar}" type="file"/> |
|
93 |
<uptodate targetfile="${dist.classes.jar}"> |
|
94 |
<srcfiles dir="${build.classes.dir}" includes="**"/> |
|
95 |
</uptodate> |
|
96 |
</and> |
|
97 |
</condition> |
|
98 |
</target> |
|
99 |
<target name="-dist-classes-jar" |
|
100 |
depends="init, -init-src-dirs, -dist-classes-jar-uptodate" |
|
101 |
unless="dist.classes.jar.uptodate"> |
|
102 |
<delete file="${dist.classes.jar}"/> |
|
103 |
<jar file="${dist.classes.jar}" basedir="${build.classes.dir}"/> |
|
8 | 104 |
</target> |
105 |
||
5836
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
106 |
<target name="-build-setup" |
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
107 |
depends="init, -init-src-dirs, -drop-build-setup"> |
8 | 108 |
</target> |
109 |
||
3885 | 110 |
<!-- Build (compilation) of sources to class files. --> |
111 |
<target name="build" |
|
5836
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
112 |
depends="compile, -build-setup"> |
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
113 |
</target> |
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
114 |
<target name="compile" |
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
115 |
depends="init, -init-src-dirs"> |
0ca88d5cdd40
6955292: Workaround ant 1.7.1 package-info.java issue in ant scripts
ohair
parents:
5516
diff
changeset
|
116 |
<mkdir dir="${build.classes.dir}"/> |
4298
05940e71b36b
6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents:
4137
diff
changeset
|
117 |
<javac |
05940e71b36b
6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents:
4137
diff
changeset
|
118 |
includeAntRuntime="false" |
05940e71b36b
6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents:
4137
diff
changeset
|
119 |
classpath="${build.classes.dir}:${tools.jar}" |
05940e71b36b
6900341: jaxp/jaxws ant scripts using ant runtime in classpath, needs to be explicit
ohair
parents:
4137
diff
changeset
|
120 |
fork="true" |
8 | 121 |
destdir="${build.classes.dir}" |
122 |
memoryInitialSize="${javac.memoryInitialSize}" |
|
123 |
memoryMaximumSize="${javac.memoryMaximumSize}" |
|
2971 | 124 |
source="${javac.source}" |
2839
668ff342c026
6829575: 100028: Debug information is incomplete or missing
aph
parents:
8
diff
changeset
|
125 |
debug="${javac.debug}" |
3885 | 126 |
target="${javac.target}"> |
127 |
<compilerarg value="-J-Xbootclasspath/p:${javac.jar}"/> |
|
128 |
<compilerarg line="${javac.version.opt} ${javac.lint.opts} ${javac.no.jdk.warnings}"/> |
|
129 |
<src refid="src.dir.id"/> |
|
130 |
</javac> |
|
131 |
</target> |
|
132 |
||
133 |
<!-- Test. (FIXME: Need to know how to run tests.) --> |
|
134 |
<target name="test" |
|
135 |
depends="init, -init-src-dirs, dist"> |
|
136 |
<echo message="FIXME: How do you run the tests"/> |
|
137 |
</target> |
|
138 |
||
139 |
<!-- Populate source area if needed. --> |
|
140 |
<target name="source" |
|
141 |
depends="init, -init-src-dirs" |
|
142 |
description="Populate all source file directories"> |
|
8 | 143 |
</target> |
144 |
||
4137
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
145 |
<!-- Populate drop_included area. --> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
146 |
<target name="drop_included" |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
147 |
depends="clobber" |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
148 |
description="Populate all source file directories"> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
149 |
<delete dir="${drop.included.dir}"/> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
150 |
<antcall target="source"/> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
151 |
<move file="${drop.expanded.dir}" tofile="${drop.included.dir}"/> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
152 |
<delete dir="${drop.included.dir}/bundles"/> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
153 |
</target> |
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
154 |
|
3885 | 155 |
<!-- Clean up compiled files. --> |
156 |
<target name="clean" |
|
157 |
description="Delete all generated files"> |
|
158 |
<delete dir="${build.dir}"/> |
|
159 |
<delete dir="${dist.dir}"/> |
|
160 |
</target> |
|
161 |
||
162 |
<!-- Clean up compiled files and all imported source files. --> |
|
163 |
<target name="clobber" |
|
164 |
depends="clean" |
|
165 |
description="Delete all generated files, including imported sources"> |
|
4137
a06d987928b2
6894441: Add checksum checks, remove use of original sources in jax repositories, fix bundle logic
ohair
parents:
3885
diff
changeset
|
166 |
<delete dir="${drop.expanded.dir}"/> |
8 | 167 |
</target> |
168 |
||
3885 | 169 |
<target name="-banner"> |
170 |
<echo message="+---------------------------------------+"/> |
|
171 |
<echo message="+ Starting ant project ${ant.project.name} +"/> |
|
172 |
<echo message="+---------------------------------------+"/> |
|
173 |
</target> |
|
174 |
||
175 |
<!-- Do everything but test. --> |
|
176 |
<target name="all" |
|
177 |
depends="-banner, sanity, dist" |
|
178 |
description="Build everything."> |
|
179 |
<echo message="+---------------------------------------+"/> |
|
180 |
<echo message="+ Finishing ant project ${ant.project.name}"/> |
|
181 |
<echo message="+---------------------------------------+"/> |
|
8 | 182 |
</target> |
183 |
||
184 |
</project> |