franta-hg@13
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
franta-hg@13
|
2 |
<!--
|
franta-hg@13
|
3 |
*** GENERATED FROM project.xml - DO NOT EDIT ***
|
franta-hg@13
|
4 |
*** EDIT ../build.xml INSTEAD ***
|
franta-hg@13
|
5 |
|
franta-hg@13
|
6 |
For the purpose of easier reading the script
|
franta-hg@13
|
7 |
is divided into following sections:
|
franta-hg@13
|
8 |
|
franta-hg@13
|
9 |
- initialization
|
franta-hg@13
|
10 |
- compilation
|
franta-hg@13
|
11 |
- jar
|
franta-hg@13
|
12 |
- execution
|
franta-hg@13
|
13 |
- debugging
|
franta-hg@13
|
14 |
- javadoc
|
franta-hg@13
|
15 |
- test compilation
|
franta-hg@13
|
16 |
- test execution
|
franta-hg@13
|
17 |
- test debugging
|
franta-hg@13
|
18 |
- applet
|
franta-hg@13
|
19 |
- cleanup
|
franta-hg@13
|
20 |
|
franta-hg@13
|
21 |
-->
|
franta-hg@156
|
22 |
<project xmlns:if="ant:if" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" xmlns:unless="ant:unless" basedir=".." default="default" name="dictionary-generator-impl">
|
franta-hg@13
|
23 |
<fail message="Please build using Ant 1.8.0 or higher.">
|
franta-hg@13
|
24 |
<condition>
|
franta-hg@13
|
25 |
<not>
|
franta-hg@13
|
26 |
<antversion atleast="1.8.0"/>
|
franta-hg@13
|
27 |
</not>
|
franta-hg@13
|
28 |
</condition>
|
franta-hg@13
|
29 |
</fail>
|
franta-hg@13
|
30 |
<target depends="test,jar,javadoc" description="Build and test whole project." name="default"/>
|
franta-hg@13
|
31 |
<!--
|
franta-hg@13
|
32 |
======================
|
franta-hg@13
|
33 |
INITIALIZATION SECTION
|
franta-hg@13
|
34 |
======================
|
franta-hg@13
|
35 |
-->
|
franta-hg@13
|
36 |
<target name="-pre-init">
|
franta-hg@13
|
37 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
38 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
39 |
</target>
|
franta-hg@13
|
40 |
<target depends="-pre-init" name="-init-private">
|
franta-hg@13
|
41 |
<property file="nbproject/private/config.properties"/>
|
franta-hg@13
|
42 |
<property file="nbproject/private/configs/${config}.properties"/>
|
franta-hg@13
|
43 |
<property file="nbproject/private/private.properties"/>
|
franta-hg@13
|
44 |
</target>
|
franta-hg@13
|
45 |
<target depends="-pre-init,-init-private" name="-init-user">
|
franta-hg@13
|
46 |
<property file="${user.properties.file}"/>
|
franta-hg@13
|
47 |
<!-- The two properties below are usually overridden -->
|
franta-hg@13
|
48 |
<!-- by the active platform. Just a fallback. -->
|
franta-hg@156
|
49 |
<property name="default.javac.source" value="1.8"/>
|
franta-hg@156
|
50 |
<property name="default.javac.target" value="1.8"/>
|
franta-hg@13
|
51 |
</target>
|
franta-hg@13
|
52 |
<target depends="-pre-init,-init-private,-init-user" name="-init-project">
|
franta-hg@13
|
53 |
<property file="nbproject/configs/${config}.properties"/>
|
franta-hg@13
|
54 |
<property file="nbproject/project.properties"/>
|
franta-hg@13
|
55 |
</target>
|
franta-hg@156
|
56 |
<target name="-init-modules-supported">
|
franta-hg@156
|
57 |
<condition property="modules.supported.internal" value="true">
|
franta-hg@156
|
58 |
<not>
|
franta-hg@156
|
59 |
<matches pattern="1\.[0-8](\..*)?" string="${javac.source}"/>
|
franta-hg@156
|
60 |
</not>
|
franta-hg@156
|
61 |
</condition>
|
franta-hg@156
|
62 |
</target>
|
franta-hg@156
|
63 |
<target depends="-init-modules-supported" if="modules.supported.internal" name="-init-macrodef-modulename">
|
franta-hg@156
|
64 |
<macrodef name="modulename" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@156
|
65 |
<attribute name="property"/>
|
franta-hg@156
|
66 |
<attribute name="sourcepath"/>
|
franta-hg@156
|
67 |
<sequential>
|
franta-hg@156
|
68 |
<loadresource property="@{property}" quiet="true">
|
franta-hg@156
|
69 |
<javaresource classpath="@{sourcepath}" name="module-info.java" parentFirst="false"/>
|
franta-hg@156
|
70 |
<filterchain>
|
franta-hg@156
|
71 |
<stripjavacomments/>
|
franta-hg@156
|
72 |
<linecontainsregexp>
|
franta-hg@156
|
73 |
<regexp pattern="module .* \{"/>
|
franta-hg@156
|
74 |
</linecontainsregexp>
|
franta-hg@156
|
75 |
<tokenfilter>
|
franta-hg@156
|
76 |
<linetokenizer/>
|
franta-hg@156
|
77 |
<replaceregex flags="s" pattern="(\s*module\s+)(\S*)(\s*\{.*)" replace="\2"/>
|
franta-hg@156
|
78 |
</tokenfilter>
|
franta-hg@156
|
79 |
<striplinebreaks/>
|
franta-hg@156
|
80 |
</filterchain>
|
franta-hg@156
|
81 |
</loadresource>
|
franta-hg@156
|
82 |
</sequential>
|
franta-hg@156
|
83 |
</macrodef>
|
franta-hg@156
|
84 |
</target>
|
franta-hg@156
|
85 |
<target depends="-init-modules-supported,-init-macrodef-modulename" if="modules.supported.internal" name="-init-source-module-properties">
|
franta-hg@156
|
86 |
<fail message="Java 9 support requires Ant 1.10.0 or higher.">
|
franta-hg@156
|
87 |
<condition>
|
franta-hg@156
|
88 |
<not>
|
franta-hg@156
|
89 |
<antversion atleast="1.10.0"/>
|
franta-hg@156
|
90 |
</not>
|
franta-hg@156
|
91 |
</condition>
|
franta-hg@156
|
92 |
</fail>
|
franta-hg@156
|
93 |
<j2seproject3:modulename property="module.name" sourcepath="${src.dir}"/>
|
franta-hg@156
|
94 |
<condition property="named.module.internal">
|
franta-hg@156
|
95 |
<and>
|
franta-hg@156
|
96 |
<isset property="module.name"/>
|
franta-hg@156
|
97 |
<length length="0" string="${module.name}" when="greater"/>
|
franta-hg@156
|
98 |
</and>
|
franta-hg@156
|
99 |
</condition>
|
franta-hg@156
|
100 |
<condition property="unnamed.module.internal">
|
franta-hg@156
|
101 |
<not>
|
franta-hg@156
|
102 |
<isset property="named.module.internal"/>
|
franta-hg@156
|
103 |
</not>
|
franta-hg@156
|
104 |
</condition>
|
franta-hg@156
|
105 |
<property name="javac.modulepath" value=""/>
|
franta-hg@156
|
106 |
<property name="run.modulepath" value="${javac.modulepath}"/>
|
franta-hg@156
|
107 |
<property name="module.build.classes.dir" value="${build.classes.dir}"/>
|
franta-hg@156
|
108 |
<property name="debug.modulepath" value="${run.modulepath}"/>
|
franta-hg@156
|
109 |
<property name="javac.upgrademodulepath" value=""/>
|
franta-hg@156
|
110 |
<property name="run.upgrademodulepath" value="${javac.upgrademodulepath}"/>
|
franta-hg@156
|
111 |
<condition else="" property="javac.systemmodulepath.cmd.line.arg" value="--system '${javac.systemmodulepath}'">
|
franta-hg@156
|
112 |
<and>
|
franta-hg@156
|
113 |
<isset property="javac.systemmodulepath"/>
|
franta-hg@156
|
114 |
<length length="0" string="${javac.systemmodulepath}" when="greater"/>
|
franta-hg@156
|
115 |
</and>
|
franta-hg@156
|
116 |
</condition>
|
franta-hg@156
|
117 |
<property name="dist.jlink.dir" value="${dist.dir}/jlink"/>
|
franta-hg@156
|
118 |
<property name="dist.jlink.output" value="${dist.jlink.dir}/${application.title}"/>
|
franta-hg@156
|
119 |
<property name="module.name" value=""/>
|
franta-hg@156
|
120 |
</target>
|
franta-hg@156
|
121 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property,-init-modules-supported" name="-do-init">
|
franta-hg@151
|
122 |
<property name="platform.java" value="${java.home}/bin/java"/>
|
franta-hg@13
|
123 |
<available file="${manifest.file}" property="manifest.available"/>
|
franta-hg@13
|
124 |
<condition property="splashscreen.available">
|
franta-hg@13
|
125 |
<and>
|
franta-hg@13
|
126 |
<not>
|
franta-hg@13
|
127 |
<equals arg1="${application.splash}" arg2="" trim="true"/>
|
franta-hg@13
|
128 |
</not>
|
franta-hg@13
|
129 |
<available file="${application.splash}"/>
|
franta-hg@13
|
130 |
</and>
|
franta-hg@13
|
131 |
</condition>
|
franta-hg@13
|
132 |
<condition property="main.class.available">
|
franta-hg@13
|
133 |
<and>
|
franta-hg@13
|
134 |
<isset property="main.class"/>
|
franta-hg@13
|
135 |
<not>
|
franta-hg@13
|
136 |
<equals arg1="${main.class}" arg2="" trim="true"/>
|
franta-hg@13
|
137 |
</not>
|
franta-hg@13
|
138 |
</and>
|
franta-hg@13
|
139 |
</condition>
|
franta-hg@151
|
140 |
<condition property="profile.available">
|
franta-hg@13
|
141 |
<and>
|
franta-hg@151
|
142 |
<isset property="javac.profile"/>
|
franta-hg@151
|
143 |
<length length="0" string="${javac.profile}" when="greater"/>
|
franta-hg@156
|
144 |
<not>
|
franta-hg@156
|
145 |
<matches pattern="1\.[0-7](\..*)?" string="${javac.source}"/>
|
franta-hg@156
|
146 |
</not>
|
franta-hg@13
|
147 |
</and>
|
franta-hg@13
|
148 |
</condition>
|
franta-hg@13
|
149 |
<condition property="do.archive">
|
franta-hg@151
|
150 |
<or>
|
franta-hg@151
|
151 |
<not>
|
franta-hg@151
|
152 |
<istrue value="${jar.archive.disabled}"/>
|
franta-hg@151
|
153 |
</not>
|
franta-hg@151
|
154 |
<istrue value="${not.archive.disabled}"/>
|
franta-hg@151
|
155 |
</or>
|
franta-hg@13
|
156 |
</condition>
|
franta-hg@13
|
157 |
<condition property="do.archive+manifest.available">
|
franta-hg@13
|
158 |
<and>
|
franta-hg@13
|
159 |
<isset property="manifest.available"/>
|
franta-hg@13
|
160 |
<istrue value="${do.archive}"/>
|
franta-hg@13
|
161 |
</and>
|
franta-hg@13
|
162 |
</condition>
|
franta-hg@13
|
163 |
<condition property="do.archive+main.class.available">
|
franta-hg@13
|
164 |
<and>
|
franta-hg@13
|
165 |
<isset property="main.class.available"/>
|
franta-hg@13
|
166 |
<istrue value="${do.archive}"/>
|
franta-hg@13
|
167 |
</and>
|
franta-hg@13
|
168 |
</condition>
|
franta-hg@13
|
169 |
<condition property="do.archive+splashscreen.available">
|
franta-hg@13
|
170 |
<and>
|
franta-hg@13
|
171 |
<isset property="splashscreen.available"/>
|
franta-hg@13
|
172 |
<istrue value="${do.archive}"/>
|
franta-hg@13
|
173 |
</and>
|
franta-hg@13
|
174 |
</condition>
|
franta-hg@151
|
175 |
<condition property="do.archive+profile.available">
|
franta-hg@13
|
176 |
<and>
|
franta-hg@151
|
177 |
<isset property="profile.available"/>
|
franta-hg@13
|
178 |
<istrue value="${do.archive}"/>
|
franta-hg@13
|
179 |
</and>
|
franta-hg@13
|
180 |
</condition>
|
franta-hg@13
|
181 |
<condition property="have.tests">
|
franta-hg@13
|
182 |
<or>
|
franta-hg@13
|
183 |
<available file="${test.src.dir}"/>
|
franta-hg@13
|
184 |
</or>
|
franta-hg@13
|
185 |
</condition>
|
franta-hg@13
|
186 |
<condition property="have.sources">
|
franta-hg@13
|
187 |
<or>
|
franta-hg@13
|
188 |
<available file="${src.dir}"/>
|
franta-hg@13
|
189 |
</or>
|
franta-hg@13
|
190 |
</condition>
|
franta-hg@13
|
191 |
<condition property="netbeans.home+have.tests">
|
franta-hg@13
|
192 |
<and>
|
franta-hg@13
|
193 |
<isset property="netbeans.home"/>
|
franta-hg@13
|
194 |
<isset property="have.tests"/>
|
franta-hg@13
|
195 |
</and>
|
franta-hg@13
|
196 |
</condition>
|
franta-hg@13
|
197 |
<condition property="no.javadoc.preview">
|
franta-hg@13
|
198 |
<and>
|
franta-hg@13
|
199 |
<isset property="javadoc.preview"/>
|
franta-hg@13
|
200 |
<isfalse value="${javadoc.preview}"/>
|
franta-hg@13
|
201 |
</and>
|
franta-hg@13
|
202 |
</condition>
|
franta-hg@13
|
203 |
<property name="run.jvmargs" value=""/>
|
franta-hg@13
|
204 |
<property name="run.jvmargs.ide" value=""/>
|
franta-hg@13
|
205 |
<property name="javac.compilerargs" value=""/>
|
franta-hg@13
|
206 |
<property name="work.dir" value="${basedir}"/>
|
franta-hg@13
|
207 |
<condition property="no.deps">
|
franta-hg@13
|
208 |
<and>
|
franta-hg@13
|
209 |
<istrue value="${no.dependencies}"/>
|
franta-hg@13
|
210 |
</and>
|
franta-hg@13
|
211 |
</condition>
|
franta-hg@13
|
212 |
<property name="javac.debug" value="true"/>
|
franta-hg@13
|
213 |
<property name="javadoc.preview" value="true"/>
|
franta-hg@13
|
214 |
<property name="application.args" value=""/>
|
franta-hg@13
|
215 |
<property name="source.encoding" value="${file.encoding}"/>
|
franta-hg@13
|
216 |
<property name="runtime.encoding" value="${source.encoding}"/>
|
franta-hg@151
|
217 |
<property name="manifest.encoding" value="${source.encoding}"/>
|
franta-hg@13
|
218 |
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
|
franta-hg@13
|
219 |
<and>
|
franta-hg@13
|
220 |
<isset property="javadoc.encoding"/>
|
franta-hg@13
|
221 |
<not>
|
franta-hg@13
|
222 |
<equals arg1="${javadoc.encoding}" arg2=""/>
|
franta-hg@13
|
223 |
</not>
|
franta-hg@13
|
224 |
</and>
|
franta-hg@13
|
225 |
</condition>
|
franta-hg@13
|
226 |
<property name="javadoc.encoding.used" value="${source.encoding}"/>
|
franta-hg@13
|
227 |
<property name="includes" value="**"/>
|
franta-hg@13
|
228 |
<property name="excludes" value=""/>
|
franta-hg@13
|
229 |
<property name="do.depend" value="false"/>
|
franta-hg@13
|
230 |
<condition property="do.depend.true">
|
franta-hg@13
|
231 |
<istrue value="${do.depend}"/>
|
franta-hg@13
|
232 |
</condition>
|
franta-hg@13
|
233 |
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
|
franta-hg@13
|
234 |
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
|
franta-hg@151
|
235 |
<and>
|
franta-hg@151
|
236 |
<isset property="endorsed.classpath"/>
|
franta-hg@151
|
237 |
<not>
|
franta-hg@151
|
238 |
<equals arg1="${endorsed.classpath}" arg2="" trim="true"/>
|
franta-hg@151
|
239 |
</not>
|
franta-hg@151
|
240 |
</and>
|
franta-hg@151
|
241 |
</condition>
|
franta-hg@151
|
242 |
<condition else="" property="javac.profile.cmd.line.arg" value="-profile ${javac.profile}">
|
franta-hg@151
|
243 |
<isset property="profile.available"/>
|
franta-hg@13
|
244 |
</condition>
|
franta-hg@13
|
245 |
<condition else="false" property="jdkBug6558476">
|
franta-hg@13
|
246 |
<and>
|
franta-hg@13
|
247 |
<matches pattern="1\.[56]" string="${java.specification.version}"/>
|
franta-hg@13
|
248 |
<not>
|
franta-hg@13
|
249 |
<os family="unix"/>
|
franta-hg@13
|
250 |
</not>
|
franta-hg@13
|
251 |
</and>
|
franta-hg@13
|
252 |
</condition>
|
franta-hg@151
|
253 |
<condition else="false" property="javac.fork">
|
franta-hg@151
|
254 |
<or>
|
franta-hg@151
|
255 |
<istrue value="${jdkBug6558476}"/>
|
franta-hg@151
|
256 |
<istrue value="${javac.external.vm}"/>
|
franta-hg@151
|
257 |
</or>
|
franta-hg@151
|
258 |
</condition>
|
franta-hg@13
|
259 |
<property name="jar.index" value="false"/>
|
franta-hg@13
|
260 |
<property name="jar.index.metainf" value="${jar.index}"/>
|
franta-hg@13
|
261 |
<property name="copylibs.rebase" value="true"/>
|
franta-hg@13
|
262 |
<available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
|
franta-hg@13
|
263 |
<condition property="junit.available">
|
franta-hg@13
|
264 |
<or>
|
franta-hg@13
|
265 |
<available classname="org.junit.Test" classpath="${run.test.classpath}"/>
|
franta-hg@13
|
266 |
<available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
|
franta-hg@13
|
267 |
</or>
|
franta-hg@13
|
268 |
</condition>
|
franta-hg@13
|
269 |
<condition property="testng.available">
|
franta-hg@13
|
270 |
<available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
|
franta-hg@13
|
271 |
</condition>
|
franta-hg@13
|
272 |
<condition property="junit+testng.available">
|
franta-hg@13
|
273 |
<and>
|
franta-hg@13
|
274 |
<istrue value="${junit.available}"/>
|
franta-hg@13
|
275 |
<istrue value="${testng.available}"/>
|
franta-hg@13
|
276 |
</and>
|
franta-hg@13
|
277 |
</condition>
|
franta-hg@13
|
278 |
<condition else="testng" property="testng.mode" value="mixed">
|
franta-hg@13
|
279 |
<istrue value="${junit+testng.available}"/>
|
franta-hg@13
|
280 |
</condition>
|
franta-hg@13
|
281 |
<condition else="" property="testng.debug.mode" value="-mixed">
|
franta-hg@13
|
282 |
<istrue value="${junit+testng.available}"/>
|
franta-hg@13
|
283 |
</condition>
|
franta-hg@151
|
284 |
<property name="java.failonerror" value="true"/>
|
franta-hg@13
|
285 |
</target>
|
franta-hg@13
|
286 |
<target name="-post-init">
|
franta-hg@13
|
287 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
288 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
289 |
</target>
|
franta-hg@13
|
290 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check">
|
franta-hg@13
|
291 |
<fail unless="src.dir">Must set src.dir</fail>
|
franta-hg@13
|
292 |
<fail unless="test.src.dir">Must set test.src.dir</fail>
|
franta-hg@13
|
293 |
<fail unless="build.dir">Must set build.dir</fail>
|
franta-hg@13
|
294 |
<fail unless="dist.dir">Must set dist.dir</fail>
|
franta-hg@13
|
295 |
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
|
franta-hg@13
|
296 |
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
|
franta-hg@13
|
297 |
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
|
franta-hg@13
|
298 |
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
|
franta-hg@13
|
299 |
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
|
franta-hg@13
|
300 |
<fail unless="dist.jar">Must set dist.jar</fail>
|
franta-hg@13
|
301 |
</target>
|
franta-hg@13
|
302 |
<target name="-init-macrodef-property">
|
franta-hg@13
|
303 |
<macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@13
|
304 |
<attribute name="name"/>
|
franta-hg@13
|
305 |
<attribute name="value"/>
|
franta-hg@13
|
306 |
<sequential>
|
franta-hg@13
|
307 |
<property name="@{name}" value="${@{value}}"/>
|
franta-hg@13
|
308 |
</sequential>
|
franta-hg@13
|
309 |
</macrodef>
|
franta-hg@13
|
310 |
</target>
|
franta-hg@156
|
311 |
<target depends="-init-ap-cmdline-properties,-init-source-module-properties" if="modules.supported.internal" name="-init-macrodef-javac-with-module">
|
franta-hg@13
|
312 |
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
313 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@13
|
314 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@13
|
315 |
<attribute default="${javac.classpath}" name="classpath"/>
|
franta-hg@156
|
316 |
<attribute default="${javac.modulepath}" name="modulepath"/>
|
franta-hg@156
|
317 |
<attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
|
franta-hg@156
|
318 |
<attribute default="${javac.processorpath}" name="processorpath"/>
|
franta-hg@156
|
319 |
<attribute default="${javac.processormodulepath}" name="processormodulepath"/>
|
franta-hg@156
|
320 |
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
franta-hg@156
|
321 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@156
|
322 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@156
|
323 |
<attribute default="${javac.debug}" name="debug"/>
|
franta-hg@156
|
324 |
<attribute default="${empty.dir}" name="sourcepath" unless:set="named.module.internal"/>
|
franta-hg@156
|
325 |
<attribute default="${src.dir}" if:set="named.module.internal" name="sourcepath"/>
|
franta-hg@156
|
326 |
<attribute default="${empty.dir}" name="gensrcdir"/>
|
franta-hg@156
|
327 |
<element name="customize" optional="true"/>
|
franta-hg@156
|
328 |
<sequential>
|
franta-hg@156
|
329 |
<condition property="warn.excludes.internal">
|
franta-hg@156
|
330 |
<and>
|
franta-hg@156
|
331 |
<isset property="named.module.internal"/>
|
franta-hg@156
|
332 |
<length length="0" string="@{excludes}" trim="true" when="greater"/>
|
franta-hg@156
|
333 |
</and>
|
franta-hg@156
|
334 |
</condition>
|
franta-hg@156
|
335 |
<echo if:set="warn.excludes.internal" level="warning" message="The javac excludes are not supported in the JDK 9 Named Module."/>
|
franta-hg@156
|
336 |
<property location="${build.dir}/empty" name="empty.dir"/>
|
franta-hg@156
|
337 |
<mkdir dir="${empty.dir}"/>
|
franta-hg@156
|
338 |
<mkdir dir="@{apgeneratedsrcdir}"/>
|
franta-hg@156
|
339 |
<condition property="processormodulepath.set">
|
franta-hg@156
|
340 |
<resourcecount count="0" when="greater">
|
franta-hg@156
|
341 |
<path>
|
franta-hg@156
|
342 |
<pathelement path="@{processormodulepath}"/>
|
franta-hg@156
|
343 |
</path>
|
franta-hg@156
|
344 |
</resourcecount>
|
franta-hg@156
|
345 |
</condition>
|
franta-hg@156
|
346 |
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
|
franta-hg@156
|
347 |
<src>
|
franta-hg@156
|
348 |
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
franta-hg@156
|
349 |
<include name="*"/>
|
franta-hg@156
|
350 |
</dirset>
|
franta-hg@156
|
351 |
</src>
|
franta-hg@156
|
352 |
<classpath>
|
franta-hg@156
|
353 |
<path path="@{classpath}"/>
|
franta-hg@156
|
354 |
</classpath>
|
franta-hg@156
|
355 |
<modulepath>
|
franta-hg@156
|
356 |
<path path="@{modulepath}"/>
|
franta-hg@156
|
357 |
</modulepath>
|
franta-hg@156
|
358 |
<upgrademodulepath>
|
franta-hg@156
|
359 |
<path path="@{upgrademodulepath}"/>
|
franta-hg@156
|
360 |
</upgrademodulepath>
|
franta-hg@156
|
361 |
<compilerarg line="${javac.systemmodulepath.cmd.line.arg}"/>
|
franta-hg@156
|
362 |
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
franta-hg@156
|
363 |
<compilerarg line="${javac.compilerargs}"/>
|
franta-hg@156
|
364 |
<compilerarg if:set="processormodulepath.set" value="--processor-module-path"/>
|
franta-hg@156
|
365 |
<compilerarg if:set="processormodulepath.set" path="@{processormodulepath}"/>
|
franta-hg@156
|
366 |
<compilerarg unless:set="processormodulepath.set" value="-processorpath"/>
|
franta-hg@156
|
367 |
<compilerarg path="@{processorpath}:${empty.dir}" unless:set="processormodulepath.set"/>
|
franta-hg@156
|
368 |
<compilerarg line="${ap.processors.internal}"/>
|
franta-hg@156
|
369 |
<compilerarg line="${annotation.processing.processor.options}"/>
|
franta-hg@156
|
370 |
<compilerarg value="-s"/>
|
franta-hg@156
|
371 |
<compilerarg path="@{apgeneratedsrcdir}"/>
|
franta-hg@156
|
372 |
<compilerarg line="${ap.proc.none.internal}"/>
|
franta-hg@156
|
373 |
<customize/>
|
franta-hg@156
|
374 |
</javac>
|
franta-hg@156
|
375 |
</sequential>
|
franta-hg@156
|
376 |
</macrodef>
|
franta-hg@156
|
377 |
</target>
|
franta-hg@156
|
378 |
<target depends="-init-ap-cmdline-properties,-init-source-module-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors" unless="modules.supported.internal">
|
franta-hg@156
|
379 |
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@156
|
380 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@156
|
381 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@156
|
382 |
<attribute default="${javac.classpath}" name="classpath"/>
|
franta-hg@156
|
383 |
<attribute default="${javac.modulepath}" name="modulepath"/>
|
franta-hg@156
|
384 |
<attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
|
franta-hg@13
|
385 |
<attribute default="${javac.processorpath}" name="processorpath"/>
|
franta-hg@13
|
386 |
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
franta-hg@13
|
387 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
388 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
389 |
<attribute default="${javac.debug}" name="debug"/>
|
franta-hg@13
|
390 |
<attribute default="${empty.dir}" name="sourcepath"/>
|
franta-hg@13
|
391 |
<attribute default="${empty.dir}" name="gensrcdir"/>
|
franta-hg@13
|
392 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
393 |
<sequential>
|
franta-hg@13
|
394 |
<property location="${build.dir}/empty" name="empty.dir"/>
|
franta-hg@13
|
395 |
<mkdir dir="${empty.dir}"/>
|
franta-hg@13
|
396 |
<mkdir dir="@{apgeneratedsrcdir}"/>
|
franta-hg@13
|
397 |
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
|
franta-hg@13
|
398 |
<src>
|
franta-hg@13
|
399 |
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
franta-hg@13
|
400 |
<include name="*"/>
|
franta-hg@13
|
401 |
</dirset>
|
franta-hg@13
|
402 |
</src>
|
franta-hg@13
|
403 |
<classpath>
|
franta-hg@13
|
404 |
<path path="@{classpath}"/>
|
franta-hg@13
|
405 |
</classpath>
|
franta-hg@13
|
406 |
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@151
|
407 |
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
franta-hg@13
|
408 |
<compilerarg line="${javac.compilerargs}"/>
|
franta-hg@13
|
409 |
<compilerarg value="-processorpath"/>
|
franta-hg@13
|
410 |
<compilerarg path="@{processorpath}:${empty.dir}"/>
|
franta-hg@13
|
411 |
<compilerarg line="${ap.processors.internal}"/>
|
franta-hg@13
|
412 |
<compilerarg line="${annotation.processing.processor.options}"/>
|
franta-hg@13
|
413 |
<compilerarg value="-s"/>
|
franta-hg@13
|
414 |
<compilerarg path="@{apgeneratedsrcdir}"/>
|
franta-hg@13
|
415 |
<compilerarg line="${ap.proc.none.internal}"/>
|
franta-hg@13
|
416 |
<customize/>
|
franta-hg@13
|
417 |
</javac>
|
franta-hg@13
|
418 |
</sequential>
|
franta-hg@13
|
419 |
</macrodef>
|
franta-hg@13
|
420 |
</target>
|
franta-hg@156
|
421 |
<target depends="-init-ap-cmdline-properties,-init-source-module-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
|
franta-hg@13
|
422 |
<macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
423 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@13
|
424 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@13
|
425 |
<attribute default="${javac.classpath}" name="classpath"/>
|
franta-hg@156
|
426 |
<attribute default="${javac.modulepath}" name="modulepath"/>
|
franta-hg@156
|
427 |
<attribute default="${javac.upgrademodulepath}" name="upgrademodulepath"/>
|
franta-hg@13
|
428 |
<attribute default="${javac.processorpath}" name="processorpath"/>
|
franta-hg@13
|
429 |
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
|
franta-hg@13
|
430 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
431 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
432 |
<attribute default="${javac.debug}" name="debug"/>
|
franta-hg@13
|
433 |
<attribute default="${empty.dir}" name="sourcepath"/>
|
franta-hg@13
|
434 |
<attribute default="${empty.dir}" name="gensrcdir"/>
|
franta-hg@13
|
435 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
436 |
<sequential>
|
franta-hg@13
|
437 |
<property location="${build.dir}/empty" name="empty.dir"/>
|
franta-hg@13
|
438 |
<mkdir dir="${empty.dir}"/>
|
franta-hg@13
|
439 |
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
|
franta-hg@13
|
440 |
<src>
|
franta-hg@13
|
441 |
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
|
franta-hg@13
|
442 |
<include name="*"/>
|
franta-hg@13
|
443 |
</dirset>
|
franta-hg@13
|
444 |
</src>
|
franta-hg@13
|
445 |
<classpath>
|
franta-hg@13
|
446 |
<path path="@{classpath}"/>
|
franta-hg@13
|
447 |
</classpath>
|
franta-hg@13
|
448 |
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@151
|
449 |
<compilerarg line="${javac.profile.cmd.line.arg}"/>
|
franta-hg@13
|
450 |
<compilerarg line="${javac.compilerargs}"/>
|
franta-hg@13
|
451 |
<customize/>
|
franta-hg@13
|
452 |
</javac>
|
franta-hg@13
|
453 |
</sequential>
|
franta-hg@13
|
454 |
</macrodef>
|
franta-hg@13
|
455 |
</target>
|
franta-hg@156
|
456 |
<target depends="-init-macrodef-javac-with-module,-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
|
franta-hg@13
|
457 |
<macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
458 |
<attribute default="${src.dir}" name="srcdir"/>
|
franta-hg@13
|
459 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@13
|
460 |
<attribute default="${javac.classpath}" name="classpath"/>
|
franta-hg@13
|
461 |
<sequential>
|
franta-hg@13
|
462 |
<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
|
franta-hg@13
|
463 |
<classpath>
|
franta-hg@13
|
464 |
<path path="@{classpath}"/>
|
franta-hg@13
|
465 |
</classpath>
|
franta-hg@13
|
466 |
</depend>
|
franta-hg@13
|
467 |
</sequential>
|
franta-hg@13
|
468 |
</macrodef>
|
franta-hg@13
|
469 |
<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
470 |
<attribute default="${build.classes.dir}" name="destdir"/>
|
franta-hg@13
|
471 |
<sequential>
|
franta-hg@13
|
472 |
<fail unless="javac.includes">Must set javac.includes</fail>
|
franta-hg@13
|
473 |
<pathconvert pathsep="${line.separator}" property="javac.includes.binary">
|
franta-hg@13
|
474 |
<path>
|
franta-hg@13
|
475 |
<filelist dir="@{destdir}" files="${javac.includes}"/>
|
franta-hg@13
|
476 |
</path>
|
franta-hg@13
|
477 |
<globmapper from="*.java" to="*.class"/>
|
franta-hg@13
|
478 |
</pathconvert>
|
franta-hg@13
|
479 |
<tempfile deleteonexit="true" property="javac.includesfile.binary"/>
|
franta-hg@13
|
480 |
<echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
|
franta-hg@13
|
481 |
<delete>
|
franta-hg@13
|
482 |
<files includesfile="${javac.includesfile.binary}"/>
|
franta-hg@13
|
483 |
</delete>
|
franta-hg@13
|
484 |
<delete>
|
franta-hg@13
|
485 |
<fileset file="${javac.includesfile.binary}"/>
|
franta-hg@13
|
486 |
</delete>
|
franta-hg@13
|
487 |
</sequential>
|
franta-hg@13
|
488 |
</macrodef>
|
franta-hg@13
|
489 |
</target>
|
franta-hg@13
|
490 |
<target if="${junit.available}" name="-init-macrodef-junit-init">
|
franta-hg@13
|
491 |
<condition else="false" property="nb.junit.batch" value="true">
|
franta-hg@13
|
492 |
<and>
|
franta-hg@13
|
493 |
<istrue value="${junit.available}"/>
|
franta-hg@13
|
494 |
<not>
|
franta-hg@13
|
495 |
<isset property="test.method"/>
|
franta-hg@13
|
496 |
</not>
|
franta-hg@13
|
497 |
</and>
|
franta-hg@13
|
498 |
</condition>
|
franta-hg@13
|
499 |
<condition else="false" property="nb.junit.single" value="true">
|
franta-hg@13
|
500 |
<and>
|
franta-hg@13
|
501 |
<istrue value="${junit.available}"/>
|
franta-hg@13
|
502 |
<isset property="test.method"/>
|
franta-hg@13
|
503 |
</and>
|
franta-hg@13
|
504 |
</condition>
|
franta-hg@13
|
505 |
</target>
|
franta-hg@13
|
506 |
<target name="-init-test-properties">
|
franta-hg@13
|
507 |
<property name="test.binaryincludes" value="<nothing>"/>
|
franta-hg@13
|
508 |
<property name="test.binarytestincludes" value=""/>
|
franta-hg@13
|
509 |
<property name="test.binaryexcludes" value=""/>
|
franta-hg@13
|
510 |
</target>
|
franta-hg@156
|
511 |
<target depends="-init-modules-supported" if="modules.supported.internal" name="-init-macrodef-junit-prototype-with-module">
|
franta-hg@156
|
512 |
<macrodef name="junit-prototype" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@156
|
513 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@156
|
514 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@156
|
515 |
<element name="customizePrototype" optional="true"/>
|
franta-hg@156
|
516 |
<sequential>
|
franta-hg@156
|
517 |
<property name="junit.forkmode" value="perTest"/>
|
franta-hg@156
|
518 |
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
|
franta-hg@156
|
519 |
<syspropertyset>
|
franta-hg@156
|
520 |
<propertyref prefix="test-sys-prop."/>
|
franta-hg@156
|
521 |
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
franta-hg@156
|
522 |
</syspropertyset>
|
franta-hg@156
|
523 |
<classpath>
|
franta-hg@156
|
524 |
<path path="${run.test.classpath}"/>
|
franta-hg@156
|
525 |
</classpath>
|
franta-hg@156
|
526 |
<modulepath>
|
franta-hg@156
|
527 |
<path path="${run.test.modulepath}"/>
|
franta-hg@156
|
528 |
</modulepath>
|
franta-hg@156
|
529 |
<formatter type="brief" usefile="false"/>
|
franta-hg@156
|
530 |
<formatter type="xml"/>
|
franta-hg@156
|
531 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@156
|
532 |
<jvmarg value="-ea"/>
|
franta-hg@156
|
533 |
<jvmarg line="${run.test.jvmargs}"/>
|
franta-hg@156
|
534 |
<customizePrototype/>
|
franta-hg@156
|
535 |
</junit>
|
franta-hg@156
|
536 |
</sequential>
|
franta-hg@156
|
537 |
</macrodef>
|
franta-hg@156
|
538 |
</target>
|
franta-hg@156
|
539 |
<target depends="-init-modules-supported" name="-init-macrodef-junit-prototype-without-module" unless="modules.supported.internal">
|
franta-hg@156
|
540 |
<macrodef name="junit-prototype" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@156
|
541 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@156
|
542 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@156
|
543 |
<element name="customizePrototype" optional="true"/>
|
franta-hg@156
|
544 |
<sequential>
|
franta-hg@156
|
545 |
<property name="junit.forkmode" value="perTest"/>
|
franta-hg@156
|
546 |
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
|
franta-hg@156
|
547 |
<syspropertyset>
|
franta-hg@156
|
548 |
<propertyref prefix="test-sys-prop."/>
|
franta-hg@156
|
549 |
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
franta-hg@156
|
550 |
</syspropertyset>
|
franta-hg@156
|
551 |
<classpath>
|
franta-hg@156
|
552 |
<path path="${run.test.classpath}"/>
|
franta-hg@156
|
553 |
</classpath>
|
franta-hg@156
|
554 |
<formatter type="brief" usefile="false"/>
|
franta-hg@156
|
555 |
<formatter type="xml"/>
|
franta-hg@156
|
556 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@156
|
557 |
<jvmarg value="-ea"/>
|
franta-hg@156
|
558 |
<customizePrototype/>
|
franta-hg@156
|
559 |
</junit>
|
franta-hg@156
|
560 |
</sequential>
|
franta-hg@156
|
561 |
</macrodef>
|
franta-hg@156
|
562 |
</target>
|
franta-hg@156
|
563 |
<target depends="-init-test-properties,-init-macrodef-junit-prototype-with-module,-init-macrodef-junit-prototype-without-module" if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
|
franta-hg@13
|
564 |
<macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
565 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
566 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
567 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
568 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
569 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
570 |
<sequential>
|
franta-hg@156
|
571 |
<j2seproject3:junit-prototype>
|
franta-hg@156
|
572 |
<customizePrototype>
|
franta-hg@156
|
573 |
<test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
|
franta-hg@156
|
574 |
<customize/>
|
franta-hg@156
|
575 |
</customizePrototype>
|
franta-hg@156
|
576 |
</j2seproject3:junit-prototype>
|
franta-hg@13
|
577 |
</sequential>
|
franta-hg@13
|
578 |
</macrodef>
|
franta-hg@13
|
579 |
</target>
|
franta-hg@156
|
580 |
<target depends="-init-test-properties,-init-macrodef-junit-prototype-with-module,-init-macrodef-junit-prototype-without-module" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
|
franta-hg@13
|
581 |
<macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
582 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
583 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
584 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
585 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
586 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
587 |
<sequential>
|
franta-hg@156
|
588 |
<j2seproject3:junit-prototype>
|
franta-hg@156
|
589 |
<customizePrototype>
|
franta-hg@156
|
590 |
<batchtest todir="${build.test.results.dir}">
|
franta-hg@156
|
591 |
<fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
franta-hg@156
|
592 |
<filename name="@{testincludes}"/>
|
franta-hg@156
|
593 |
</fileset>
|
franta-hg@156
|
594 |
<fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
|
franta-hg@156
|
595 |
<filename name="${test.binarytestincludes}"/>
|
franta-hg@156
|
596 |
</fileset>
|
franta-hg@156
|
597 |
</batchtest>
|
franta-hg@156
|
598 |
<customize/>
|
franta-hg@156
|
599 |
</customizePrototype>
|
franta-hg@156
|
600 |
</j2seproject3:junit-prototype>
|
franta-hg@13
|
601 |
</sequential>
|
franta-hg@13
|
602 |
</macrodef>
|
franta-hg@13
|
603 |
</target>
|
franta-hg@13
|
604 |
<target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
|
franta-hg@13
|
605 |
<target if="${testng.available}" name="-init-macrodef-testng">
|
franta-hg@13
|
606 |
<macrodef name="testng" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
607 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
608 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
609 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
610 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
611 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
612 |
<sequential>
|
franta-hg@13
|
613 |
<condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
|
franta-hg@13
|
614 |
<isset property="test.method"/>
|
franta-hg@13
|
615 |
</condition>
|
franta-hg@13
|
616 |
<union id="test.set">
|
franta-hg@13
|
617 |
<fileset dir="${test.src.dir}" excludes="@{excludes},**/*.xml,${excludes}" includes="@{includes}">
|
franta-hg@13
|
618 |
<filename name="@{testincludes}"/>
|
franta-hg@13
|
619 |
</fileset>
|
franta-hg@13
|
620 |
</union>
|
franta-hg@13
|
621 |
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
franta-hg@151
|
622 |
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="dictionary-generator" testname="TestNG tests" workingDir="${work.dir}">
|
franta-hg@13
|
623 |
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
franta-hg@13
|
624 |
<propertyset>
|
franta-hg@13
|
625 |
<propertyref prefix="test-sys-prop."/>
|
franta-hg@13
|
626 |
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
franta-hg@13
|
627 |
</propertyset>
|
franta-hg@156
|
628 |
<classpath>
|
franta-hg@156
|
629 |
<path path="${run.test.classpath}"/>
|
franta-hg@156
|
630 |
</classpath>
|
franta-hg@156
|
631 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@13
|
632 |
<customize/>
|
franta-hg@13
|
633 |
</testng>
|
franta-hg@13
|
634 |
</sequential>
|
franta-hg@13
|
635 |
</macrodef>
|
franta-hg@13
|
636 |
</target>
|
franta-hg@13
|
637 |
<target name="-init-macrodef-test-impl">
|
franta-hg@13
|
638 |
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
639 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
640 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
641 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
642 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
643 |
<element implicit="true" name="customize" optional="true"/>
|
franta-hg@13
|
644 |
<sequential>
|
franta-hg@13
|
645 |
<echo>No tests executed.</echo>
|
franta-hg@13
|
646 |
</sequential>
|
franta-hg@13
|
647 |
</macrodef>
|
franta-hg@13
|
648 |
</target>
|
franta-hg@13
|
649 |
<target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
|
franta-hg@13
|
650 |
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
651 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
652 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
653 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
654 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
655 |
<element implicit="true" name="customize" optional="true"/>
|
franta-hg@13
|
656 |
<sequential>
|
franta-hg@13
|
657 |
<j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
franta-hg@13
|
658 |
<customize/>
|
franta-hg@13
|
659 |
</j2seproject3:junit>
|
franta-hg@13
|
660 |
</sequential>
|
franta-hg@13
|
661 |
</macrodef>
|
franta-hg@13
|
662 |
</target>
|
franta-hg@13
|
663 |
<target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
|
franta-hg@13
|
664 |
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
665 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
666 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
667 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
668 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
669 |
<element implicit="true" name="customize" optional="true"/>
|
franta-hg@13
|
670 |
<sequential>
|
franta-hg@13
|
671 |
<j2seproject3:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
franta-hg@13
|
672 |
<customize/>
|
franta-hg@13
|
673 |
</j2seproject3:testng>
|
franta-hg@13
|
674 |
</sequential>
|
franta-hg@13
|
675 |
</macrodef>
|
franta-hg@13
|
676 |
</target>
|
franta-hg@13
|
677 |
<target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
|
franta-hg@13
|
678 |
<macrodef name="test" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
679 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
680 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
681 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
682 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
683 |
<sequential>
|
franta-hg@13
|
684 |
<j2seproject3:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
franta-hg@13
|
685 |
<customize>
|
franta-hg@13
|
686 |
<jvmarg line="${run.jvmargs}"/>
|
franta-hg@13
|
687 |
<jvmarg line="${run.jvmargs.ide}"/>
|
franta-hg@13
|
688 |
</customize>
|
franta-hg@13
|
689 |
</j2seproject3:test-impl>
|
franta-hg@13
|
690 |
</sequential>
|
franta-hg@13
|
691 |
</macrodef>
|
franta-hg@13
|
692 |
</target>
|
franta-hg@156
|
693 |
<target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
|
franta-hg@13
|
694 |
<macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
695 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
696 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
697 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
698 |
<attribute default="" name="testmethods"/>
|
franta-hg@156
|
699 |
<element name="customizeDebuggee" optional="true"/>
|
franta-hg@13
|
700 |
<sequential>
|
franta-hg@156
|
701 |
<j2seproject3:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
franta-hg@156
|
702 |
<customize>
|
franta-hg@156
|
703 |
<jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
|
franta-hg@156
|
704 |
<customizeDebuggee/>
|
franta-hg@156
|
705 |
</customize>
|
franta-hg@156
|
706 |
</j2seproject3:junit>
|
franta-hg@13
|
707 |
</sequential>
|
franta-hg@13
|
708 |
</macrodef>
|
franta-hg@13
|
709 |
</target>
|
franta-hg@13
|
710 |
<target if="${testng.available}" name="-init-macrodef-testng-debug">
|
franta-hg@13
|
711 |
<macrodef name="testng-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
712 |
<attribute default="${main.class}" name="testClass"/>
|
franta-hg@13
|
713 |
<attribute default="" name="testMethod"/>
|
franta-hg@13
|
714 |
<element name="customize2" optional="true"/>
|
franta-hg@13
|
715 |
<sequential>
|
franta-hg@13
|
716 |
<condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
|
franta-hg@13
|
717 |
<isset property="test.method"/>
|
franta-hg@13
|
718 |
</condition>
|
franta-hg@13
|
719 |
<condition else="-suitename dictionary-generator -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
|
franta-hg@13
|
720 |
<matches pattern=".*\.xml" string="@{testClass}"/>
|
franta-hg@13
|
721 |
</condition>
|
franta-hg@13
|
722 |
<delete dir="${build.test.results.dir}" quiet="true"/>
|
franta-hg@13
|
723 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@13
|
724 |
<j2seproject3:debug classname="org.testng.TestNG" classpath="${debug.test.classpath}">
|
franta-hg@156
|
725 |
<customizeDebuggee>
|
franta-hg@13
|
726 |
<customize2/>
|
franta-hg@13
|
727 |
<jvmarg value="-ea"/>
|
franta-hg@13
|
728 |
<arg line="${testng.debug.mode}"/>
|
franta-hg@13
|
729 |
<arg line="-d ${build.test.results.dir}"/>
|
franta-hg@13
|
730 |
<arg line="-listener org.testng.reporters.VerboseReporter"/>
|
franta-hg@13
|
731 |
<arg line="${testng.cmd.args}"/>
|
franta-hg@156
|
732 |
</customizeDebuggee>
|
franta-hg@13
|
733 |
</j2seproject3:debug>
|
franta-hg@13
|
734 |
</sequential>
|
franta-hg@13
|
735 |
</macrodef>
|
franta-hg@13
|
736 |
</target>
|
franta-hg@13
|
737 |
<target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
|
franta-hg@13
|
738 |
<macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
739 |
<attribute default="${main.class}" name="testClass"/>
|
franta-hg@13
|
740 |
<attribute default="" name="testMethod"/>
|
franta-hg@13
|
741 |
<element implicit="true" name="customize2" optional="true"/>
|
franta-hg@13
|
742 |
<sequential>
|
franta-hg@13
|
743 |
<j2seproject3:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
|
franta-hg@13
|
744 |
<customize2/>
|
franta-hg@13
|
745 |
</j2seproject3:testng-debug>
|
franta-hg@13
|
746 |
</sequential>
|
franta-hg@13
|
747 |
</macrodef>
|
franta-hg@13
|
748 |
</target>
|
franta-hg@13
|
749 |
<target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
|
franta-hg@13
|
750 |
<macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
751 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
752 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
753 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
754 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
755 |
<attribute default="${main.class}" name="testClass"/>
|
franta-hg@13
|
756 |
<attribute default="" name="testMethod"/>
|
franta-hg@13
|
757 |
<sequential>
|
franta-hg@13
|
758 |
<j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
|
franta-hg@156
|
759 |
<customizeDebuggee>
|
franta-hg@13
|
760 |
<jvmarg line="${run.jvmargs}"/>
|
franta-hg@13
|
761 |
<jvmarg line="${run.jvmargs.ide}"/>
|
franta-hg@156
|
762 |
</customizeDebuggee>
|
franta-hg@13
|
763 |
</j2seproject3:test-debug-impl>
|
franta-hg@13
|
764 |
</sequential>
|
franta-hg@13
|
765 |
</macrodef>
|
franta-hg@13
|
766 |
</target>
|
franta-hg@13
|
767 |
<target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
|
franta-hg@13
|
768 |
<macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
769 |
<attribute default="${includes}" name="includes"/>
|
franta-hg@13
|
770 |
<attribute default="${excludes}" name="excludes"/>
|
franta-hg@13
|
771 |
<attribute default="**" name="testincludes"/>
|
franta-hg@13
|
772 |
<attribute default="" name="testmethods"/>
|
franta-hg@13
|
773 |
<attribute default="${main.class}" name="testClass"/>
|
franta-hg@13
|
774 |
<attribute default="" name="testMethod"/>
|
franta-hg@13
|
775 |
<sequential>
|
franta-hg@13
|
776 |
<j2seproject3:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
|
franta-hg@13
|
777 |
<customize2>
|
franta-hg@13
|
778 |
<syspropertyset>
|
franta-hg@13
|
779 |
<propertyref prefix="test-sys-prop."/>
|
franta-hg@13
|
780 |
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
franta-hg@13
|
781 |
</syspropertyset>
|
franta-hg@13
|
782 |
</customize2>
|
franta-hg@13
|
783 |
</j2seproject3:testng-debug-impl>
|
franta-hg@13
|
784 |
</sequential>
|
franta-hg@13
|
785 |
</macrodef>
|
franta-hg@13
|
786 |
</target>
|
franta-hg@13
|
787 |
<target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
|
franta-hg@13
|
788 |
<!--
|
franta-hg@13
|
789 |
pre NB7.2 profiling section; consider it deprecated
|
franta-hg@13
|
790 |
-->
|
franta-hg@13
|
791 |
<target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
|
franta-hg@13
|
792 |
<target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
|
franta-hg@13
|
793 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
794 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
795 |
</target>
|
franta-hg@13
|
796 |
<target if="profiler.info.jvmargs.agent" name="-profile-post-init">
|
franta-hg@13
|
797 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
798 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
799 |
</target>
|
franta-hg@13
|
800 |
<target if="profiler.info.jvmargs.agent" name="-profile-init-macrodef-profile">
|
franta-hg@13
|
801 |
<macrodef name="resolve">
|
franta-hg@13
|
802 |
<attribute name="name"/>
|
franta-hg@13
|
803 |
<attribute name="value"/>
|
franta-hg@13
|
804 |
<sequential>
|
franta-hg@13
|
805 |
<property name="@{name}" value="${env.@{value}}"/>
|
franta-hg@13
|
806 |
</sequential>
|
franta-hg@13
|
807 |
</macrodef>
|
franta-hg@13
|
808 |
<macrodef name="profile">
|
franta-hg@13
|
809 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@13
|
810 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
811 |
<sequential>
|
franta-hg@13
|
812 |
<property environment="env"/>
|
franta-hg@13
|
813 |
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
|
franta-hg@151
|
814 |
<java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
|
franta-hg@13
|
815 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@13
|
816 |
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
franta-hg@13
|
817 |
<jvmarg line="${profiler.info.jvmargs}"/>
|
franta-hg@13
|
818 |
<env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
|
franta-hg@13
|
819 |
<arg line="${application.args}"/>
|
franta-hg@13
|
820 |
<classpath>
|
franta-hg@13
|
821 |
<path path="${run.classpath}"/>
|
franta-hg@13
|
822 |
</classpath>
|
franta-hg@13
|
823 |
<syspropertyset>
|
franta-hg@13
|
824 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@13
|
825 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@13
|
826 |
</syspropertyset>
|
franta-hg@13
|
827 |
<customize/>
|
franta-hg@13
|
828 |
</java>
|
franta-hg@13
|
829 |
</sequential>
|
franta-hg@13
|
830 |
</macrodef>
|
franta-hg@13
|
831 |
</target>
|
franta-hg@13
|
832 |
<target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" if="profiler.info.jvmargs.agent" name="-profile-init-check">
|
franta-hg@13
|
833 |
<fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
|
franta-hg@13
|
834 |
<fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
|
franta-hg@13
|
835 |
</target>
|
franta-hg@13
|
836 |
<!--
|
franta-hg@13
|
837 |
end of pre NB7.2 profiling section
|
franta-hg@13
|
838 |
-->
|
franta-hg@13
|
839 |
<target depends="-init-debug-args" name="-init-macrodef-nbjpda">
|
franta-hg@13
|
840 |
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@13
|
841 |
<attribute default="${main.class}" name="name"/>
|
franta-hg@156
|
842 |
<attribute default="${debug.modulepath}" name="modulepath"/>
|
franta-hg@13
|
843 |
<attribute default="${debug.classpath}" name="classpath"/>
|
franta-hg@13
|
844 |
<attribute default="" name="stopclassname"/>
|
franta-hg@13
|
845 |
<sequential>
|
franta-hg@13
|
846 |
<nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}">
|
franta-hg@156
|
847 |
<modulepath>
|
franta-hg@156
|
848 |
<path path="@{modulepath}"/>
|
franta-hg@156
|
849 |
</modulepath>
|
franta-hg@13
|
850 |
<classpath>
|
franta-hg@13
|
851 |
<path path="@{classpath}"/>
|
franta-hg@13
|
852 |
</classpath>
|
franta-hg@13
|
853 |
</nbjpdastart>
|
franta-hg@13
|
854 |
</sequential>
|
franta-hg@13
|
855 |
</macrodef>
|
franta-hg@13
|
856 |
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@13
|
857 |
<attribute default="${build.classes.dir}" name="dir"/>
|
franta-hg@13
|
858 |
<sequential>
|
franta-hg@13
|
859 |
<nbjpdareload>
|
franta-hg@13
|
860 |
<fileset dir="@{dir}" includes="${fix.classes}">
|
franta-hg@13
|
861 |
<include name="${fix.includes}*.class"/>
|
franta-hg@13
|
862 |
</fileset>
|
franta-hg@13
|
863 |
</nbjpdareload>
|
franta-hg@13
|
864 |
</sequential>
|
franta-hg@13
|
865 |
</macrodef>
|
franta-hg@13
|
866 |
</target>
|
franta-hg@13
|
867 |
<target name="-init-debug-args">
|
franta-hg@13
|
868 |
<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
|
franta-hg@13
|
869 |
<os family="windows"/>
|
franta-hg@13
|
870 |
</condition>
|
franta-hg@13
|
871 |
<condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
|
franta-hg@13
|
872 |
<isset property="debug.transport"/>
|
franta-hg@13
|
873 |
</condition>
|
franta-hg@13
|
874 |
</target>
|
franta-hg@13
|
875 |
<target depends="-init-debug-args" name="-init-macrodef-debug">
|
franta-hg@13
|
876 |
<macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@156
|
877 |
<attribute default="${module.name}" name="modulename"/>
|
franta-hg@13
|
878 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@156
|
879 |
<attribute default="${debug.modulepath}" name="modulepath"/>
|
franta-hg@13
|
880 |
<attribute default="${debug.classpath}" name="classpath"/>
|
franta-hg@156
|
881 |
<element name="customizeDebuggee" optional="true"/>
|
franta-hg@156
|
882 |
<sequential>
|
franta-hg@156
|
883 |
<j2seproject1:java classname="@{classname}" classpath="@{classpath}" modulename="@{modulename}" modulepath="@{modulepath}">
|
franta-hg@156
|
884 |
<customize>
|
franta-hg@156
|
885 |
<jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
|
franta-hg@156
|
886 |
<customizeDebuggee/>
|
franta-hg@156
|
887 |
</customize>
|
franta-hg@156
|
888 |
</j2seproject1:java>
|
franta-hg@156
|
889 |
</sequential>
|
franta-hg@156
|
890 |
</macrodef>
|
franta-hg@156
|
891 |
</target>
|
franta-hg@156
|
892 |
<target depends="-init-source-module-properties" if="named.module.internal" name="-init-macrodef-java-with-module">
|
franta-hg@156
|
893 |
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@156
|
894 |
<attribute default="${module.name}" name="modulename"/>
|
franta-hg@156
|
895 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@156
|
896 |
<attribute default="${run.modulepath}" name="modulepath"/>
|
franta-hg@156
|
897 |
<attribute default="${run.upgrademodulepath}" name="upgrademodulepath"/>
|
franta-hg@156
|
898 |
<attribute default="${run.classpath}" name="classpath"/>
|
franta-hg@156
|
899 |
<attribute default="jvm" name="jvm"/>
|
franta-hg@13
|
900 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
901 |
<sequential>
|
franta-hg@156
|
902 |
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true" module="@{modulename}">
|
franta-hg@156
|
903 |
<classpath>
|
franta-hg@156
|
904 |
<path path="@{classpath}"/>
|
franta-hg@156
|
905 |
</classpath>
|
franta-hg@156
|
906 |
<modulepath>
|
franta-hg@156
|
907 |
<pathelement path="@{modulepath}"/>
|
franta-hg@156
|
908 |
<pathelement location="${module.build.classes.dir}"/>
|
franta-hg@156
|
909 |
</modulepath>
|
franta-hg@156
|
910 |
<upgrademodulepath>
|
franta-hg@156
|
911 |
<path path="@{upgrademodulepath}"/>
|
franta-hg@156
|
912 |
</upgrademodulepath>
|
franta-hg@13
|
913 |
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
franta-hg@13
|
914 |
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
franta-hg@13
|
915 |
<jvmarg line="${run.jvmargs}"/>
|
franta-hg@13
|
916 |
<jvmarg line="${run.jvmargs.ide}"/>
|
franta-hg@13
|
917 |
<syspropertyset>
|
franta-hg@13
|
918 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@13
|
919 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@13
|
920 |
</syspropertyset>
|
franta-hg@13
|
921 |
<customize/>
|
franta-hg@13
|
922 |
</java>
|
franta-hg@13
|
923 |
</sequential>
|
franta-hg@13
|
924 |
</macrodef>
|
franta-hg@13
|
925 |
</target>
|
franta-hg@156
|
926 |
<target depends="-init-source-module-properties" if="unnamed.module.internal" name="-init-macrodef-java-with-unnamed-module">
|
franta-hg@13
|
927 |
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@156
|
928 |
<attribute default="" name="modulename"/>
|
franta-hg@13
|
929 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@156
|
930 |
<attribute default="${run.modulepath}" name="modulepath"/>
|
franta-hg@156
|
931 |
<attribute default="${run.upgrademodulepath}" name="upgrademodulepath"/>
|
franta-hg@156
|
932 |
<attribute default="${run.classpath}" name="classpath"/>
|
franta-hg@156
|
933 |
<attribute default="jvm" name="jvm"/>
|
franta-hg@156
|
934 |
<element name="customize" optional="true"/>
|
franta-hg@156
|
935 |
<sequential>
|
franta-hg@156
|
936 |
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
|
franta-hg@156
|
937 |
<classpath>
|
franta-hg@156
|
938 |
<path path="@{classpath}"/>
|
franta-hg@156
|
939 |
</classpath>
|
franta-hg@156
|
940 |
<modulepath>
|
franta-hg@156
|
941 |
<path path="@{modulepath}"/>
|
franta-hg@156
|
942 |
</modulepath>
|
franta-hg@156
|
943 |
<upgrademodulepath>
|
franta-hg@156
|
944 |
<path path="@{upgrademodulepath}"/>
|
franta-hg@156
|
945 |
</upgrademodulepath>
|
franta-hg@156
|
946 |
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
franta-hg@156
|
947 |
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
franta-hg@156
|
948 |
<jvmarg line="${run.jvmargs}"/>
|
franta-hg@156
|
949 |
<jvmarg line="${run.jvmargs.ide}"/>
|
franta-hg@156
|
950 |
<syspropertyset>
|
franta-hg@156
|
951 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@156
|
952 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@156
|
953 |
</syspropertyset>
|
franta-hg@156
|
954 |
<customize/>
|
franta-hg@156
|
955 |
</java>
|
franta-hg@156
|
956 |
</sequential>
|
franta-hg@156
|
957 |
</macrodef>
|
franta-hg@156
|
958 |
</target>
|
franta-hg@156
|
959 |
<target depends="-init-source-module-properties" name="-init-macrodef-java-without-module" unless="modules.supported.internal">
|
franta-hg@156
|
960 |
<macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@156
|
961 |
<attribute default="" name="modulename"/>
|
franta-hg@156
|
962 |
<attribute default="${main.class}" name="classname"/>
|
franta-hg@156
|
963 |
<attribute default="" name="modulepath"/>
|
franta-hg@13
|
964 |
<attribute default="${run.classpath}" name="classpath"/>
|
franta-hg@13
|
965 |
<attribute default="jvm" name="jvm"/>
|
franta-hg@13
|
966 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
967 |
<sequential>
|
franta-hg@151
|
968 |
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
|
franta-hg@13
|
969 |
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@13
|
970 |
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
|
franta-hg@13
|
971 |
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
|
franta-hg@13
|
972 |
<jvmarg line="${run.jvmargs}"/>
|
franta-hg@13
|
973 |
<jvmarg line="${run.jvmargs.ide}"/>
|
franta-hg@13
|
974 |
<classpath>
|
franta-hg@13
|
975 |
<path path="@{classpath}"/>
|
franta-hg@13
|
976 |
</classpath>
|
franta-hg@13
|
977 |
<syspropertyset>
|
franta-hg@13
|
978 |
<propertyref prefix="run-sys-prop."/>
|
franta-hg@13
|
979 |
<mapper from="run-sys-prop.*" to="*" type="glob"/>
|
franta-hg@13
|
980 |
</syspropertyset>
|
franta-hg@13
|
981 |
<customize/>
|
franta-hg@13
|
982 |
</java>
|
franta-hg@13
|
983 |
</sequential>
|
franta-hg@13
|
984 |
</macrodef>
|
franta-hg@13
|
985 |
</target>
|
franta-hg@156
|
986 |
<target depends="-init-macrodef-java-with-module, -init-macrodef-java-with-unnamed-module, -init-macrodef-java-without-module" name="-init-macrodef-java"/>
|
franta-hg@13
|
987 |
<target name="-init-macrodef-copylibs">
|
franta-hg@13
|
988 |
<macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
|
franta-hg@13
|
989 |
<attribute default="${manifest.file}" name="manifest"/>
|
franta-hg@13
|
990 |
<element name="customize" optional="true"/>
|
franta-hg@13
|
991 |
<sequential>
|
franta-hg@13
|
992 |
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
franta-hg@13
|
993 |
<pathconvert property="run.classpath.without.build.classes.dir">
|
franta-hg@13
|
994 |
<path path="${run.classpath}"/>
|
franta-hg@13
|
995 |
<map from="${build.classes.dir.resolved}" to=""/>
|
franta-hg@13
|
996 |
</pathconvert>
|
franta-hg@13
|
997 |
<pathconvert pathsep=" " property="jar.classpath">
|
franta-hg@13
|
998 |
<path path="${run.classpath.without.build.classes.dir}"/>
|
franta-hg@13
|
999 |
<chainedmapper>
|
franta-hg@13
|
1000 |
<flattenmapper/>
|
franta-hg@13
|
1001 |
<filtermapper>
|
franta-hg@13
|
1002 |
<replacestring from=" " to="%20"/>
|
franta-hg@13
|
1003 |
</filtermapper>
|
franta-hg@13
|
1004 |
<globmapper from="*" to="lib/*"/>
|
franta-hg@13
|
1005 |
</chainedmapper>
|
franta-hg@13
|
1006 |
</pathconvert>
|
franta-hg@13
|
1007 |
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
|
franta-hg@151
|
1008 |
<copylibs compress="${jar.compress}" excludeFromCopy="${copylibs.excludes}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" manifestencoding="UTF-8" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
|
franta-hg@151
|
1009 |
<fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
franta-hg@13
|
1010 |
<manifest>
|
franta-hg@13
|
1011 |
<attribute name="Class-Path" value="${jar.classpath}"/>
|
franta-hg@13
|
1012 |
<customize/>
|
franta-hg@13
|
1013 |
</manifest>
|
franta-hg@13
|
1014 |
</copylibs>
|
franta-hg@13
|
1015 |
</sequential>
|
franta-hg@13
|
1016 |
</macrodef>
|
franta-hg@13
|
1017 |
</target>
|
franta-hg@13
|
1018 |
<target name="-init-presetdef-jar">
|
franta-hg@13
|
1019 |
<presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
|
franta-hg@151
|
1020 |
<jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifestencoding="UTF-8">
|
franta-hg@151
|
1021 |
<j2seproject1:fileset dir="${build.classes.dir}" excludes="${dist.archive.excludes}"/>
|
franta-hg@13
|
1022 |
</jar>
|
franta-hg@13
|
1023 |
</presetdef>
|
franta-hg@13
|
1024 |
</target>
|
franta-hg@13
|
1025 |
<target name="-init-ap-cmdline-properties">
|
franta-hg@13
|
1026 |
<property name="annotation.processing.enabled" value="true"/>
|
franta-hg@13
|
1027 |
<property name="annotation.processing.processors.list" value=""/>
|
franta-hg@13
|
1028 |
<property name="annotation.processing.processor.options" value=""/>
|
franta-hg@13
|
1029 |
<property name="annotation.processing.run.all.processors" value="true"/>
|
franta-hg@13
|
1030 |
<property name="javac.processorpath" value="${javac.classpath}"/>
|
franta-hg@13
|
1031 |
<property name="javac.test.processorpath" value="${javac.test.classpath}"/>
|
franta-hg@13
|
1032 |
<condition property="ap.supported.internal" value="true">
|
franta-hg@13
|
1033 |
<not>
|
franta-hg@13
|
1034 |
<matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
|
franta-hg@13
|
1035 |
</not>
|
franta-hg@13
|
1036 |
</condition>
|
franta-hg@13
|
1037 |
</target>
|
franta-hg@13
|
1038 |
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
|
franta-hg@13
|
1039 |
<condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
|
franta-hg@13
|
1040 |
<isfalse value="${annotation.processing.run.all.processors}"/>
|
franta-hg@13
|
1041 |
</condition>
|
franta-hg@13
|
1042 |
<condition else="" property="ap.proc.none.internal" value="-proc:none">
|
franta-hg@13
|
1043 |
<isfalse value="${annotation.processing.enabled}"/>
|
franta-hg@13
|
1044 |
</condition>
|
franta-hg@13
|
1045 |
</target>
|
franta-hg@13
|
1046 |
<target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
|
franta-hg@13
|
1047 |
<property name="ap.cmd.line.internal" value=""/>
|
franta-hg@13
|
1048 |
</target>
|
franta-hg@13
|
1049 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
|
franta-hg@13
|
1050 |
<!--
|
franta-hg@13
|
1051 |
===================
|
franta-hg@13
|
1052 |
COMPILATION SECTION
|
franta-hg@13
|
1053 |
===================
|
franta-hg@13
|
1054 |
-->
|
franta-hg@13
|
1055 |
<target name="-deps-jar-init" unless="built-jar.properties">
|
franta-hg@13
|
1056 |
<property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
|
franta-hg@13
|
1057 |
<delete file="${built-jar.properties}" quiet="true"/>
|
franta-hg@13
|
1058 |
</target>
|
franta-hg@13
|
1059 |
<target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
|
franta-hg@13
|
1060 |
<echo level="warn" message="Cycle detected: dictionary-generator was already built"/>
|
franta-hg@13
|
1061 |
</target>
|
franta-hg@13
|
1062 |
<target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
|
franta-hg@13
|
1063 |
<mkdir dir="${build.dir}"/>
|
franta-hg@13
|
1064 |
<touch file="${built-jar.properties}" verbose="false"/>
|
franta-hg@13
|
1065 |
<property file="${built-jar.properties}" prefix="already.built.jar."/>
|
franta-hg@13
|
1066 |
<antcall target="-warn-already-built-jar"/>
|
franta-hg@13
|
1067 |
<propertyfile file="${built-jar.properties}">
|
franta-hg@13
|
1068 |
<entry key="${basedir}" value=""/>
|
franta-hg@13
|
1069 |
</propertyfile>
|
franta-hg@13
|
1070 |
</target>
|
franta-hg@13
|
1071 |
<target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
|
franta-hg@13
|
1072 |
<target depends="init" name="-check-automatic-build">
|
franta-hg@13
|
1073 |
<available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
|
franta-hg@13
|
1074 |
</target>
|
franta-hg@13
|
1075 |
<target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build">
|
franta-hg@156
|
1076 |
<antcall target="clean">
|
franta-hg@156
|
1077 |
<param name="no.dependencies" value="true"/>
|
franta-hg@156
|
1078 |
</antcall>
|
franta-hg@13
|
1079 |
</target>
|
franta-hg@13
|
1080 |
<target depends="init,deps-jar" name="-pre-pre-compile">
|
franta-hg@13
|
1081 |
<mkdir dir="${build.classes.dir}"/>
|
franta-hg@13
|
1082 |
</target>
|
franta-hg@13
|
1083 |
<target name="-pre-compile">
|
franta-hg@13
|
1084 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1085 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1086 |
</target>
|
franta-hg@13
|
1087 |
<target if="do.depend.true" name="-compile-depend">
|
franta-hg@13
|
1088 |
<pathconvert property="build.generated.subdirs">
|
franta-hg@13
|
1089 |
<dirset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
franta-hg@13
|
1090 |
<include name="*"/>
|
franta-hg@13
|
1091 |
</dirset>
|
franta-hg@13
|
1092 |
</pathconvert>
|
franta-hg@13
|
1093 |
<j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/>
|
franta-hg@13
|
1094 |
</target>
|
franta-hg@13
|
1095 |
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
|
franta-hg@13
|
1096 |
<j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
|
franta-hg@13
|
1097 |
<copy todir="${build.classes.dir}">
|
franta-hg@13
|
1098 |
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@13
|
1099 |
</copy>
|
franta-hg@13
|
1100 |
</target>
|
franta-hg@13
|
1101 |
<target if="has.persistence.xml" name="-copy-persistence-xml">
|
franta-hg@13
|
1102 |
<mkdir dir="${build.classes.dir}/META-INF"/>
|
franta-hg@13
|
1103 |
<copy todir="${build.classes.dir}/META-INF">
|
franta-hg@13
|
1104 |
<fileset dir="${meta.inf.dir}" includes="persistence.xml orm.xml"/>
|
franta-hg@13
|
1105 |
</copy>
|
franta-hg@13
|
1106 |
</target>
|
franta-hg@13
|
1107 |
<target name="-post-compile">
|
franta-hg@13
|
1108 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1109 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1110 |
</target>
|
franta-hg@13
|
1111 |
<target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
|
franta-hg@13
|
1112 |
<target name="-pre-compile-single">
|
franta-hg@13
|
1113 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1114 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1115 |
</target>
|
franta-hg@13
|
1116 |
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
|
franta-hg@13
|
1117 |
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
franta-hg@13
|
1118 |
<j2seproject3:force-recompile/>
|
franta-hg@156
|
1119 |
<j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}, module-info.java" sourcepath="${src.dir}"/>
|
franta-hg@13
|
1120 |
</target>
|
franta-hg@13
|
1121 |
<target name="-post-compile-single">
|
franta-hg@13
|
1122 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1123 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1124 |
</target>
|
franta-hg@13
|
1125 |
<target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
|
franta-hg@13
|
1126 |
<!--
|
franta-hg@13
|
1127 |
====================
|
franta-hg@13
|
1128 |
JAR BUILDING SECTION
|
franta-hg@13
|
1129 |
====================
|
franta-hg@13
|
1130 |
-->
|
franta-hg@13
|
1131 |
<target depends="init" name="-pre-pre-jar">
|
franta-hg@13
|
1132 |
<dirname file="${dist.jar}" property="dist.jar.dir"/>
|
franta-hg@13
|
1133 |
<mkdir dir="${dist.jar.dir}"/>
|
franta-hg@13
|
1134 |
</target>
|
franta-hg@13
|
1135 |
<target name="-pre-jar">
|
franta-hg@13
|
1136 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1137 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1138 |
</target>
|
franta-hg@156
|
1139 |
<target depends="init,compile" name="-check-module-main-class">
|
franta-hg@156
|
1140 |
<pathconvert property="main.class.file">
|
franta-hg@156
|
1141 |
<string value="${main.class}"/>
|
franta-hg@156
|
1142 |
<unpackagemapper from="*" to="*.class"/>
|
franta-hg@156
|
1143 |
</pathconvert>
|
franta-hg@156
|
1144 |
<condition property="do.module.main.class">
|
franta-hg@156
|
1145 |
<and>
|
franta-hg@156
|
1146 |
<isset property="main.class.available"/>
|
franta-hg@156
|
1147 |
<available file="${build.classes.dir}/module-info.class"/>
|
franta-hg@156
|
1148 |
<available file="${build.classes.dir}/${main.class.file}"/>
|
franta-hg@156
|
1149 |
<isset property="libs.CopyLibs.classpath"/>
|
franta-hg@156
|
1150 |
<available classname="org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath="${libs.CopyLibs.classpath}"/>
|
franta-hg@156
|
1151 |
</and>
|
franta-hg@156
|
1152 |
</condition>
|
franta-hg@156
|
1153 |
</target>
|
franta-hg@156
|
1154 |
<target depends="-check-module-main-class" if="do.module.main.class" name="-set-module-main-class">
|
franta-hg@156
|
1155 |
<taskdef classname="org.netbeans.modules.java.j2seproject.moduletask.ModuleMainClass" classpath="${libs.CopyLibs.classpath}" name="modulemainclass"/>
|
franta-hg@156
|
1156 |
<modulemainclass failonerror="false" mainclass="${main.class}" moduleinfo="${build.classes.dir}/module-info.class"/>
|
franta-hg@156
|
1157 |
</target>
|
franta-hg@151
|
1158 |
<target depends="init" if="do.archive" name="-do-jar-create-manifest" unless="manifest.available">
|
franta-hg@151
|
1159 |
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
franta-hg@151
|
1160 |
<touch file="${tmp.manifest.file}" verbose="false"/>
|
franta-hg@13
|
1161 |
</target>
|
franta-hg@151
|
1162 |
<target depends="init" if="do.archive+manifest.available" name="-do-jar-copy-manifest">
|
franta-hg@151
|
1163 |
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
|
franta-hg@151
|
1164 |
<copy encoding="${manifest.encoding}" file="${manifest.file}" outputencoding="UTF-8" tofile="${tmp.manifest.file}"/>
|
franta-hg@13
|
1165 |
</target>
|
franta-hg@151
|
1166 |
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+main.class.available" name="-do-jar-set-mainclass">
|
franta-hg@151
|
1167 |
<manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
|
franta-hg@151
|
1168 |
<attribute name="Main-Class" value="${main.class}"/>
|
franta-hg@151
|
1169 |
</manifest>
|
franta-hg@151
|
1170 |
</target>
|
franta-hg@151
|
1171 |
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+profile.available" name="-do-jar-set-profile">
|
franta-hg@151
|
1172 |
<manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
|
franta-hg@151
|
1173 |
<attribute name="Profile" value="${javac.profile}"/>
|
franta-hg@151
|
1174 |
</manifest>
|
franta-hg@151
|
1175 |
</target>
|
franta-hg@151
|
1176 |
<target depends="init,-do-jar-create-manifest,-do-jar-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-set-splashscreen">
|
franta-hg@151
|
1177 |
<basename file="${application.splash}" property="splashscreen.basename"/>
|
franta-hg@151
|
1178 |
<mkdir dir="${build.classes.dir}/META-INF"/>
|
franta-hg@151
|
1179 |
<copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
|
franta-hg@151
|
1180 |
<manifest encoding="UTF-8" file="${tmp.manifest.file}" mode="update">
|
franta-hg@151
|
1181 |
<attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
|
franta-hg@151
|
1182 |
</manifest>
|
franta-hg@151
|
1183 |
</target>
|
franta-hg@156
|
1184 |
<target depends="init,compile" name="-check-do-mkdist">
|
franta-hg@156
|
1185 |
<condition property="do.mkdist">
|
franta-hg@156
|
1186 |
<and>
|
franta-hg@156
|
1187 |
<isset property="do.archive"/>
|
franta-hg@156
|
1188 |
<isset property="libs.CopyLibs.classpath"/>
|
franta-hg@156
|
1189 |
<not>
|
franta-hg@156
|
1190 |
<istrue value="${mkdist.disabled}"/>
|
franta-hg@156
|
1191 |
</not>
|
franta-hg@156
|
1192 |
<not>
|
franta-hg@156
|
1193 |
<available file="${build.classes.dir}/module-info.class"/>
|
franta-hg@156
|
1194 |
</not>
|
franta-hg@156
|
1195 |
</and>
|
franta-hg@156
|
1196 |
</condition>
|
franta-hg@156
|
1197 |
</target>
|
franta-hg@156
|
1198 |
<target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-check-do-mkdist" if="do.mkdist" name="-do-jar-copylibs">
|
franta-hg@151
|
1199 |
<j2seproject3:copylibs manifest="${tmp.manifest.file}"/>
|
franta-hg@13
|
1200 |
<echo level="info">To run this application from the command line without Ant, try:</echo>
|
franta-hg@151
|
1201 |
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
franta-hg@151
|
1202 |
<echo level="info">java -jar "${dist.jar.resolved}"</echo>
|
franta-hg@151
|
1203 |
</target>
|
franta-hg@156
|
1204 |
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-check-do-mkdist" if="do.archive" name="-do-jar-jar" unless="do.mkdist">
|
franta-hg@151
|
1205 |
<j2seproject1:jar manifest="${tmp.manifest.file}"/>
|
franta-hg@13
|
1206 |
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
|
franta-hg@13
|
1207 |
<property location="${dist.jar}" name="dist.jar.resolved"/>
|
franta-hg@156
|
1208 |
<condition else="${dist.jar.resolved}" property="jar.usage.message.class.path.replacement" value="">
|
franta-hg@156
|
1209 |
<isset property="named.module.internal"/>
|
franta-hg@156
|
1210 |
</condition>
|
franta-hg@13
|
1211 |
<pathconvert property="run.classpath.with.dist.jar">
|
franta-hg@13
|
1212 |
<path path="${run.classpath}"/>
|
franta-hg@156
|
1213 |
<map from="${build.classes.dir.resolved}" to="${jar.usage.message.class.path.replacement}"/>
|
franta-hg@156
|
1214 |
</pathconvert>
|
franta-hg@156
|
1215 |
<pathconvert property="run.modulepath.with.dist.jar">
|
franta-hg@156
|
1216 |
<path location="${dist.jar.resolved}"/>
|
franta-hg@156
|
1217 |
<path path="${run.modulepath}"/>
|
franta-hg@13
|
1218 |
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/>
|
franta-hg@13
|
1219 |
</pathconvert>
|
franta-hg@156
|
1220 |
<condition else="${run.modulepath}" property="jar.usage.message.run.modulepath.with.dist.jar" value="${run.modulepath.with.dist.jar}">
|
franta-hg@156
|
1221 |
<isset property="named.module.internal"/>
|
franta-hg@156
|
1222 |
</condition>
|
franta-hg@156
|
1223 |
<condition else="" property="jar.usage.message.module.path" value=" -p ${jar.usage.message.run.modulepath.with.dist.jar}">
|
franta-hg@156
|
1224 |
<and>
|
franta-hg@156
|
1225 |
<isset property="modules.supported.internal"/>
|
franta-hg@156
|
1226 |
<length length="0" string="${jar.usage.message.run.modulepath.with.dist.jar}" when="greater"/>
|
franta-hg@156
|
1227 |
</and>
|
franta-hg@156
|
1228 |
</condition>
|
franta-hg@156
|
1229 |
<condition else="" property="jar.usage.message.class.path" value=" -cp ${run.classpath.with.dist.jar}">
|
franta-hg@156
|
1230 |
<length length="0" string="${run.classpath.with.dist.jar}" when="greater"/>
|
franta-hg@156
|
1231 |
</condition>
|
franta-hg@156
|
1232 |
<condition else="/${main.class}" property="jar.usage.message.main.class.class.selector" value="">
|
franta-hg@156
|
1233 |
<isset property="do.module.main.class"/>
|
franta-hg@156
|
1234 |
</condition>
|
franta-hg@156
|
1235 |
<condition else=" ${main.class}" property="jar.usage.message.main.class" value=" -m ${module.name}${jar.usage.message.main.class.class.selector}">
|
franta-hg@156
|
1236 |
<isset property="named.module.internal"/>
|
franta-hg@156
|
1237 |
</condition>
|
franta-hg@156
|
1238 |
<condition else="" property="jar.usage.message" value="To run this application from the command line without Ant, try:${line.separator}${platform.java}${jar.usage.message.module.path}${jar.usage.message.class.path}${jar.usage.message.main.class}">
|
franta-hg@151
|
1239 |
<isset property="main.class.available"/>
|
franta-hg@151
|
1240 |
</condition>
|
franta-hg@151
|
1241 |
<condition else="debug" property="jar.usage.level" value="info">
|
franta-hg@151
|
1242 |
<isset property="main.class.available"/>
|
franta-hg@151
|
1243 |
</condition>
|
franta-hg@151
|
1244 |
<echo level="${jar.usage.level}" message="${jar.usage.message}"/>
|
franta-hg@13
|
1245 |
</target>
|
franta-hg@151
|
1246 |
<target depends="-do-jar-copylibs" if="do.archive" name="-do-jar-delete-manifest">
|
franta-hg@13
|
1247 |
<delete>
|
franta-hg@13
|
1248 |
<fileset file="${tmp.manifest.file}"/>
|
franta-hg@13
|
1249 |
</delete>
|
franta-hg@13
|
1250 |
</target>
|
franta-hg@151
|
1251 |
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-jar,-do-jar-delete-manifest" name="-do-jar-without-libraries"/>
|
franta-hg@151
|
1252 |
<target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-create-manifest,-do-jar-copy-manifest,-do-jar-set-mainclass,-do-jar-set-profile,-do-jar-set-splashscreen,-do-jar-copylibs,-do-jar-delete-manifest" name="-do-jar-with-libraries"/>
|
franta-hg@13
|
1253 |
<target name="-post-jar">
|
franta-hg@13
|
1254 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1255 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1256 |
</target>
|
franta-hg@156
|
1257 |
<target depends="init,compile,-pre-jar,-set-module-main-class,-do-jar-without-libraries,-do-jar-with-libraries,-post-jar" name="-do-jar"/>
|
franta-hg@156
|
1258 |
<target depends="init,compile,-pre-jar,-do-jar,-post-jar,deploy" description="Build JAR." name="jar"/>
|
franta-hg@156
|
1259 |
<!--
|
franta-hg@156
|
1260 |
=================
|
franta-hg@156
|
1261 |
DEPLOY SECTION
|
franta-hg@156
|
1262 |
=================
|
franta-hg@156
|
1263 |
-->
|
franta-hg@156
|
1264 |
<target name="-pre-deploy">
|
franta-hg@156
|
1265 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@156
|
1266 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@156
|
1267 |
</target>
|
franta-hg@156
|
1268 |
<target depends="init" name="-check-jlink">
|
franta-hg@156
|
1269 |
<condition property="do.jlink.internal">
|
franta-hg@156
|
1270 |
<and>
|
franta-hg@156
|
1271 |
<istrue value="${do.jlink}"/>
|
franta-hg@156
|
1272 |
<isset property="do.archive"/>
|
franta-hg@156
|
1273 |
<isset property="named.module.internal"/>
|
franta-hg@156
|
1274 |
</and>
|
franta-hg@156
|
1275 |
</condition>
|
franta-hg@156
|
1276 |
</target>
|
franta-hg@156
|
1277 |
<target depends="init,-do-jar,-post-jar,-pre-deploy,-check-jlink" if="do.jlink.internal" name="-do-deploy">
|
franta-hg@156
|
1278 |
<delete dir="${dist.jlink.dir}" failonerror="false" quiet="true"/>
|
franta-hg@156
|
1279 |
<property name="jlink.launcher.name" value="${application.title}"/>
|
franta-hg@156
|
1280 |
<condition else="${module.name}" property="jlink.add.modules" value="${module.name},${jlink.additionalmodules}">
|
franta-hg@156
|
1281 |
<and>
|
franta-hg@156
|
1282 |
<isset property="jlink.additionalmodules"/>
|
franta-hg@156
|
1283 |
<length length="0" string="${jlink.additionalmodules}" when="greater"/>
|
franta-hg@156
|
1284 |
</and>
|
franta-hg@156
|
1285 |
</condition>
|
franta-hg@156
|
1286 |
<condition property="jlink.do.strip.internal">
|
franta-hg@156
|
1287 |
<and>
|
franta-hg@156
|
1288 |
<isset property="jlink.strip"/>
|
franta-hg@156
|
1289 |
<istrue value="${jlink.strip}"/>
|
franta-hg@156
|
1290 |
</and>
|
franta-hg@156
|
1291 |
</condition>
|
franta-hg@156
|
1292 |
<condition property="jlink.do.additionalparam.internal">
|
franta-hg@156
|
1293 |
<and>
|
franta-hg@156
|
1294 |
<isset property="jlink.additionalparam"/>
|
franta-hg@156
|
1295 |
<length length="0" string="${jlink.additionalparam}" when="greater"/>
|
franta-hg@156
|
1296 |
</and>
|
franta-hg@156
|
1297 |
</condition>
|
franta-hg@156
|
1298 |
<condition property="jlink.do.launcher.internal">
|
franta-hg@156
|
1299 |
<and>
|
franta-hg@156
|
1300 |
<istrue value="${jlink.launcher}"/>
|
franta-hg@156
|
1301 |
<isset property="main.class.available"/>
|
franta-hg@156
|
1302 |
</and>
|
franta-hg@156
|
1303 |
</condition>
|
franta-hg@156
|
1304 |
<property name="platform.jlink" value="${jdk.home}/bin/jlink"/>
|
franta-hg@156
|
1305 |
<property name="jlink.systemmodules.internal" value="${jdk.home}/jmods"/>
|
franta-hg@156
|
1306 |
<exec executable="${platform.jlink}">
|
franta-hg@156
|
1307 |
<arg value="--module-path"/>
|
franta-hg@156
|
1308 |
<arg path="${jlink.systemmodules.internal}:${run.modulepath}:${dist.jar}"/>
|
franta-hg@156
|
1309 |
<arg value="--add-modules"/>
|
franta-hg@156
|
1310 |
<arg value="${jlink.add.modules}"/>
|
franta-hg@156
|
1311 |
<arg if:set="jlink.do.strip.internal" value="--strip-debug"/>
|
franta-hg@156
|
1312 |
<arg if:set="jlink.do.launcher.internal" value="--launcher"/>
|
franta-hg@156
|
1313 |
<arg if:set="jlink.do.launcher.internal" value="${jlink.launcher.name}=${module.name}/${main.class}"/>
|
franta-hg@156
|
1314 |
<arg if:set="jlink.do.additionalparam.internal" line="${jlink.additionalparam}"/>
|
franta-hg@156
|
1315 |
<arg value="--output"/>
|
franta-hg@156
|
1316 |
<arg value="${dist.jlink.output}"/>
|
franta-hg@156
|
1317 |
</exec>
|
franta-hg@156
|
1318 |
</target>
|
franta-hg@156
|
1319 |
<target name="-post-deploy">
|
franta-hg@156
|
1320 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@156
|
1321 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@156
|
1322 |
</target>
|
franta-hg@156
|
1323 |
<target depends="-do-jar,-post-jar,-pre-deploy,-do-deploy,-post-deploy" name="deploy"/>
|
franta-hg@13
|
1324 |
<!--
|
franta-hg@13
|
1325 |
=================
|
franta-hg@13
|
1326 |
EXECUTION SECTION
|
franta-hg@13
|
1327 |
=================
|
franta-hg@13
|
1328 |
-->
|
franta-hg@13
|
1329 |
<target depends="init,compile" description="Run a main class." name="run">
|
franta-hg@13
|
1330 |
<j2seproject1:java>
|
franta-hg@13
|
1331 |
<customize>
|
franta-hg@13
|
1332 |
<arg line="${application.args}"/>
|
franta-hg@13
|
1333 |
</customize>
|
franta-hg@13
|
1334 |
</j2seproject1:java>
|
franta-hg@13
|
1335 |
</target>
|
franta-hg@13
|
1336 |
<target name="-do-not-recompile">
|
franta-hg@13
|
1337 |
<property name="javac.includes.binary" value=""/>
|
franta-hg@13
|
1338 |
</target>
|
franta-hg@13
|
1339 |
<target depends="init,compile-single" name="run-single">
|
franta-hg@13
|
1340 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
franta-hg@13
|
1341 |
<j2seproject1:java classname="${run.class}"/>
|
franta-hg@13
|
1342 |
</target>
|
franta-hg@13
|
1343 |
<target depends="init,compile-test-single" name="run-test-with-main">
|
franta-hg@13
|
1344 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
franta-hg@13
|
1345 |
<j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
|
franta-hg@13
|
1346 |
</target>
|
franta-hg@13
|
1347 |
<!--
|
franta-hg@13
|
1348 |
=================
|
franta-hg@13
|
1349 |
DEBUGGING SECTION
|
franta-hg@13
|
1350 |
=================
|
franta-hg@13
|
1351 |
-->
|
franta-hg@13
|
1352 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger">
|
franta-hg@13
|
1353 |
<j2seproject1:nbjpdastart name="${debug.class}"/>
|
franta-hg@13
|
1354 |
</target>
|
franta-hg@13
|
1355 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
|
franta-hg@13
|
1356 |
<j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
|
franta-hg@13
|
1357 |
</target>
|
franta-hg@13
|
1358 |
<target depends="init,compile" name="-debug-start-debuggee">
|
franta-hg@13
|
1359 |
<j2seproject3:debug>
|
franta-hg@156
|
1360 |
<customizeDebuggee>
|
franta-hg@13
|
1361 |
<arg line="${application.args}"/>
|
franta-hg@156
|
1362 |
</customizeDebuggee>
|
franta-hg@13
|
1363 |
</j2seproject3:debug>
|
franta-hg@13
|
1364 |
</target>
|
franta-hg@13
|
1365 |
<target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/>
|
franta-hg@13
|
1366 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto">
|
franta-hg@13
|
1367 |
<j2seproject1:nbjpdastart stopclassname="${main.class}"/>
|
franta-hg@13
|
1368 |
</target>
|
franta-hg@13
|
1369 |
<target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/>
|
franta-hg@13
|
1370 |
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
|
franta-hg@13
|
1371 |
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
franta-hg@13
|
1372 |
<j2seproject3:debug classname="${debug.class}"/>
|
franta-hg@13
|
1373 |
</target>
|
franta-hg@13
|
1374 |
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
|
franta-hg@13
|
1375 |
<target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
|
franta-hg@13
|
1376 |
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
|
franta-hg@13
|
1377 |
<j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
|
franta-hg@13
|
1378 |
</target>
|
franta-hg@13
|
1379 |
<target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
|
franta-hg@13
|
1380 |
<target depends="init" name="-pre-debug-fix">
|
franta-hg@13
|
1381 |
<fail unless="fix.includes">Must set fix.includes</fail>
|
franta-hg@13
|
1382 |
<property name="javac.includes" value="${fix.includes}.java"/>
|
franta-hg@13
|
1383 |
</target>
|
franta-hg@13
|
1384 |
<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
|
franta-hg@13
|
1385 |
<j2seproject1:nbjpdareload/>
|
franta-hg@13
|
1386 |
</target>
|
franta-hg@13
|
1387 |
<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
|
franta-hg@13
|
1388 |
<!--
|
franta-hg@13
|
1389 |
=================
|
franta-hg@13
|
1390 |
PROFILING SECTION
|
franta-hg@13
|
1391 |
=================
|
franta-hg@13
|
1392 |
-->
|
franta-hg@13
|
1393 |
<!--
|
franta-hg@13
|
1394 |
pre NB7.2 profiler integration
|
franta-hg@13
|
1395 |
-->
|
franta-hg@13
|
1396 |
<target depends="profile-init,compile" description="Profile a project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
|
franta-hg@13
|
1397 |
<fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
|
franta-hg@13
|
1398 |
<nbprofiledirect>
|
franta-hg@13
|
1399 |
<classpath>
|
franta-hg@13
|
1400 |
<path path="${run.classpath}"/>
|
franta-hg@13
|
1401 |
</classpath>
|
franta-hg@13
|
1402 |
</nbprofiledirect>
|
franta-hg@13
|
1403 |
<profile/>
|
franta-hg@13
|
1404 |
</target>
|
franta-hg@13
|
1405 |
<target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="profiler.info.jvmargs.agent" name="-profile-single-pre72">
|
franta-hg@13
|
1406 |
<fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
|
franta-hg@13
|
1407 |
<fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
|
franta-hg@13
|
1408 |
<nbprofiledirect>
|
franta-hg@13
|
1409 |
<classpath>
|
franta-hg@13
|
1410 |
<path path="${run.classpath}"/>
|
franta-hg@13
|
1411 |
</classpath>
|
franta-hg@13
|
1412 |
</nbprofiledirect>
|
franta-hg@13
|
1413 |
<profile classname="${profile.class}"/>
|
franta-hg@13
|
1414 |
</target>
|
franta-hg@13
|
1415 |
<target depends="profile-init,compile-single" if="profiler.info.jvmargs.agent" name="-profile-applet-pre72">
|
franta-hg@13
|
1416 |
<fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
|
franta-hg@13
|
1417 |
<nbprofiledirect>
|
franta-hg@13
|
1418 |
<classpath>
|
franta-hg@13
|
1419 |
<path path="${run.classpath}"/>
|
franta-hg@13
|
1420 |
</classpath>
|
franta-hg@13
|
1421 |
</nbprofiledirect>
|
franta-hg@13
|
1422 |
<profile classname="sun.applet.AppletViewer">
|
franta-hg@13
|
1423 |
<customize>
|
franta-hg@13
|
1424 |
<arg value="${applet.url}"/>
|
franta-hg@13
|
1425 |
</customize>
|
franta-hg@13
|
1426 |
</profile>
|
franta-hg@13
|
1427 |
</target>
|
franta-hg@156
|
1428 |
<target depends="-init-macrodef-junit,profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
|
franta-hg@13
|
1429 |
<fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
|
franta-hg@13
|
1430 |
<nbprofiledirect>
|
franta-hg@13
|
1431 |
<classpath>
|
franta-hg@13
|
1432 |
<path path="${run.test.classpath}"/>
|
franta-hg@13
|
1433 |
</classpath>
|
franta-hg@13
|
1434 |
</nbprofiledirect>
|
franta-hg@156
|
1435 |
<j2seproject3:junit excludes="${excludes}" includes="${includes}" testincludes="${profile.class}" testmethods="">
|
franta-hg@156
|
1436 |
<customize>
|
franta-hg@156
|
1437 |
<jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
|
franta-hg@156
|
1438 |
<env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
|
franta-hg@156
|
1439 |
<jvmarg value="${profiler.info.jvmargs.agent}"/>
|
franta-hg@156
|
1440 |
<jvmarg line="${profiler.info.jvmargs}"/>
|
franta-hg@156
|
1441 |
<classpath>
|
franta-hg@156
|
1442 |
<path path="${run.test.classpath}"/>
|
franta-hg@156
|
1443 |
</classpath>
|
franta-hg@156
|
1444 |
</customize>
|
franta-hg@156
|
1445 |
</j2seproject3:junit>
|
franta-hg@13
|
1446 |
</target>
|
franta-hg@13
|
1447 |
<!--
|
franta-hg@13
|
1448 |
end of pre NB72 profiling section
|
franta-hg@13
|
1449 |
-->
|
franta-hg@13
|
1450 |
<target if="netbeans.home" name="-profile-check">
|
franta-hg@13
|
1451 |
<condition property="profiler.configured">
|
franta-hg@13
|
1452 |
<or>
|
franta-hg@13
|
1453 |
<contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
|
franta-hg@13
|
1454 |
<contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
|
franta-hg@13
|
1455 |
</or>
|
franta-hg@13
|
1456 |
</condition>
|
franta-hg@13
|
1457 |
</target>
|
franta-hg@13
|
1458 |
<target depends="-profile-check,-profile-pre72" description="Profile a project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
|
franta-hg@13
|
1459 |
<startprofiler/>
|
franta-hg@13
|
1460 |
<antcall target="run"/>
|
franta-hg@13
|
1461 |
</target>
|
franta-hg@13
|
1462 |
<target depends="-profile-check,-profile-single-pre72" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-single" unless="profiler.info.jvmargs.agent">
|
franta-hg@13
|
1463 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
franta-hg@13
|
1464 |
<startprofiler/>
|
franta-hg@13
|
1465 |
<antcall target="run-single"/>
|
franta-hg@13
|
1466 |
</target>
|
franta-hg@13
|
1467 |
<target depends="-profile-test-single-pre72" description="Profile a selected test in the IDE." name="profile-test-single"/>
|
franta-hg@13
|
1468 |
<target depends="-profile-check" description="Profile a selected test in the IDE." if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs">
|
franta-hg@13
|
1469 |
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
franta-hg@13
|
1470 |
<startprofiler/>
|
franta-hg@13
|
1471 |
<antcall target="test-single"/>
|
franta-hg@13
|
1472 |
</target>
|
franta-hg@13
|
1473 |
<target depends="-profile-check" description="Profile a selected class in the IDE." if="profiler.configured" name="profile-test-with-main">
|
franta-hg@13
|
1474 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
|
franta-hg@13
|
1475 |
<startprofiler/>
|
franta-hg@151
|
1476 |
<antcall target="run-test-with-main"/>
|
franta-hg@13
|
1477 |
</target>
|
franta-hg@13
|
1478 |
<target depends="-profile-check,-profile-applet-pre72" if="profiler.configured" name="profile-applet" unless="profiler.info.jvmargs.agent">
|
franta-hg@13
|
1479 |
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
franta-hg@13
|
1480 |
<startprofiler/>
|
franta-hg@13
|
1481 |
<antcall target="run-applet"/>
|
franta-hg@13
|
1482 |
</target>
|
franta-hg@13
|
1483 |
<!--
|
franta-hg@13
|
1484 |
===============
|
franta-hg@13
|
1485 |
JAVADOC SECTION
|
franta-hg@13
|
1486 |
===============
|
franta-hg@13
|
1487 |
-->
|
franta-hg@13
|
1488 |
<target depends="init" if="have.sources" name="-javadoc-build">
|
franta-hg@13
|
1489 |
<mkdir dir="${dist.javadoc.dir}"/>
|
franta-hg@13
|
1490 |
<condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
|
franta-hg@13
|
1491 |
<and>
|
franta-hg@13
|
1492 |
<isset property="endorsed.classpath.cmd.line.arg"/>
|
franta-hg@13
|
1493 |
<not>
|
franta-hg@13
|
1494 |
<equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
|
franta-hg@13
|
1495 |
</not>
|
franta-hg@13
|
1496 |
</and>
|
franta-hg@13
|
1497 |
</condition>
|
franta-hg@151
|
1498 |
<condition else="" property="bug5101868workaround" value="*.java">
|
franta-hg@151
|
1499 |
<matches pattern="1\.[56](\..*)?" string="${java.version}"/>
|
franta-hg@151
|
1500 |
</condition>
|
franta-hg@156
|
1501 |
<condition else="" property="javadoc.html5.cmd.line.arg" value="-html5">
|
franta-hg@156
|
1502 |
<and>
|
franta-hg@156
|
1503 |
<isset property="javadoc.html5"/>
|
franta-hg@156
|
1504 |
<available file="${jdk.home}${file.separator}lib${file.separator}jrt-fs.jar"/>
|
franta-hg@156
|
1505 |
</and>
|
franta-hg@156
|
1506 |
</condition>
|
franta-hg@151
|
1507 |
<javadoc additionalparam="-J-Dfile.encoding=${file.encoding} ${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
|
franta-hg@13
|
1508 |
<classpath>
|
franta-hg@13
|
1509 |
<path path="${javac.classpath}"/>
|
franta-hg@13
|
1510 |
</classpath>
|
franta-hg@151
|
1511 |
<fileset dir="${src.dir}" excludes="${bug5101868workaround},${excludes}" includes="${includes}">
|
franta-hg@13
|
1512 |
<filename name="**/*.java"/>
|
franta-hg@13
|
1513 |
</fileset>
|
franta-hg@13
|
1514 |
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
franta-hg@13
|
1515 |
<include name="**/*.java"/>
|
franta-hg@13
|
1516 |
<exclude name="*.java"/>
|
franta-hg@13
|
1517 |
</fileset>
|
franta-hg@13
|
1518 |
<arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
|
franta-hg@156
|
1519 |
<arg line="${javadoc.html5.cmd.line.arg}"/>
|
franta-hg@13
|
1520 |
</javadoc>
|
franta-hg@13
|
1521 |
<copy todir="${dist.javadoc.dir}">
|
franta-hg@13
|
1522 |
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
|
franta-hg@13
|
1523 |
<filename name="**/doc-files/**"/>
|
franta-hg@13
|
1524 |
</fileset>
|
franta-hg@13
|
1525 |
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
|
franta-hg@13
|
1526 |
<include name="**/doc-files/**"/>
|
franta-hg@13
|
1527 |
</fileset>
|
franta-hg@13
|
1528 |
</copy>
|
franta-hg@13
|
1529 |
</target>
|
franta-hg@13
|
1530 |
<target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
|
franta-hg@13
|
1531 |
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
|
franta-hg@13
|
1532 |
</target>
|
franta-hg@13
|
1533 |
<target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/>
|
franta-hg@13
|
1534 |
<!--
|
franta-hg@13
|
1535 |
=========================
|
franta-hg@13
|
1536 |
TEST COMPILATION SECTION
|
franta-hg@13
|
1537 |
=========================
|
franta-hg@13
|
1538 |
-->
|
franta-hg@13
|
1539 |
<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
|
franta-hg@13
|
1540 |
<mkdir dir="${build.test.classes.dir}"/>
|
franta-hg@13
|
1541 |
</target>
|
franta-hg@13
|
1542 |
<target name="-pre-compile-test">
|
franta-hg@13
|
1543 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1544 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1545 |
</target>
|
franta-hg@156
|
1546 |
<target depends="-init-source-module-properties" if="named.module.internal" name="-init-test-javac-module-properties-with-module">
|
franta-hg@156
|
1547 |
<j2seproject3:modulename property="test.module.name" sourcepath="${test.src.dir}"/>
|
franta-hg@156
|
1548 |
<condition else="${empty.dir}" property="javac.test.sourcepath" value="${test.src.dir}">
|
franta-hg@156
|
1549 |
<and>
|
franta-hg@156
|
1550 |
<isset property="test.module.name"/>
|
franta-hg@156
|
1551 |
<length length="0" string="${test.module.name}" when="greater"/>
|
franta-hg@156
|
1552 |
</and>
|
franta-hg@156
|
1553 |
</condition>
|
franta-hg@156
|
1554 |
<condition else="--patch-module ${module.name}=${test.src.dir} --add-reads ${module.name}=ALL-UNNAMED" property="javac.test.compilerargs" value="--add-reads ${test.module.name}=ALL-UNNAMED">
|
franta-hg@156
|
1555 |
<and>
|
franta-hg@156
|
1556 |
<isset property="test.module.name"/>
|
franta-hg@156
|
1557 |
<length length="0" string="${test.module.name}" when="greater"/>
|
franta-hg@156
|
1558 |
</and>
|
franta-hg@156
|
1559 |
</condition>
|
franta-hg@156
|
1560 |
</target>
|
franta-hg@156
|
1561 |
<target depends="-init-source-module-properties" if="named.module.internal" name="-init-test-run-module-properties">
|
franta-hg@156
|
1562 |
<condition else="${module.name}" property="run.test.addexport.source.module.internal" value="${test.module.name}">
|
franta-hg@156
|
1563 |
<and>
|
franta-hg@156
|
1564 |
<isset property="test.module.name"/>
|
franta-hg@156
|
1565 |
<length length="0" string="${test.module.name}" when="greater"/>
|
franta-hg@156
|
1566 |
</and>
|
franta-hg@156
|
1567 |
</condition>
|
franta-hg@156
|
1568 |
<fileset dir="${build.test.classes.dir}" id="run.test.packages.internal" includes="**/*.class"/>
|
franta-hg@156
|
1569 |
<property location="${build.test.classes.dir}" name="build.test.classes.dir.abs.internal"/>
|
franta-hg@156
|
1570 |
<pathconvert pathsep=" " property="run.test.addexports.internal" refid="run.test.packages.internal">
|
franta-hg@156
|
1571 |
<chainedmapper>
|
franta-hg@156
|
1572 |
<regexpmapper from="^(.*)\Q${file.separator}\E.*\.class$$" to="\1"/>
|
franta-hg@156
|
1573 |
<filtermapper>
|
franta-hg@156
|
1574 |
<uniqfilter/>
|
franta-hg@156
|
1575 |
<replacestring from="${build.test.classes.dir.abs.internal}" to=""/>
|
franta-hg@156
|
1576 |
</filtermapper>
|
franta-hg@156
|
1577 |
<cutdirsmapper dirs="1"/>
|
franta-hg@156
|
1578 |
<packagemapper from="*" to="--add-exports ${run.test.addexport.source.module.internal}/*=ALL-UNNAMED"/>
|
franta-hg@156
|
1579 |
</chainedmapper>
|
franta-hg@156
|
1580 |
</pathconvert>
|
franta-hg@156
|
1581 |
<condition else="--patch-module ${module.name}=${build.test.classes.dir} --add-modules ${module.name} --add-reads ${module.name}=ALL-UNNAMED ${run.test.addexports.internal}" property="run.test.jvmargs" value="--add-modules ${test.module.name} --add-reads ${test.module.name}=ALL-UNNAMED ${run.test.addexports.internal}">
|
franta-hg@156
|
1582 |
<and>
|
franta-hg@156
|
1583 |
<isset property="test.module.name"/>
|
franta-hg@156
|
1584 |
<length length="0" string="${test.module.name}" when="greater"/>
|
franta-hg@156
|
1585 |
</and>
|
franta-hg@156
|
1586 |
</condition>
|
franta-hg@156
|
1587 |
</target>
|
franta-hg@156
|
1588 |
<target depends="-init-source-module-properties" name="-init-test-module-properties-without-module" unless="named.module.internal">
|
franta-hg@156
|
1589 |
<property name="javac.test.sourcepath" value="${empty.dir}"/>
|
franta-hg@156
|
1590 |
<property name="javac.test.compilerargs" value=""/>
|
franta-hg@156
|
1591 |
<property name="run.test.jvmargs" value=""/>
|
franta-hg@156
|
1592 |
</target>
|
franta-hg@156
|
1593 |
<target depends="-init-test-javac-module-properties-with-module,-init-test-module-properties-without-module" name="-init-test-module-properties"/>
|
franta-hg@13
|
1594 |
<target if="do.depend.true" name="-compile-test-depend">
|
franta-hg@13
|
1595 |
<j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
|
franta-hg@13
|
1596 |
</target>
|
franta-hg@156
|
1597 |
<target depends="init,deps-jar,compile,-init-test-module-properties,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
|
franta-hg@156
|
1598 |
<j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" modulepath="${javac.test.modulepath}" processorpath="${javac.test.processorpath}" sourcepath="${javac.test.sourcepath}" srcdir="${test.src.dir}">
|
franta-hg@156
|
1599 |
<customize>
|
franta-hg@156
|
1600 |
<compilerarg line="${javac.test.compilerargs}"/>
|
franta-hg@156
|
1601 |
</customize>
|
franta-hg@156
|
1602 |
</j2seproject3:javac>
|
franta-hg@13
|
1603 |
<copy todir="${build.test.classes.dir}">
|
franta-hg@13
|
1604 |
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@13
|
1605 |
</copy>
|
franta-hg@13
|
1606 |
</target>
|
franta-hg@13
|
1607 |
<target name="-post-compile-test">
|
franta-hg@13
|
1608 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1609 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1610 |
</target>
|
franta-hg@13
|
1611 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
|
franta-hg@13
|
1612 |
<target name="-pre-compile-test-single">
|
franta-hg@13
|
1613 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1614 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1615 |
</target>
|
franta-hg@156
|
1616 |
<target depends="init,deps-jar,compile,-init-test-module-properties,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
|
franta-hg@13
|
1617 |
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
|
franta-hg@13
|
1618 |
<j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
|
franta-hg@156
|
1619 |
<j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}, module-info.java" modulepath="${javac.test.modulepath}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}">
|
franta-hg@156
|
1620 |
<customize>
|
franta-hg@156
|
1621 |
<compilerarg line="${javac.test.compilerargs}"/>
|
franta-hg@156
|
1622 |
</customize>
|
franta-hg@156
|
1623 |
</j2seproject3:javac>
|
franta-hg@13
|
1624 |
<copy todir="${build.test.classes.dir}">
|
franta-hg@13
|
1625 |
<fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
|
franta-hg@13
|
1626 |
</copy>
|
franta-hg@13
|
1627 |
</target>
|
franta-hg@13
|
1628 |
<target name="-post-compile-test-single">
|
franta-hg@13
|
1629 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1630 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1631 |
</target>
|
franta-hg@13
|
1632 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
|
franta-hg@13
|
1633 |
<!--
|
franta-hg@13
|
1634 |
=======================
|
franta-hg@13
|
1635 |
TEST EXECUTION SECTION
|
franta-hg@13
|
1636 |
=======================
|
franta-hg@13
|
1637 |
-->
|
franta-hg@13
|
1638 |
<target depends="init" if="have.tests" name="-pre-test-run">
|
franta-hg@13
|
1639 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@13
|
1640 |
</target>
|
franta-hg@156
|
1641 |
<target depends="init,compile-test,-init-test-run-module-properties,-pre-test-run" if="have.tests" name="-do-test-run">
|
franta-hg@151
|
1642 |
<j2seproject3:test includes="${includes}" testincludes="**/*Test.java"/>
|
franta-hg@13
|
1643 |
</target>
|
franta-hg@13
|
1644 |
<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
|
franta-hg@13
|
1645 |
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
franta-hg@13
|
1646 |
</target>
|
franta-hg@13
|
1647 |
<target depends="init" if="have.tests" name="test-report"/>
|
franta-hg@13
|
1648 |
<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
|
franta-hg@13
|
1649 |
<target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
|
franta-hg@13
|
1650 |
<target depends="init" if="have.tests" name="-pre-test-run-single">
|
franta-hg@13
|
1651 |
<mkdir dir="${build.test.results.dir}"/>
|
franta-hg@13
|
1652 |
</target>
|
franta-hg@156
|
1653 |
<target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
|
franta-hg@13
|
1654 |
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
|
franta-hg@13
|
1655 |
<j2seproject3:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
|
franta-hg@13
|
1656 |
</target>
|
franta-hg@13
|
1657 |
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
|
franta-hg@13
|
1658 |
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
franta-hg@13
|
1659 |
</target>
|
franta-hg@156
|
1660 |
<target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
|
franta-hg@13
|
1661 |
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
|
franta-hg@13
|
1662 |
<fail unless="test.class">Must select some files in the IDE or set test.class</fail>
|
franta-hg@13
|
1663 |
<fail unless="test.method">Must select some method in the IDE or set test.method</fail>
|
franta-hg@13
|
1664 |
<j2seproject3:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
|
franta-hg@13
|
1665 |
</target>
|
franta-hg@13
|
1666 |
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
|
franta-hg@13
|
1667 |
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
|
franta-hg@13
|
1668 |
</target>
|
franta-hg@156
|
1669 |
<target depends="init,compile-test-single,-init-test-run-module-properties,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
|
franta-hg@13
|
1670 |
<!--
|
franta-hg@13
|
1671 |
=======================
|
franta-hg@13
|
1672 |
TEST DEBUGGING SECTION
|
franta-hg@13
|
1673 |
=======================
|
franta-hg@13
|
1674 |
-->
|
franta-hg@13
|
1675 |
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
|
franta-hg@13
|
1676 |
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
franta-hg@13
|
1677 |
<j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
|
franta-hg@13
|
1678 |
</target>
|
franta-hg@13
|
1679 |
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
|
franta-hg@13
|
1680 |
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
|
franta-hg@13
|
1681 |
<fail unless="test.method">Must select some method in the IDE or set test.method</fail>
|
franta-hg@13
|
1682 |
<j2seproject3:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
|
franta-hg@13
|
1683 |
</target>
|
franta-hg@13
|
1684 |
<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
|
franta-hg@13
|
1685 |
<j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
|
franta-hg@13
|
1686 |
</target>
|
franta-hg@156
|
1687 |
<target depends="init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
|
franta-hg@156
|
1688 |
<target depends="init,compile-test-single,-init-test-run-module-properties,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
|
franta-hg@156
|
1689 |
<target depends="debug-test-method" name="debug-single-method"/>
|
franta-hg@13
|
1690 |
<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
|
franta-hg@13
|
1691 |
<j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
|
franta-hg@13
|
1692 |
</target>
|
franta-hg@13
|
1693 |
<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
|
franta-hg@13
|
1694 |
<!--
|
franta-hg@13
|
1695 |
=========================
|
franta-hg@13
|
1696 |
APPLET EXECUTION SECTION
|
franta-hg@13
|
1697 |
=========================
|
franta-hg@13
|
1698 |
-->
|
franta-hg@13
|
1699 |
<target depends="init,compile-single" name="run-applet">
|
franta-hg@13
|
1700 |
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
franta-hg@13
|
1701 |
<j2seproject1:java classname="sun.applet.AppletViewer">
|
franta-hg@13
|
1702 |
<customize>
|
franta-hg@13
|
1703 |
<arg value="${applet.url}"/>
|
franta-hg@13
|
1704 |
</customize>
|
franta-hg@13
|
1705 |
</j2seproject1:java>
|
franta-hg@13
|
1706 |
</target>
|
franta-hg@13
|
1707 |
<!--
|
franta-hg@13
|
1708 |
=========================
|
franta-hg@13
|
1709 |
APPLET DEBUGGING SECTION
|
franta-hg@13
|
1710 |
=========================
|
franta-hg@13
|
1711 |
-->
|
franta-hg@13
|
1712 |
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet">
|
franta-hg@13
|
1713 |
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail>
|
franta-hg@13
|
1714 |
<j2seproject3:debug classname="sun.applet.AppletViewer">
|
franta-hg@156
|
1715 |
<customizeDebuggee>
|
franta-hg@13
|
1716 |
<arg value="${applet.url}"/>
|
franta-hg@156
|
1717 |
</customizeDebuggee>
|
franta-hg@13
|
1718 |
</j2seproject3:debug>
|
franta-hg@13
|
1719 |
</target>
|
franta-hg@13
|
1720 |
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/>
|
franta-hg@13
|
1721 |
<!--
|
franta-hg@13
|
1722 |
===============
|
franta-hg@13
|
1723 |
CLEANUP SECTION
|
franta-hg@13
|
1724 |
===============
|
franta-hg@13
|
1725 |
-->
|
franta-hg@13
|
1726 |
<target name="-deps-clean-init" unless="built-clean.properties">
|
franta-hg@13
|
1727 |
<property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
|
franta-hg@13
|
1728 |
<delete file="${built-clean.properties}" quiet="true"/>
|
franta-hg@13
|
1729 |
</target>
|
franta-hg@13
|
1730 |
<target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
|
franta-hg@13
|
1731 |
<echo level="warn" message="Cycle detected: dictionary-generator was already built"/>
|
franta-hg@13
|
1732 |
</target>
|
franta-hg@13
|
1733 |
<target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
|
franta-hg@13
|
1734 |
<mkdir dir="${build.dir}"/>
|
franta-hg@13
|
1735 |
<touch file="${built-clean.properties}" verbose="false"/>
|
franta-hg@13
|
1736 |
<property file="${built-clean.properties}" prefix="already.built.clean."/>
|
franta-hg@13
|
1737 |
<antcall target="-warn-already-built-clean"/>
|
franta-hg@13
|
1738 |
<propertyfile file="${built-clean.properties}">
|
franta-hg@13
|
1739 |
<entry key="${basedir}" value=""/>
|
franta-hg@13
|
1740 |
</propertyfile>
|
franta-hg@13
|
1741 |
</target>
|
franta-hg@13
|
1742 |
<target depends="init" name="-do-clean">
|
franta-hg@13
|
1743 |
<delete dir="${build.dir}"/>
|
franta-hg@156
|
1744 |
<delete dir="${dist.jlink.output}"/>
|
franta-hg@13
|
1745 |
<delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
|
franta-hg@13
|
1746 |
</target>
|
franta-hg@13
|
1747 |
<target name="-post-clean">
|
franta-hg@13
|
1748 |
<!-- Empty placeholder for easier customization. -->
|
franta-hg@13
|
1749 |
<!-- You can override this target in the ../build.xml file. -->
|
franta-hg@13
|
1750 |
</target>
|
franta-hg@13
|
1751 |
<target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
|
franta-hg@13
|
1752 |
<target name="-check-call-dep">
|
franta-hg@13
|
1753 |
<property file="${call.built.properties}" prefix="already.built."/>
|
franta-hg@13
|
1754 |
<condition property="should.call.dep">
|
franta-hg@13
|
1755 |
<and>
|
franta-hg@13
|
1756 |
<not>
|
franta-hg@13
|
1757 |
<isset property="already.built.${call.subproject}"/>
|
franta-hg@13
|
1758 |
</not>
|
franta-hg@13
|
1759 |
<available file="${call.script}"/>
|
franta-hg@13
|
1760 |
</and>
|
franta-hg@13
|
1761 |
</condition>
|
franta-hg@13
|
1762 |
</target>
|
franta-hg@13
|
1763 |
<target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
|
franta-hg@13
|
1764 |
<ant antfile="${call.script}" inheritall="false" target="${call.target}">
|
franta-hg@13
|
1765 |
<propertyset>
|
franta-hg@13
|
1766 |
<propertyref prefix="transfer."/>
|
franta-hg@13
|
1767 |
<mapper from="transfer.*" to="*" type="glob"/>
|
franta-hg@13
|
1768 |
</propertyset>
|
franta-hg@13
|
1769 |
</ant>
|
franta-hg@13
|
1770 |
</target>
|
franta-hg@13
|
1771 |
</project>
|