author | jlahoda |
Thu, 24 Apr 2014 13:32:21 +0200 | |
changeset 24074 | 7a609dde1d05 |
parent 20266 | d5e2fc28504e |
child 25874 | 83c19f00452c |
permissions | -rw-r--r-- |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
2 |
<!-- |
24074
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
3 |
Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
4 |
|
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
5 |
Redistribution and use in source and binary forms, with or without |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
6 |
modification, are permitted provided that the following conditions |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
7 |
are met: |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
8 |
|
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
9 |
- Redistributions of source code must retain the above copyright |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
10 |
notice, this list of conditions and the following disclaimer. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
11 |
|
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
12 |
- Redistributions in binary form must reproduce the above copyright |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
13 |
notice, this list of conditions and the following disclaimer in the |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
14 |
documentation and/or other materials provided with the distribution. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
15 |
|
5520 | 16 |
- Neither the name of Oracle nor the names of its |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
17 |
contributors may be used to endorse or promote products derived |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
18 |
from this software without specific prior written permission. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
19 |
|
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
20 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
21 |
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
22 |
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
23 |
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
24 |
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
25 |
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
26 |
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
27 |
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
28 |
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
29 |
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
30 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
31 |
--> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
32 |
|
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
33 |
<project name="langtools-netbeans" default="build" basedir="../../.."> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
34 |
|
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
35 |
<property name="langtools.properties" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
36 |
location="make/netbeans/langtools/nbproject/private/langtools.properties"/> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
37 |
|
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
38 |
<!-- |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
39 |
Instead of importing the main build file, we could call it when needed. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
40 |
That would reduce the list of Ant targets that get displayed for this |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
41 |
file, but it also complicates the interface between the project build |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
42 |
file and the main build file. For example, some imported targets |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
43 |
would have to be reclared, properties would have to be restructured, |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
44 |
and it would be harder to run results (e.g. in properties) from nested |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
45 |
targets. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
46 |
--> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
47 |
<import file="../../build.xml"/> |
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
48 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
49 |
<!-- Build project. (action: build; F11) |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
50 |
If langtools.tool.name is set, then just build that tool; otherwise |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
51 |
build all tools. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
52 |
--> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
53 |
|
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
54 |
<target name="build" depends="-get-tool-if-set,-build-tool,-build-all" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
55 |
description="Build one or all langtools tools" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
56 |
/> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
57 |
|
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
58 |
<condition property="use_bootstrap" value="bootstrap-" else=""> |
19935
8f2c828192c3
8024414: javac, should facilitate the use of the bootstrap compiler for debugging
mcimadamore
parents:
12085
diff
changeset
|
59 |
<isset property="langtools.tool.bootstrap"/> |
8f2c828192c3
8024414: javac, should facilitate the use of the bootstrap compiler for debugging
mcimadamore
parents:
12085
diff
changeset
|
60 |
</condition> |
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
61 |
<condition property="with_bootclasspath" value="${build.bootstrap.dir}/classes" else="${build.classes.dir}"> |
19935
8f2c828192c3
8024414: javac, should facilitate the use of the bootstrap compiler for debugging
mcimadamore
parents:
12085
diff
changeset
|
62 |
<isset property="langtools.tool.bootstrap"/> |
8f2c828192c3
8024414: javac, should facilitate the use of the bootstrap compiler for debugging
mcimadamore
parents:
12085
diff
changeset
|
63 |
</condition> |
8f2c828192c3
8024414: javac, should facilitate the use of the bootstrap compiler for debugging
mcimadamore
parents:
12085
diff
changeset
|
64 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
65 |
<target name="-build-tool" if="langtools.tool.name"> |
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
66 |
<echo level="info" message="Building ${use_bootstrap}${langtools.tool.name}"/> |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
67 |
<echo level="verbose" message="(Unset langtools.tool.name to build all tools)"/> |
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
68 |
<antcall target="build-${use_bootstrap}${langtools.tool.name}"/> |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
69 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
70 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
71 |
<target name="-build-all" unless="langtools.tool.name"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
72 |
<echo level="info" message="Building all tools"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
73 |
<echo level="verbose" message="(Set langtools.tool.name to build a single tool)"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
74 |
<antcall target="build-all-tools"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
75 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
76 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
77 |
<!-- Compile a single file. (action: compile.single; F9) --> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
78 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
79 |
<target name="compile-single" depends="build-bootstrap-javac"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
80 |
<fail unless="includes">Must set property 'includes'</fail> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
81 |
<javac fork="true" executable="${build.bootstrap.dir}/bin/javac" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
82 |
srcdir="${src.classes.dir}" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
83 |
destdir="${build.classes.dir}" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
84 |
includes="${includes}" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
85 |
sourcepath="" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
86 |
includeAntRuntime="no" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
87 |
target="${javac.target}" |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
88 |
debug="${javac.debug}" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
89 |
debuglevel="${javac.debuglevel}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
90 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
91 |
|
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
92 |
<!-- Run tool. (action: run; F6) |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
93 |
Use langtools.tool.name and langtools.tool.args properties if set; otherwise prompt |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
94 |
the user. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
95 |
--> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
96 |
|
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
97 |
<target name="run" depends="-check-target.java.home,build,-def-run,-get-tool-and-args" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
98 |
description="run tool"> |
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
99 |
<echo level="info" message="${with_bootclasspath}"/> |
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
100 |
<echo level="info" message="Run ${use_bootstrap}${langtools.tool.name} with args ${langtools.tool.args}"/> |
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
101 |
<run bcp="${with_bootclasspath}" mainclass="com.sun.tools.${langtools.tool.name}.Main" args="${langtools.tool.args}"/> |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
102 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
103 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
104 |
<!-- Run a selected class. (action: run.single; shift-F6) --> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
105 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
106 |
<target name="run-single" depends="-check-target.java.home,-def-run"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
107 |
<fail unless="run.classname">Must set property 'run.classname' </fail> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
108 |
<echo level="info" message="run ${run.classname}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
109 |
<run mainclass="${run.classname}" args=""/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
110 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
111 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
112 |
<!-- Test project, and display results if tests failed. (action: test; Alt-F6) |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
113 |
If langtools.tool.name is set, then just test that tool; otherwise |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
114 |
test all tools. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
115 |
--> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
116 |
|
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
117 |
<target name="jtreg" depends="-get-tool-if-set,-jtreg-tool,-jtreg-all" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
118 |
description="Test one or all langtools tools" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
119 |
/> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
120 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
121 |
<target name="-jtreg-tool" if="langtools.tool.name"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
122 |
<echo level="info" message="Testing ${langtools.tool.name}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
123 |
<echo level="verbose" message="(Unset langtools.tool.name to test all tools)"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
124 |
<antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
125 |
<target name="jtreg-${langtools.tool.name}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
126 |
<target name="-show-jtreg"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
127 |
</antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
128 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
129 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
130 |
<target name="-jtreg-all" unless="langtools.tool.name"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
131 |
<echo level="info" message="Testing all tools"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
132 |
<echo level="verbose" message="(Set langtools.tool.name to test a single tool)"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
133 |
<antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
134 |
<target name="langtools.jtreg"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
135 |
<target name="-show-jtreg"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
136 |
</antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
137 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
138 |
|
24074
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
139 |
<target name="-show-jtreg-single-detect" if="netbeans.home" unless="jtreg.passed"> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
140 |
<dirname property="netbeans.jtreg.tests.dir.temp" file="${jtreg.report}/../work/${jtreg.tests}"/> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
141 |
<basename property="netbeans.jtreg.tests.basename.temp" file="${jtreg.tests}" suffix=".java"/> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
142 |
<property name="netbeans.jtreg.single.jtr" value="${netbeans.jtreg.tests.dir.temp}/${netbeans.jtreg.tests.basename.temp}.jtr"/> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
143 |
<condition property="netbeans.jtreg.single"> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
144 |
<available file="${netbeans.jtreg.single.jtr}" /> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
145 |
</condition> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
146 |
<condition property="netbeans.jtreg.multiple"> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
147 |
<not> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
148 |
<available file="${netbeans.jtreg.single.jtr}" /> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
149 |
</not> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
150 |
</condition> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
151 |
</target> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
152 |
|
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
153 |
<target name="-show-jtreg-single" if="netbeans.jtreg.single" depends="-show-jtreg-single-detect"> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
154 |
<nbbrowse file="${netbeans.jtreg.single.jtr}"/> |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
155 |
<fail>Some tests failed; see report for details.</fail> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
156 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
157 |
|
24074
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
158 |
<target name="-show-jtreg-multiple" if="netbeans.jtreg.multiple" depends="-show-jtreg-single-detect"> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
159 |
<nbbrowse url="file://${jtreg.report}/html/report.html#Results"/> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
160 |
<fail>Some tests failed; see report for details.</fail> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
161 |
</target> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
162 |
|
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
163 |
<target name="-show-jtreg" depends="-show-jtreg-single-detect,-show-jtreg-single,-show-jtreg-multiple" /> |
7a609dde1d05
8041695: Update the NetBeans build script and metadata
jlahoda
parents:
20266
diff
changeset
|
164 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
165 |
<!-- Debug tool in NetBeans. --> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
166 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
167 |
<target name="debug" depends="-check-target.java.home,-def-run,-def-start-debugger,-get-tool-and-args,build" if="netbeans.home"> |
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
168 |
<echo level="info" message="Debug ${use_bootstrap}${langtools.tool.name} with args ${langtools.tool.args}"/> |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
169 |
<start-debugger/> |
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
170 |
<run bcp="${with_bootclasspath}" mainclass="com.sun.tools.${langtools.tool.name}.Main" args="${langtools.tool.args}" jpda.jvmargs="${jpda.jvmargs}"/> |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
171 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
172 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
173 |
<!-- Debug a selected class . --> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
174 |
<target name="debug-single" depends="-check-target.java.home,-def-start-debugger,-def-run"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
175 |
<fail unless="debug.classname">Must set property 'debug.classname'</fail> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
176 |
<start-debugger/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
177 |
<run mainclass="${debug.classname}" default.args="" jpda.jvmargs="${jpda.jvmargs}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
178 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
179 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
180 |
<!-- Debug a jtreg test. --> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
181 |
<target name="debug-jtreg" depends="-check-target.java.home,-def-start-debugger,-def-jtreg"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
182 |
<fail unless="jtreg.tests">Must set property 'jtreg.tests'</fail> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
183 |
<start-debugger/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
184 |
<jtreg-tool name="debug" samevm="false" tests="${jtreg.tests}" jpda.jvmargs="${jpda.jvmargs}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
185 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
186 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
187 |
<!-- Update a class being debugged. --> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
188 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
189 |
<target name="debug-fix" if="langtools.tool.name"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
190 |
<fail unless="class">Must set property 'class' |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
191 |
</fail> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
192 |
<antcall target="compile-single"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
193 |
<param name="includes" value="${class}.java"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
194 |
</antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
195 |
<nbjpdareload> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
196 |
<fileset dir="${build.classes.dir}"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
197 |
<include name="${class}.class"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
198 |
</fileset> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
199 |
</nbjpdareload> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
200 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
201 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
202 |
<!-- Generate javadoc for one or all tools. (action: javadoc; Alt-F6) |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
203 |
If langtools.tool.name is set, then just test that tool; otherwise |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
204 |
test all tools. |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
205 |
--> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
206 |
|
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
207 |
<target name="javadoc" depends="-javadoc-tool,-javadoc-all" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
208 |
description="Generate javadoc for one or all langtools tools" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
209 |
/> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
210 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
211 |
<target name="-javadoc-tool" if="langtools.tool.name"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
212 |
<echo level="info" message="Generate javadoc for ${langtools.tool.name}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
213 |
<echo level="verbose" message="(Unset langtools.tool.name to generate javadoc for all tools)"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
214 |
<antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
215 |
<target name="javadoc-${langtools.tool.name}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
216 |
<target name="-show-javadoc"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
217 |
</antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
218 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
219 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
220 |
<target name="-javadoc-all" unless="langtools.tool.name"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
221 |
<echo level="info" message="Generate javadoc for all tools"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
222 |
<echo level="verbose" message="(Set langtools.tool.name to generate javadoc for a single tool)"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
223 |
<antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
224 |
<target name="langtools.javadoc"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
225 |
<target name="-show-javadoc"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
226 |
</antcall> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
227 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
228 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
229 |
<target name="-show-javadoc" if="netbeans.home"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
230 |
<!-- what if doing javadoc for all? --> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
231 |
<nbbrowse file="${build.javadoc.dir}/${langtools.tool.name}/index.html"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
232 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
233 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
234 |
<!-- Prompt for values. --> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
235 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
236 |
<target name="-get-tool-if-set" depends="-def-select-tool"> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
237 |
<select-tool |
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
238 |
toolproperty="langtools.tool.name" |
19935
8f2c828192c3
8024414: javac, should facilitate the use of the bootstrap compiler for debugging
mcimadamore
parents:
12085
diff
changeset
|
239 |
bootstrapproperty="langtools.tool.bootstrap" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
240 |
propertyfile="${langtools.properties}" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
241 |
askIfUnset="false" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
242 |
/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
243 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
244 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
245 |
<target name="-get-tool-and-args" depends="-def-select-tool"> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
246 |
<select-tool |
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
247 |
toolproperty="langtools.tool.name" |
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
248 |
argsproperty="langtools.tool.args" |
19935
8f2c828192c3
8024414: javac, should facilitate the use of the bootstrap compiler for debugging
mcimadamore
parents:
12085
diff
changeset
|
249 |
bootstrapproperty="langtools.tool.bootstrap" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
250 |
propertyfile="${langtools.properties}" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
251 |
askIfUnset="true" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
252 |
/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
253 |
</target> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
254 |
|
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
255 |
<!-- Macro to run a tool or selected class - used by run* and debug* tasks --> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
256 |
<target name="-def-run"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
257 |
<macrodef name="run"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
258 |
<attribute name="mainclass"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
259 |
<attribute name="args" default=""/> |
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
260 |
<attribute name="bcp" default="${with_bootclasspath}"/> |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
261 |
<attribute name="jpda.jvmargs" default=""/> |
19935
8f2c828192c3
8024414: javac, should facilitate the use of the bootstrap compiler for debugging
mcimadamore
parents:
12085
diff
changeset
|
262 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
263 |
<sequential> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
264 |
<java fork="true" jvm="${target.java}" classname="@{mainclass}"> |
20266
d5e2fc28504e
8025139: javac patch for using bootstrap compiler for debugging is not working properly
vromero
parents:
19935
diff
changeset
|
265 |
<jvmarg line="-Xbootclasspath/p:@{bcp}"/> |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
266 |
<jvmarg line="@{jpda.jvmargs}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
267 |
<arg line="@{args}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
268 |
</java> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
269 |
</sequential> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
270 |
</macrodef> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
271 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
272 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
273 |
<!-- Macro to start the debugger and set a property containg the args needed by the run task --> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
274 |
<target name="-def-start-debugger" if="netbeans.home"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
275 |
<macrodef name="start-debugger"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
276 |
<attribute name="jpda.jvmargs.property" default="jpda.jvmargs"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
277 |
<sequential> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
278 |
<nbjpdastart name="${ant.project.name}" addressproperty="jpda.address" transport="dt_socket"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
279 |
<bootclasspath> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
280 |
<pathelement location="${build.classes.dir}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
281 |
<pathelement location="${target.java.home}/jre/lib/rt.jar"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
282 |
</bootclasspath> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
283 |
<sourcepath> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
284 |
<pathelement location="${src.classes.dir}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
285 |
</sourcepath> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
286 |
</nbjpdastart> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
287 |
<property |
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
288 |
name="@{jpda.jvmargs.property}" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
289 |
value="-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address}" |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
290 |
/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
291 |
</sequential> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
292 |
</macrodef> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
293 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
294 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
295 |
<target name="-def-select-tool"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
296 |
<mkdir dir="${build.toolclasses.dir}"/> |
12085
ce2780cb121f
7150579: Moved ant code into a separate package, anttasks.
ohrstrom
parents:
9087
diff
changeset
|
297 |
<javac srcdir="${make.tools.dir}" |
ce2780cb121f
7150579: Moved ant code into a separate package, anttasks.
ohrstrom
parents:
9087
diff
changeset
|
298 |
includes="anttasks/SelectTool*" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
299 |
destdir="${build.toolclasses.dir}/" |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
300 |
classpath="${ant.core.lib}" |
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
301 |
includeantruntime="false" |
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
302 |
debug="${javac.debug}" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
303 |
debuglevel="${javac.debuglevel}"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
304 |
<compilerarg line="-Xlint"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
305 |
</javac> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
306 |
<taskdef name="select-tool" |
12085
ce2780cb121f
7150579: Moved ant code into a separate package, anttasks.
ohrstrom
parents:
9087
diff
changeset
|
307 |
classname="anttasks.SelectToolTask" |
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
308 |
classpath="${build.toolclasses.dir}/"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
309 |
</target> |
6713
b80a071c1e5d
6986772: langtools netbeans build should use ${ant.core.lib} instead of ${ant.home}/lib/ant.jar
jjg
parents:
5520
diff
changeset
|
310 |
|
1873
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
311 |
<target name="select-tool" depends="-def-select-tool"> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
312 |
<select-tool propertyfile="${langtools.properties}"/> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
313 |
</target> |
658385834998
6795365: NetBeans projects in langtools repository are not NB6.5-friendly
jjg
parents:
diff
changeset
|
314 |
</project> |