author | jjg |
Fri, 04 Jun 2010 14:54:54 -0700 | |
changeset 5844 | 76650bf67a5c |
parent 5520 | 86e4b9a9da40 |
child 5845 | 6b8e5689445a |
permissions | -rw-r--r-- |
10 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- |
|
5520 | 3 |
Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved. |
10 | 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 |
|
5520 | 8 |
published by the Free Software Foundation. Oracle designates this |
10 | 9 |
particular file as subject to the "Classpath" exception as provided |
5520 | 10 |
by Oracle in the LICENSE file that accompanied this code. |
10 | 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 |
||
5520 | 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. |
|
10 | 25 |
--> |
26 |
||
27 |
<!-- |
|
28 |
This is the main build file for the complete langtools workspace. |
|
29 |
It is used both when working on the tools in NetBeans, and when building |
|
30 |
JDK itself, in which case it is invoked from the wrapper Makefile. |
|
31 |
--> |
|
32 |
||
33 |
<project name="langtools" default="build" basedir=".."> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
34 |
|
2850
307d7719ccb7
6837665: Deal with windows ant problem where commas in -D options do not work
aph
parents:
2212
diff
changeset
|
35 |
<!-- Force full debuginfo for javac if the debug.classfiles |
307d7719ccb7
6837665: Deal with windows ant problem where commas in -D options do not work
aph
parents:
2212
diff
changeset
|
36 |
property is set. This must be BEFORE the include of |
307d7719ccb7
6837665: Deal with windows ant problem where commas in -D options do not work
aph
parents:
2212
diff
changeset
|
37 |
build.properties because it sets javac.debuglevel. --> |
307d7719ccb7
6837665: Deal with windows ant problem where commas in -D options do not work
aph
parents:
2212
diff
changeset
|
38 |
<condition property="javac.debuglevel" value="source,lines,vars"> |
307d7719ccb7
6837665: Deal with windows ant problem where commas in -D options do not work
aph
parents:
2212
diff
changeset
|
39 |
<equals arg1="${debug.classfiles}" arg2="true"/> |
307d7719ccb7
6837665: Deal with windows ant problem where commas in -D options do not work
aph
parents:
2212
diff
changeset
|
40 |
</condition> |
307d7719ccb7
6837665: Deal with windows ant problem where commas in -D options do not work
aph
parents:
2212
diff
changeset
|
41 |
|
10 | 42 |
<!-- The following locations can be used to override default property values. --> |
43 |
||
44 |
<!-- Use this location for customizations specific to this instance of this workspace --> |
|
45 |
<property file="build.properties"/> |
|
46 |
||
47 |
<!-- Use this location for customizations common to all OpenJDK langtools workspaces --> |
|
48 |
<property file="${user.home}/.openjdk/${ant.project.name}-build.properties"/> |
|
49 |
||
50 |
<!-- Use this location for customizations common to all OpenJDK workspaces --> |
|
51 |
<property file="${user.home}/.openjdk/build.properties"/> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
52 |
|
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
53 |
<!-- Convenient shorthands for standard locations within the workspace. --> |
10 | 54 |
<property name="build.dir" location="build"/> |
55 |
<property name="build.bootstrap.dir" location="${build.dir}/bootstrap"/> |
|
56 |
<property name="build.coverage.dir" location="${build.dir}/coverage"/> |
|
57 |
<property name="build.classes.dir" location="${build.dir}/classes"/> |
|
58 |
<property name="build.gensrc.dir" location="${build.dir}/gensrc"/> |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
59 |
<property name="build.genstubs.dir" location="${build.dir}/genstubs"/> |
10 | 60 |
<property name="build.javadoc.dir" location="${build.dir}/javadoc"/> |
61 |
<property name="build.jtreg.dir" location="${build.dir}/jtreg"/> |
|
62 |
<property name="build.toolclasses.dir" location="${build.dir}/toolclasses"/> |
|
63 |
<property name="dist.dir" location="dist"/> |
|
64 |
<property name="dist.bin.dir" location="${dist.dir}/bin"/> |
|
65 |
<property name="dist.coverage.dir" location="${dist.dir}/coverage"/> |
|
66 |
<property name="dist.findbugs.dir" location="${dist.dir}/findbugs"/> |
|
67 |
<property name="dist.lib.dir" location="${dist.dir}/lib"/> |
|
68 |
<property name="make.dir" location="make"/> |
|
69 |
<property name="make.tools.dir" location="${make.dir}/tools"/> |
|
70 |
<property name="src.dir" location="src"/> |
|
71 |
<property name="src.bin.dir" location="${src.dir}/share/bin"/> |
|
72 |
<property name="src.classes.dir" location="${src.dir}/share/classes"/> |
|
73 |
<property name="test.dir" location="test"/> |
|
74 |
||
75 |
<!-- java.marker is set to a marker file to check for within a Java install dir. |
|
76 |
The best file to check for across Solaris/Linux/Windows/MacOS is one of the |
|
77 |
executables; regrettably, that is OS-specific. --> |
|
78 |
<condition property="java.marker" value="bin/java"> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
79 |
<os family="unix"/> |
10 | 80 |
</condition> |
81 |
<condition property="java.marker" value="bin/java.exe"> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
82 |
<os family="windows"/> |
10 | 83 |
</condition> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
84 |
|
10 | 85 |
<!-- Standard property values, if not overriden by earlier settings. --> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
86 |
<property file="${make.dir}/build.properties"/> |
3654 | 87 |
|
88 |
<!-- launcher.java is used in the launcher scripts provided to run |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
89 |
the tools' jar files. If it has not already been set, then |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
90 |
default it to use ${target.java.home}, if available, otherwise |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
91 |
quietly default to simply use "java". --> |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
92 |
<condition property="launcher.java" |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
93 |
value="${target.java.home}/bin/java" else="java"> |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
94 |
<isset property="target.java.home"/> |
3654 | 95 |
</condition> |
96 |
||
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
97 |
<!-- Logic for handling access import jdk classes, if available. |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
98 |
import.jdk should be unset, or set to jdk home (to use rt.jar) |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
99 |
or to jdk repo (to use src/share/classes). |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
100 |
Based on the value, if any, set up default values for javac's sourcepath, |
4548 | 101 |
classpath and bootclasspath. Note: the default values are overridden |
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
102 |
in the build-bootstrap-classes macro. --> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
103 |
|
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
104 |
<available property="import.jdk.src.dir" value="${import.jdk}/src/share/classes" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
105 |
filepath="${import.jdk}/src/share/classes" file="java/nio/file/Path.java"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
106 |
<available property="import.jdk.jar" value="${import.jdk}/jre/lib/rt.jar" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
107 |
ignoresystemclasses="true" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
108 |
classpath="${import.jdk}/jre/lib/rt.jar" classname="java.nio.file.Path"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
109 |
|
4698
4ea5b8e20252
6915152: langtools build failures with import.jdk on Windows
jjg
parents:
4548
diff
changeset
|
110 |
<!-- Set the default value of the sourcepath used for javac. --> |
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
111 |
<condition property="javac.sourcepath" value="${build.genstubs.dir}" else=""> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
112 |
<isset property="import.jdk.src.dir"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
113 |
</condition> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
114 |
|
4698
4ea5b8e20252
6915152: langtools build failures with import.jdk on Windows
jjg
parents:
4548
diff
changeset
|
115 |
<!-- Set the default value of the classpath used for javac. --> |
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
116 |
<property name="javac.classpath" value=""/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
117 |
|
4698
4ea5b8e20252
6915152: langtools build failures with import.jdk on Windows
jjg
parents:
4548
diff
changeset
|
118 |
<!-- Set the default bootclasspath option used for javac. |
4ea5b8e20252
6915152: langtools build failures with import.jdk on Windows
jjg
parents:
4548
diff
changeset
|
119 |
Note that different variants of the option are used, meaning we can't just |
4ea5b8e20252
6915152: langtools build failures with import.jdk on Windows
jjg
parents:
4548
diff
changeset
|
120 |
define the value for the option. |
4ea5b8e20252
6915152: langtools build failures with import.jdk on Windows
jjg
parents:
4548
diff
changeset
|
121 |
Note the explicit use of the standard property ${path.separator} in the following. |
4ea5b8e20252
6915152: langtools build failures with import.jdk on Windows
jjg
parents:
4548
diff
changeset
|
122 |
This is because Ant is not clever enough to handle direct use of : or ; --> |
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
123 |
<condition property="javac.bootclasspath.opt" |
4698
4ea5b8e20252
6915152: langtools build failures with import.jdk on Windows
jjg
parents:
4548
diff
changeset
|
124 |
value="-Xbootclasspath:${build.classes.dir}${path.separator}${import.jdk.jar}" |
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
125 |
else="-Xbootclasspath/p:${build.classes.dir}"> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
126 |
<isset property="import.jdk.jar"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
127 |
</condition> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
128 |
|
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
129 |
<condition property="exclude.files" value="" else="${require.import.jdk.files}"> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
130 |
<isset property="import.jdk"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
131 |
</condition> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
132 |
|
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
133 |
<!-- for debugging --> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
134 |
<target name="check-import.jdk"> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
135 |
<echo message="import.jdk: ${import.jdk}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
136 |
<echo message="import.jdk.jar: ${import.jdk.jar}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
137 |
<echo message="import.jdk.src.dir: ${import.jdk.src.dir}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
138 |
</target> |
5844 | 139 |
|
140 |
<target name="vizant" depends="-def-vizant"> |
|
141 |
<mkdir dir="${build.dir}"/> |
|
142 |
<echo message="Generating ${build.dir}/build.dot"/> |
|
143 |
<vizant antfile="${make.dir}/build.xml" outfile="${build.dir}/build.dot"/> |
|
144 |
<echo message="Generating ${build.dir}/build.png"/> |
|
145 |
<exec executable="${dot}" > |
|
146 |
<arg value="-Tpng"/> |
|
147 |
<arg value="-o"/> |
|
148 |
<arg file="${build.dir}/build.png"/> |
|
149 |
<arg file="${build.dir}/build.dot"/> |
|
150 |
</exec> |
|
151 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
152 |
|
10 | 153 |
<!-- Standard target to build deliverables for JDK build. --> |
154 |
||
155 |
<target name="build" depends="build-bootstrap-tools,build-all-classes"> |
|
156 |
<copy todir="${dist.dir}/bootstrap"> |
|
157 |
<fileset dir="${build.bootstrap.dir}" includes="bin/,lib/"/> |
|
158 |
</copy> |
|
159 |
<chmod dir="${dist.dir}/bootstrap/bin" perm="ugo+rx"> |
|
160 |
<include name="*"/> |
|
161 |
</chmod> |
|
162 |
<mkdir dir="${dist.lib.dir}"/> |
|
163 |
<jar file="${dist.lib.dir}/classes.jar" basedir="${build.classes.dir}"/> |
|
164 |
<zip file="${dist.lib.dir}/src.zip" basedir="${src.classes.dir}"/> |
|
165 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
166 |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
167 |
<target name="build-bootstrap-tools" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
168 |
depends="build-bootstrap-javac,build-bootstrap-javadoc,build-bootstrap-doclets,build-bootstrap-javah" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
169 |
/> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
170 |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
171 |
<target name="build-all-tools" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
172 |
depends="build-javac,build-javadoc,build-doclets,build-javah,build-javap,build-apt" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
173 |
/> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
174 |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
175 |
<target name="build-all-classes" depends="build-bootstrap-javac,-create-import-jdk-stubs"> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
176 |
<build-classes includes="${javac.includes} ${javadoc.includes} ${doclets.includes} ${javah.includes} ${javap.includes} ${apt.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
177 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
178 |
|
10 | 179 |
<!-- clean --> |
180 |
||
181 |
<target name="clean" description="Delete all generated files"> |
|
182 |
<delete dir="${build.dir}"/> |
|
183 |
<delete dir="${dist.dir}"/> |
|
184 |
</target> |
|
185 |
||
186 |
<!-- Additional targets for running tools on the build --> |
|
187 |
||
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
188 |
<target name="jtreg" depends="build-all-tools,-def-jtreg"> |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
189 |
<jtreg-tool name="all" tests="${jtreg.tests}"/> |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
190 |
</target> |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
191 |
|
10 | 192 |
<target name="findbugs" depends="-def-findbugs,build-all-tools"> |
193 |
<property name="findbugs.reportLevel" value="medium"/> |
|
194 |
<mkdir dir="${dist.findbugs.dir}"/> |
|
195 |
<findbugs |
|
196 |
home="${findbugs.home}" |
|
197 |
projectName="JDK langtools ${full.version}" |
|
198 |
output="xml" |
|
199 |
outputFile="${dist.findbugs.dir}/findbugs.xml" |
|
200 |
reportLevel="${findbugs.reportLevel}" |
|
201 |
failOnError="false" |
|
202 |
errorProperty="findbugs.all.errors" |
|
203 |
warningsProperty="findbugs.all.warnings" |
|
204 |
jvmargs="-Xmx512M"> |
|
205 |
<class location="${build.classes.dir}"/> |
|
206 |
<sourcePath> |
|
207 |
<pathelement location="${src.classes.dir}"/> |
|
208 |
</sourcePath> |
|
209 |
</findbugs> |
|
210 |
<exec executable="sh"> |
|
211 |
<arg value="${findbugs.home}/bin/convertXmlToText"/> |
|
212 |
<arg value="-longBugCodes"/> |
|
213 |
<arg value="-html:${findbugs.home}/src/xsl/fancy.xsl"/> |
|
214 |
<arg value="${dist.findbugs.dir}/findbugs.xml"/> |
|
215 |
<redirector output="${dist.findbugs.dir}/findbugs.html"/> |
|
727
cb50c1ae7bab
4075303: Use javap to enquire aboput a specific inner class
jjg
parents:
10
diff
changeset
|
216 |
</exec> |
10 | 217 |
</target> |
218 |
||
219 |
<target name="coverage" depends="-def-cobertura,build-all-classes,instrument-classes,jtreg,coverage-report"/> |
|
220 |
||
221 |
<target name="instrument-classes" depends="-def-cobertura"> |
|
222 |
<!-- only define the following property when we want coverage info --> |
|
223 |
<path id="coverage.classpath"> |
|
224 |
<pathelement location="${build.coverage.dir}/classes"/> |
|
225 |
<path refid="cobertura.classpath"/> |
|
226 |
</path> |
|
227 |
<property name="coverage.options" value="-Dnet.sourceforge.cobertura.datafile=${build.coverage.dir}/cobertura.ser"/> |
|
228 |
<property name="coverage.classpath" refid="coverage.classpath"/> |
|
229 |
<mkdir dir="${build.coverage.dir}/classes"/> |
|
230 |
<delete file="${build.coverage.dir}/cobertura.ser"/> |
|
231 |
<cobertura-instrument todir="${build.coverage.dir}/classes" |
|
232 |
datafile="${build.coverage.dir}/cobertura.ser"> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
233 |
<fileset dir="${build.classes.dir}" |
10 | 234 |
includes="**/*.class" excludes="**/resources/*.class"/> |
235 |
</cobertura-instrument> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
236 |
</target> |
10 | 237 |
|
238 |
<target name="coverage-report" depends="-def-cobertura"> |
|
239 |
<mkdir dir="${dist.coverage.dir}"/> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
240 |
<cobertura-report |
10 | 241 |
srcdir="${src.classes.dir}" |
242 |
destdir="${dist.coverage.dir}" |
|
243 |
datafile="${build.coverage.dir}/cobertura.ser"/> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
244 |
<cobertura-report |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
245 |
format="xml" |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
246 |
srcdir="${src.classes.dir}" |
10 | 247 |
destdir="${dist.coverage.dir}" |
248 |
datafile="${build.coverage.dir}/cobertura.ser"/> |
|
249 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
250 |
|
10 | 251 |
<!-- javac targets --> |
252 |
||
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
253 |
<target name="build-bootstrap-javac" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
254 |
depends="-def-build-bootstrap-classes,-def-build-bootstrap-jar,-def-build-bootstrap-tool"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
255 |
<build-bootstrap-classes includes="${javac.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
256 |
<build-bootstrap-jar name="javac" includes="${javac.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
257 |
<build-bootstrap-tool name="javac"/> |
10 | 258 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
259 |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
260 |
<target name="build-classes-javac" depends="build-bootstrap-javac,-create-import-jdk-stubs"> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
261 |
<build-classes includes="${javac.includes}"/> |
10 | 262 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
263 |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
264 |
<target name="build-javac" depends="build-classes-javac"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
265 |
<build-jar name="javac" includes="${javac.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
266 |
<build-tool name="javac"/> |
10 | 267 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
268 |
|
10 | 269 |
<target name="javadoc-javac" depends="build-javac,-def-javadoc-tool"> |
270 |
<javadoc-tool name="javac" includes="${javac.includes}" options="${javadoc.jls3.option}"/> |
|
271 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
272 |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
273 |
<target name="jtreg-javac" depends="build-javac,build-javap,-def-jtreg"> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
274 |
<jtreg-tool name="javac" tests="${javac.tests}"/> |
10 | 275 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
276 |
|
10 | 277 |
<target name="findbugs-javac" depends="build-javac,-def-findbugs"> |
278 |
<findbugs-tool name="javac"/> |
|
279 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
280 |
|
10 | 281 |
<target name="javac" depends="build-javac,jtreg-javac,findbugs-javac"/> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
282 |
|
10 | 283 |
<!-- javadoc targets --> |
284 |
||
285 |
<target name="build-bootstrap-javadoc" depends="build-bootstrap-javac"> |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
286 |
<build-bootstrap-classes includes="${javadoc.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
287 |
<build-bootstrap-jar name="javadoc" includes="${javadoc.includes}" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
288 |
jarclasspath="javac.jar doclets.jar"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
289 |
<build-bootstrap-tool name="javadoc"/> |
10 | 290 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
291 |
|
10 | 292 |
<target name="build-classes-javadoc" depends="build-classes-javac"> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
293 |
<build-classes includes="${javadoc.includes}"/> |
10 | 294 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
295 |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
296 |
<target name="build-javadoc" depends="build-javac,build-classes-javadoc"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
297 |
<build-jar name="javadoc" includes="${javadoc.includes}" |
10 | 298 |
jarclasspath="javac.jar doclets.jar"/> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
299 |
<build-tool name="javadoc"/> |
10 | 300 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
301 |
|
10 | 302 |
<target name="javadoc-javadoc" depends="build-javadoc,-def-javadoc-tool"> |
303 |
<javadoc-tool name="javadoc" includes="${javadoc.includes}"/> |
|
304 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
305 |
|
10 | 306 |
<target name="jtreg-javadoc" depends="build-javadoc,-def-jtreg"> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
307 |
<jtreg-tool name="javadoc" tests="${javadoc.tests}"/> |
10 | 308 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
309 |
|
10 | 310 |
<target name="findbugs-javadoc" depends="build-javadoc,-def-findbugs"> |
311 |
<findbugs-tool name="javadoc"/> |
|
312 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
313 |
|
10 | 314 |
<target name="javadoc" depends="build-javadoc,jtreg-javadoc,findbugs-javadoc"/> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
315 |
|
10 | 316 |
<!-- doclets targets --> |
317 |
||
318 |
<target name="build-bootstrap-doclets" depends="build-bootstrap-javadoc,-def-build-bootstrap-jar"> |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
319 |
<build-bootstrap-classes includes="${doclets.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
320 |
<build-bootstrap-jar name="doclets" includes="${doclets.includes}" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
321 |
jarmainclass="com.sun.tools.javadoc.Main" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
322 |
jarclasspath="javadoc.jar"/> |
10 | 323 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
324 |
|
10 | 325 |
<target name="build-classes-doclets" depends="build-classes-javadoc"> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
326 |
<build-classes includes="${doclets.includes}"/> |
10 | 327 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
328 |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
329 |
<target name="build-doclets" depends="build-javadoc,build-classes-doclets"> |
10 | 330 |
<!-- just jar, no bin for doclets --> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
331 |
<build-jar name="doclets" includes="${doclets.includes}" jarclasspath="javadoc.jar"/> |
10 | 332 |
</target> |
333 |
||
334 |
<!-- (no javadoc for doclets) --> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
335 |
|
10 | 336 |
<target name="jtreg-doclets" depends="build-doclets,-def-jtreg"> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
337 |
<jtreg-tool name="doclets" tests="${doclets.tests}"/> |
10 | 338 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
339 |
|
10 | 340 |
<target name="findbugs-doclets" depends="build-doclets,-def-findbugs"> |
341 |
<findbugs-tool name="doclets"/> |
|
342 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
343 |
|
10 | 344 |
<target name="doclets" depends="build-doclets,jtreg-doclets,findbugs-doclets"/> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
345 |
|
10 | 346 |
<!-- javah targets --> |
347 |
||
348 |
<target name="build-bootstrap-javah" depends="build-bootstrap-javadoc"> |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
349 |
<build-bootstrap-classes includes="${javah.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
350 |
<build-bootstrap-jar name="javah" includes="${javah.includes}" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
351 |
jarclasspath="javadoc.jar doclets.jar javac.jar"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
352 |
<build-bootstrap-tool name="javah"/> |
10 | 353 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
354 |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
355 |
<target name="build-javah" depends="build-javac,build-classes-javah"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
356 |
<build-jar name="javah" includes="${javah.includes}" jarclasspath="javac.jar"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
357 |
<build-tool name="javah"/> |
10 | 358 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
359 |
|
10 | 360 |
<target name="build-classes-javah" depends="build-classes-javadoc"> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
361 |
<build-classes includes="${javah.includes}"/> |
10 | 362 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
363 |
|
10 | 364 |
<!-- (no javadoc for javah) --> |
365 |
||
366 |
<target name="jtreg-javah" depends="build-javah,-def-jtreg"> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
367 |
<jtreg-tool name="javah" tests="${javah.tests}"/> |
10 | 368 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
369 |
|
10 | 370 |
<target name="findbugs-javah" depends="build-javah,-def-findbugs"> |
371 |
<findbugs-tool name="javah"/> |
|
372 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
373 |
|
10 | 374 |
<target name="javah" depends="build-javah,jtreg-javah,findbugs-javah"/> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
375 |
|
10 | 376 |
<!-- javap targets --> |
377 |
||
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
378 |
<target name="build-bootstrap-javap" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
379 |
depends="-def-build-bootstrap-classes,-def-build-bootstrap-jar,-def-build-bootstrap-tool"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
380 |
<build-bootstrap-classes includes="${javap.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
381 |
<build-bootstrap-jar name="javap" includes="${javap.includes}" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
382 |
jarmainclass="sun.tools.javap.Main"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
383 |
<build-bootstrap-tool name="javap"/> |
10 | 384 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
385 |
|
727
cb50c1ae7bab
4075303: Use javap to enquire aboput a specific inner class
jjg
parents:
10
diff
changeset
|
386 |
<target name="build-classes-javap" depends="build-classes-javac"> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
387 |
<build-classes includes="${javap.includes}"/> |
10 | 388 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
389 |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
390 |
<target name="build-javap" depends="build-javac,build-classes-javap"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
391 |
<build-jar name="javap" includes="${javap.includes}" |
2987 | 392 |
jarmainclass="com.sun.tools.javap.Main" |
727
cb50c1ae7bab
4075303: Use javap to enquire aboput a specific inner class
jjg
parents:
10
diff
changeset
|
393 |
jarclasspath="javac.jar"/> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
394 |
<build-tool name="javap"/> |
10 | 395 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
396 |
|
10 | 397 |
<!-- (no javadoc for javap) --> |
398 |
||
399 |
<target name="jtreg-javap" depends="build-javap,-def-jtreg"> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
400 |
<jtreg-tool name="javap" tests="${javap.tests}"/> |
10 | 401 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
402 |
|
10 | 403 |
<target name="findbugs-javap" depends="build-javap,-def-findbugs"> |
404 |
<findbugs-tool name="javap"/> |
|
405 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
406 |
|
10 | 407 |
<target name="javap" depends="build-javap,jtreg-javap,findbugs-javap"/> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
408 |
|
10 | 409 |
<!-- apt targets --> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
410 |
|
10 | 411 |
<target name="build-bootstrap-apt" depends="build-bootstrap-javac"> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
412 |
<build-bootstrap-classes includes="${apt.includes}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
413 |
<build-bootstrap-jar name="apt" includes="${apt.includes}" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
414 |
jarclasspath="javac.jar"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
415 |
<build-bootstrap-tool name="apt"/> |
10 | 416 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
417 |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
418 |
<target name="build-apt" depends="build-javac,build-classes-apt"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
419 |
<build-jar name="apt" includes="${apt.includes}" jarclasspath="javac.jar"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
420 |
<build-tool name="apt"/> |
10 | 421 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
422 |
|
10 | 423 |
<target name="build-classes-apt" depends="build-classes-javac"> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
424 |
<build-classes includes="${apt.includes}"/> |
10 | 425 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
426 |
|
10 | 427 |
<target name="javadoc-apt" depends="build-apt,-def-javadoc-tool"> |
428 |
<javadoc-tool name="apt" includes="${apt.includes}"/> |
|
429 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
430 |
|
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
431 |
|
10 | 432 |
<target name="jtreg-apt" depends="build-apt,-def-jtreg"> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
433 |
<jtreg-tool name="apt" tests="${apt.tests}"/> |
10 | 434 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
435 |
|
10 | 436 |
<target name="findbugs-apt" depends="build-apt,-def-findbugs"> |
437 |
<findbugs-tool name="apt"/> |
|
438 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
439 |
|
10 | 440 |
<target name="apt" depends="build-apt,jtreg-apt,findbugs-apt"/> |
441 |
||
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
442 |
<!-- Create import JDK stubs --> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
443 |
|
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
444 |
<target name="-create-import-jdk-stubs" depends="-def-genstubs" if="import.jdk.src.dir"> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
445 |
<mkdir dir="${build.genstubs.dir}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
446 |
<genstubs |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
447 |
srcdir="${import.jdk.src.dir}" destdir="${build.genstubs.dir}" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
448 |
includes="${import.jdk.stub.files}" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
449 |
fork="true" classpath="${build.toolclasses.dir}:${build.bootstrap.dir}/classes:${ant.home}/lib/ant.jar" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
450 |
/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
451 |
</target> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
452 |
|
10 | 453 |
<!-- Check targets --> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
454 |
|
10 | 455 |
<target name="-check-boot.java.home" depends="-def-check"> |
456 |
<check name="bootstrap java" property="boot.java.home" marker="${java.marker}"/> |
|
457 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
458 |
|
10 | 459 |
<target name="-check-target.java.home" depends="-def-check"> |
460 |
<check name="target java" property="target.java.home" marker="${java.marker}"/> |
|
461 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
462 |
|
10 | 463 |
<target name="-check-cobertura.home" depends="-def-check"> |
464 |
<check name="cobertura" property="cobertura.home" marker="cobertura.jar"/> |
|
465 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
466 |
|
10 | 467 |
<target name="-check-findbugs.home" depends="-def-check"> |
468 |
<check name="findbugs" property="findbugs.home" marker="lib/findbugs.jar"/> |
|
469 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
470 |
|
10 | 471 |
<target name="-check-jtreg.home" depends="-def-check"> |
472 |
<check name="jtreg" property="jtreg.home" marker="lib/jtreg.jar"/> |
|
473 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
474 |
|
5844 | 475 |
<target name="-check-vizant" depends="-def-check"> |
476 |
<check name="vizant" property="vizant.jar"/> |
|
477 |
<check name="dot" property="dot"/> |
|
478 |
</target> |
|
479 |
||
10 | 480 |
<!-- Ant macro and preset defs --> |
481 |
||
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
482 |
<target name="-def-build-tool"> |
10 | 483 |
<macrodef name="build-tool"> |
484 |
<attribute name="name"/> |
|
485 |
<attribute name="bin.dir" default="${dist.bin.dir}"/> |
|
3654 | 486 |
<attribute name="java" default="${launcher.java}"/> |
10 | 487 |
<sequential> |
488 |
<mkdir dir="@{bin.dir}"/> |
|
489 |
<copy file="${src.bin.dir}/launcher.sh-template" tofile="@{bin.dir}/@{name}"> |
|
490 |
<filterset begintoken="#" endtoken="#"> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
491 |
<filter token="PROGRAM" value="@{name}"/> |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
492 |
<filter token="TARGET_JAVA" value="@{java}"/> |
10 | 493 |
</filterset> |
494 |
</copy> |
|
495 |
<chmod file="@{bin.dir}/@{name}" perm="ugo+rx"/> |
|
496 |
</sequential> |
|
497 |
</macrodef> |
|
498 |
</target> |
|
499 |
||
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
500 |
<target name="-def-build-jar"> |
10 | 501 |
<macrodef name="build-jar"> |
502 |
<attribute name="name"/> |
|
503 |
<attribute name="includes"/> |
|
504 |
<attribute name="classes.dir" default="${build.classes.dir}"/> |
|
505 |
<attribute name="lib.dir" default="${dist.lib.dir}"/> |
|
506 |
<attribute name="jarmainclass" default="com.sun.tools.@{name}.Main"/> |
|
507 |
<attribute name="jarclasspath" default=""/> |
|
508 |
<sequential> |
|
509 |
<mkdir dir="@{lib.dir}"/> |
|
510 |
<jar destfile="@{lib.dir}/@{name}.jar" |
|
511 |
basedir="@{classes.dir}" |
|
512 |
includes="@{includes}"> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
513 |
<manifest> |
10 | 514 |
<attribute name="Main-Class" value="@{jarmainclass}"/> |
515 |
<attribute name="Class-Path" value="@{jarclasspath}"/> |
|
516 |
</manifest> |
|
517 |
</jar> |
|
518 |
</sequential> |
|
519 |
</macrodef> |
|
520 |
</target> |
|
521 |
||
522 |
<target name="-def-build-classes" depends="-def-pcompile"> |
|
523 |
<macrodef name="build-classes"> |
|
524 |
<attribute name="includes"/> |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
525 |
<attribute name="excludes" default="${exclude.files} **/package-info.java"/> |
10 | 526 |
<attribute name="classes.dir" default="${build.classes.dir}"/> |
527 |
<attribute name="gensrc.dir" default="${build.gensrc.dir}"/> |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
528 |
<attribute name="javac.bootclasspath" default="${build.bootstrap.dir}/classes"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
529 |
<attribute name="bootclasspath.opt" default="${javac.bootclasspath.opt}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
530 |
<attribute name="classpath" default="${javac.classpath}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
531 |
<attribute name="sourcepath" default="${javac.sourcepath}"/> |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
532 |
<attribute name="java.home" default="${boot.java.home}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
533 |
<attribute name="source" default="${javac.source}"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
534 |
<attribute name="target" default="${javac.target}"/> |
10 | 535 |
<attribute name="release" default="${release}"/> |
536 |
<attribute name="full.version" default="${full.version}"/> |
|
537 |
<sequential> |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
538 |
<echo level="verbose" message="build-classes: excludes=@{excludes}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
539 |
<echo level="verbose" message="build-classes: bootclasspath.opt=@{bootclasspath.opt}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
540 |
<echo level="verbose" message="build-classes: classpath=@{classpath}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
541 |
<echo level="verbose" message="build-classes: sourcepath=@{sourcepath}"/> |
10 | 542 |
<mkdir dir="@{gensrc.dir}"/> |
543 |
<mkdir dir="@{classes.dir}"/> |
|
544 |
<pcompile srcdir="${src.classes.dir}" |
|
545 |
destdir="@{gensrc.dir}" |
|
546 |
includes="@{includes}"/> |
|
547 |
<copy todir="@{gensrc.dir}"> |
|
727
cb50c1ae7bab
4075303: Use javap to enquire aboput a specific inner class
jjg
parents:
10
diff
changeset
|
548 |
<fileset dir="${src.classes.dir}" includes="@{includes}"/> |
10 | 549 |
<globmapper from="*.properties-template" to="*.properties"/> |
550 |
<filterset begintoken="$(" endtoken=")"> |
|
551 |
<filter token="JDK_VERSION" value="${jdk.version}"/> |
|
552 |
<filter token="RELEASE" value="@{release}"/> |
|
553 |
<filter token="FULL_VERSION" value="@{full.version}"/> |
|
554 |
</filterset> |
|
555 |
</copy> |
|
556 |
<pcompile srcdir="@{gensrc.dir}" |
|
557 |
destdir="@{gensrc.dir}" |
|
558 |
includes="**/*.properties"/> |
|
559 |
<javac fork="true" |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
560 |
executable="@{java.home}/bin/javac" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
561 |
srcdir="${src.classes.dir}:@{gensrc.dir}" |
10 | 562 |
destdir="@{classes.dir}" |
563 |
includes="@{includes}" |
|
564 |
excludes="@{excludes}" |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
565 |
sourcepath="@{sourcepath}" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
566 |
classpath="@{classpath}" |
10 | 567 |
includeAntRuntime="no" |
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
568 |
source="@{source}" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
569 |
target="@{target}" |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
570 |
debug="${javac.debug}" |
10 | 571 |
debuglevel="${javac.debuglevel}"> |
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
572 |
<compilerarg value="-implicit:none"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
573 |
<compilerarg value="-Xprefer:source"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
574 |
<compilerarg value="-J-Xbootclasspath/p:@{javac.bootclasspath}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
575 |
<compilerarg line="@{bootclasspath.opt}"/> |
10 | 576 |
<compilerarg line="${javac.no.jdk.warnings}"/> |
577 |
<compilerarg line="${javac.version.opt}"/> |
|
578 |
<compilerarg line="${javac.lint.opts}"/> |
|
579 |
</javac> |
|
4548 | 580 |
<copy todir="@{classes.dir}" includeemptydirs="false"> |
581 |
<fileset dir="${src.classes.dir}" includes="@{includes}" excludes="@{excludes}"> |
|
10 | 582 |
<exclude name="**/*.java"/> |
583 |
<exclude name="**/*.properties"/> |
|
584 |
<exclude name="**/*-template"/> |
|
585 |
<exclude name="**/package.html"/> |
|
586 |
</fileset> |
|
587 |
</copy> |
|
588 |
</sequential> |
|
589 |
</macrodef> |
|
590 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
591 |
|
10 | 592 |
<target name="-def-build-bootstrap-tool" depends="-check-boot.java.home,-def-build-tool"> |
593 |
<presetdef name="build-bootstrap-tool"> |
|
594 |
<build-tool |
|
595 |
bin.dir="${build.bootstrap.dir}/bin" |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
596 |
java="${boot.java}"/> |
10 | 597 |
</presetdef> |
598 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
599 |
|
10 | 600 |
<target name="-def-build-bootstrap-jar" depends="-def-build-jar"> |
601 |
<presetdef name="build-bootstrap-jar"> |
|
602 |
<build-jar |
|
4410
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
603 |
classes.dir="${build.bootstrap.dir}/classes" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
604 |
lib.dir="${build.bootstrap.dir}/lib"/> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
605 |
</presetdef> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
606 |
</target> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
607 |
|
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
608 |
<target name="-def-build-bootstrap-classes" depends="-def-build-classes"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
609 |
<presetdef name="build-bootstrap-classes"> |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
610 |
<build-classes |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
611 |
source="${boot.javac.source}" |
0288a787be7a
6898585: restructure langtools build.xml to facilitate more options for <build-classes> macro
jjg
parents:
3996
diff
changeset
|
612 |
target="${boot.javac.target}" |
10 | 613 |
gensrc.dir="${build.bootstrap.dir}/gensrc" |
614 |
classes.dir="${build.bootstrap.dir}/classes" |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
615 |
javac.bootclasspath="" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
616 |
bootclasspath.opt="-Xbootclasspath/p:${build.bootstrap.dir}/classes" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
617 |
sourcepath="" |
10 | 618 |
release="${bootstrap.release}" |
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
619 |
full.version="${bootstrap.full.version}" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
620 |
excludes="${require.import.jdk.files} **/package-info.java"/> |
10 | 621 |
</presetdef> |
622 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
623 |
|
10 | 624 |
<target name="-def-pcompile"> |
625 |
<mkdir dir="${build.toolclasses.dir}"/> |
|
1871
9bb6518238ff
6795030: Files in langtools build can be compiled ignoring java.home settings
jjg
parents:
735
diff
changeset
|
626 |
<javac fork="true" |
3658
8ee720a52b7d
6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents:
3655
diff
changeset
|
627 |
source="${boot.javac.source}" |
8ee720a52b7d
6873059: Explicitly use -source 6 -target 6 when compiling with the boot jdk
andrew
parents:
3655
diff
changeset
|
628 |
target="${boot.javac.target}" |
1871
9bb6518238ff
6795030: Files in langtools build can be compiled ignoring java.home settings
jjg
parents:
735
diff
changeset
|
629 |
executable="${boot.java.home}/bin/javac" |
9bb6518238ff
6795030: Files in langtools build can be compiled ignoring java.home settings
jjg
parents:
735
diff
changeset
|
630 |
srcdir="${make.tools.dir}/CompileProperties" |
10 | 631 |
destdir="${build.toolclasses.dir}/" |
632 |
classpath="${ant.home}/lib/ant.jar"/> |
|
633 |
<taskdef name="pcompile" |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
634 |
classname="CompilePropertiesTask" |
10 | 635 |
classpath="${build.toolclasses.dir}/"/> |
636 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
637 |
|
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
638 |
<target name="-def-genstubs" depends="build-bootstrap-javac"> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
639 |
<mkdir dir="${build.toolclasses.dir}"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
640 |
<javac fork="true" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
641 |
source="${boot.javac.source}" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
642 |
target="${boot.javac.target}" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
643 |
executable="${boot.java.home}/bin/javac" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
644 |
srcdir="${make.tools.dir}/GenStubs" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
645 |
destdir="${build.toolclasses.dir}/" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
646 |
classpath="${build.bootstrap.dir}/classes:${ant.home}/lib/ant.jar"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
647 |
<taskdef name="genstubs" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
648 |
classname="GenStubs$$Ant" |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
649 |
classpath="${build.toolclasses.dir}/"/> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
650 |
</target> |
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
651 |
|
10 | 652 |
<target name="-def-javadoc-tool" depends="-check-target.java.home"> |
653 |
<macrodef name="javadoc-tool"> |
|
654 |
<attribute name="name"/> |
|
655 |
<attribute name="includes"/> |
|
656 |
<attribute name="options" default=""/> |
|
657 |
<attribute name="source" default="1.5"/> <!-- FIXME --> |
|
658 |
<sequential> |
|
659 |
<property name="javadoc.options" value=""/> <!-- default, can be overridden per user or per project --> |
|
660 |
<!-- Note: even with this default value, includes |
|
661 |
from src.classes.dir get javadoc'd; see packageset below --> |
|
662 |
<property name="javadoc.packagenames" value="none"/> <!-- default, can be overridden per user or per project --> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
663 |
<javadoc |
10 | 664 |
executable="${target.java.home}/bin/javadoc" |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
665 |
destdir="${build.javadoc.dir}/@{name}" |
10 | 666 |
source="@{source}" |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
667 |
windowtitle="UNOFFICIAL" |
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
668 |
failonerror="true" |
10 | 669 |
use="true" |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
670 |
author="false" |
10 | 671 |
version="false" |
672 |
packagenames="${javadoc.packagenames}" > |
|
673 |
<header><![CDATA[<strong>Unofficial Javadoc</strong> generated from developer sources for preview purposes only]]></header> |
|
674 |
<arg line="@{options}"/> |
|
675 |
<bootclasspath> |
|
676 |
<path location="${build.classes.dir}"/> |
|
677 |
<path location="${target.java.home}/jre/lib/rt.jar"/> |
|
678 |
</bootclasspath> |
|
679 |
<sourcepath> |
|
680 |
<pathelement location="${src.classes.dir}"/> |
|
681 |
</sourcepath> |
|
682 |
<!-- XXX just <fileset> (restricted further to **/*.java) and no <packageset> --> |
|
683 |
<!-- means that {@link some.package} will not work, which is no good. --> |
|
684 |
<!-- (It correctly skips excluded single classes, but not if packageset is also included, --> |
|
685 |
<!-- which also causes duplicates in the class index for included files.) --> |
|
686 |
<packageset dir="${src.classes.dir}" includes="@{includes}"> |
|
687 |
<or> |
|
688 |
<filename name="java/"/> |
|
689 |
<filename name="javax/"/> |
|
690 |
<filename name="com/sun/javadoc/"/> |
|
691 |
<filename name="com/sun/mirror/"/> |
|
692 |
<filename name="com/sun/source/"/> |
|
693 |
</or> |
|
694 |
</packageset> |
|
695 |
</javadoc> |
|
696 |
</sequential> |
|
697 |
</macrodef> |
|
698 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
699 |
|
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
700 |
<target name="-def-jtreg" unless="jtreg.defined" depends="-check-jtreg.home,-check-target.java.home"> |
10 | 701 |
<taskdef name="jtreg" classname="com.sun.javatest.regtest.Main$$Ant"> |
702 |
<classpath> |
|
703 |
<pathelement location="${jtreg.home}/lib/jtreg.jar"/> |
|
704 |
<pathelement location="${jtreg.home}/lib/javatest.jar"/> |
|
705 |
</classpath> |
|
706 |
</taskdef> |
|
707 |
<macrodef name="jtreg-tool"> |
|
708 |
<attribute name="name"/> |
|
709 |
<attribute name="tests"/> |
|
710 |
<attribute name="jdk" default="${target.java.home}"/> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
711 |
<attribute name="samevm" default="true"/> |
10 | 712 |
<attribute name="verbose" default="summary"/> |
713 |
<attribute name="options" default=""/> |
|
714 |
<attribute name="keywords" default="-keywords:!ignore"/> |
|
715 |
<attribute name="jpda.jvmargs" default=""/> |
|
716 |
<sequential> |
|
717 |
<property name="coverage.options" value=""/> <!-- default --> |
|
718 |
<property name="coverage.classpath" value=""/> <!-- default --> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
719 |
<jtreg |
10 | 720 |
dir="${test.dir}" |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
721 |
workDir="${build.jtreg.dir}/@{name}/work" |
10 | 722 |
reportDir="${build.jtreg.dir}/@{name}/report" |
723 |
jdk="@{jdk}" |
|
724 |
samevm="@{samevm}" verbose="@{verbose}" |
|
725 |
failonerror="false" resultproperty="jtreg.@{name}.result" |
|
726 |
javacoptions="-g" |
|
727 |
vmoptions="${coverage.options} -Xbootclasspath/p:${coverage.classpath}:${build.classes.dir} @{jpda.jvmargs}"> |
|
728 |
<arg line="@{keywords}"/> |
|
729 |
<arg line="@{options}"/> |
|
730 |
<arg line="@{tests}"/> |
|
731 |
</jtreg> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
732 |
<!-- the next two properties are for convenience, when only |
10 | 733 |
a single instance of jtreg will be invoked. --> |
734 |
<condition property="jtreg.passed"> |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
1872
diff
changeset
|
735 |
<equals arg1="${jtreg.@{name}.result}" arg2="0"/> |
10 | 736 |
</condition> |
737 |
<property name="jtreg.report" value="${build.jtreg.dir}/@{name}/report"/> |
|
738 |
</sequential> |
|
739 |
</macrodef> |
|
740 |
<property name="jtreg.defined" value="true"/> |
|
741 |
</target> |
|
742 |
||
743 |
<target name="-def-cobertura" depends="-check-cobertura.home"> |
|
744 |
<path id="cobertura.classpath"> |
|
745 |
<fileset dir="${cobertura.home}"> |
|
746 |
<include name="cobertura.jar"/> |
|
747 |
<include name="lib/**/*.jar"/> |
|
748 |
</fileset> |
|
749 |
</path> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
750 |
<taskdef classpathref="cobertura.classpath" resource="tasks.properties"/> |
10 | 751 |
</target> |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
752 |
|
10 | 753 |
<target name="-def-findbugs" unless="findbugs.defined" depends="-check-findbugs.home"> |
754 |
<taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"> |
|
755 |
<classpath> |
|
756 |
<pathelement location="${findbugs.home}/lib/findbugs.jar"/> |
|
757 |
</classpath> |
|
758 |
</taskdef> |
|
759 |
<macrodef name="findbugs-tool"> |
|
760 |
<attribute name="name"/> |
|
761 |
<attribute name="output" default="emacs"/> |
|
762 |
<attribute name="outputFile" default=""/> |
|
763 |
<attribute name="reportLevel" default="high"/> |
|
764 |
<sequential> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
765 |
<findbugs |
10 | 766 |
home="${findbugs.home}" |
767 |
output="@{output}" |
|
768 |
outputFile="@{outputFile}" |
|
769 |
reportLevel="@{reportLevel}" |
|
770 |
failOnError="false" |
|
771 |
errorProperty="findbugs.@{name}.errors" |
|
772 |
warningsProperty="findbugs.@{name}.warnings" |
|
773 |
jvmargs="-Xmx512M" > |
|
774 |
<class location="${dist.dir}/lib/@{name}.jar"/> |
|
775 |
<auxClasspath> |
|
776 |
<pathelement location="${build.classes.dir}"/> |
|
777 |
</auxClasspath> |
|
778 |
<sourcePath> |
|
779 |
<pathelement location="${src.classes.dir}"/> |
|
780 |
</sourcePath> |
|
781 |
</findbugs> |
|
782 |
</sequential> |
|
783 |
</macrodef> |
|
784 |
<property name="findbugs.defined" value="true"/> |
|
785 |
</target> |
|
5844 | 786 |
|
787 |
<target name="-def-vizant" unless="vizant.defined" depends="-check-vizant"> |
|
788 |
<taskdef name="vizant" classname="net.sourceforge.vizant.Vizant" classpath="${vizant.jar}"/> |
|
789 |
<property name="vizant.defined" value="true"/> |
|
790 |
</target> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
791 |
|
10 | 792 |
<target name="-def-check"> |
793 |
<macrodef name="check"> |
|
794 |
<attribute name="name"/> |
|
795 |
<attribute name="property"/> |
|
5844 | 796 |
<attribute name="marker" default=""/> |
10 | 797 |
<sequential> |
798 |
<fail message="Cannot locate @{name}: please set @{property} to its location"> |
|
799 |
<condition> |
|
800 |
<not> |
|
801 |
<isset property="@{property}"/> |
|
802 |
</not> |
|
803 |
</condition> |
|
804 |
</fail> |
|
805 |
<fail message="@{name} is not installed in ${@{property}}"> |
|
806 |
<condition> |
|
5844 | 807 |
<and> |
808 |
<not> |
|
809 |
<equals arg1="@{marker}" arg2=""/> |
|
810 |
</not> |
|
811 |
<not> |
|
812 |
<available file="${@{property}}/@{marker}"/> |
|
813 |
</not> |
|
814 |
</and> |
|
10 | 815 |
</condition> |
816 |
</fail> |
|
817 |
</sequential> |
|
818 |
</macrodef> |
|
819 |
</target> |
|
820 |
||
821 |
<!-- standard JDK target --> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
822 |
<target name="sanity" |
4415
7d4f73717fba
6902337: fix langtools build to allow forward refs into jdk/ repo
jjg
parents:
4414
diff
changeset
|
823 |
description="display settings of configuration values"> |
10 | 824 |
<echo level="info">ant.home = ${ant.home}</echo> |
825 |
<echo level="info">boot.java.home = ${boot.java.home}</echo> |
|
826 |
<echo level="info">target.java.home = ${target.java.home}</echo> |
|
827 |
<echo level="info">jtreg.home = ${jtreg.home}</echo> |
|
828 |
<echo level="info">findbugs.home = ${findbugs.home}</echo> |
|
829 |
</target> |
|
830 |
||
831 |
<!-- useful debugging targets --> |
|
832 |
<target name="diagnostics"> |
|
833 |
<diagnostics/> |
|
834 |
</target> |
|
835 |
||
836 |
<target name="post-sanity" depends="-def-jtreg,sanity,build" |
|
837 |
description="perform basic validation after a standard build"> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
838 |
<jtreg |
10 | 839 |
dir="make/test" |
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
840 |
workDir="${build.jtreg.dir}/post-sanity/work" |
10 | 841 |
reportDir="${build.jtreg.dir}/post-sanity/report" |
842 |
jdk="${target.java.home}" |
|
843 |
verbose="summary" |
|
844 |
failonerror="false" resultproperty="jtreg.post-sanity.result"> |
|
845 |
</jtreg> |
|
3655
f9ee66e780f4
6758471: should be able to set jtreg options in langtools build
jjg
parents:
3654
diff
changeset
|
846 |
|
10 | 847 |
</target> |
848 |
</project> |
|
849 |