Mercurial > public > ssdtant
comparison nbproject/build-impl.xml @ 0:1918a6aed50a
Initial ant tasks for SSDT develkit
author | smith@nwoca.org |
---|---|
date | Sat, 16 Apr 2011 16:06:16 -0400 |
parents | |
children | 09f9f3d5c507 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1918a6aed50a |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <!-- | |
3 *** GENERATED FROM project.xml - DO NOT EDIT *** | |
4 *** EDIT ../build.xml INSTEAD *** | |
5 | |
6 For the purpose of easier reading the script | |
7 is divided into following sections: | |
8 | |
9 - initialization | |
10 - compilation | |
11 - jar | |
12 - execution | |
13 - debugging | |
14 - javadoc | |
15 - junit compilation | |
16 - junit execution | |
17 - junit debugging | |
18 - applet | |
19 - cleanup | |
20 | |
21 --> | |
22 <project 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" basedir=".." default="default" name="SSDT_Ant_Tasks-impl"> | |
23 <import file="groovy-build.xml"/> | |
24 <import file="ivy-impl.xml"/> | |
25 <fail message="Please build using Ant 1.7.1 or higher."> | |
26 <condition> | |
27 <not> | |
28 <antversion atleast="1.7.1"/> | |
29 </not> | |
30 </condition> | |
31 </fail> | |
32 <target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> | |
33 <!-- | |
34 ====================== | |
35 INITIALIZATION SECTION | |
36 ====================== | |
37 --> | |
38 <target name="-pre-init"> | |
39 <!-- Empty placeholder for easier customization. --> | |
40 <!-- You can override this target in the ../build.xml file. --> | |
41 </target> | |
42 <target depends="-pre-init" name="-init-private"> | |
43 <property file="nbproject/private/config.properties"/> | |
44 <property file="nbproject/private/configs/${config}.properties"/> | |
45 <property file="nbproject/private/private.properties"/> | |
46 </target> | |
47 <target depends="-pre-init,-init-private" name="-init-user"> | |
48 <property file="${user.properties.file}"/> | |
49 <!-- The two properties below are usually overridden --> | |
50 <!-- by the active platform. Just a fallback. --> | |
51 <property name="default.javac.source" value="1.4"/> | |
52 <property name="default.javac.target" value="1.4"/> | |
53 </target> | |
54 <target depends="-pre-init,-init-private,-init-user" name="-init-project"> | |
55 <property file="nbproject/configs/${config}.properties"/> | |
56 <property file="nbproject/project.properties"/> | |
57 </target> | |
58 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property,-ivy-retrieve" name="-do-init"> | |
59 <available file="${manifest.file}" property="manifest.available"/> | |
60 <available file="${application.splash}" property="splashscreen.available"/> | |
61 <condition property="main.class.available"> | |
62 <and> | |
63 <isset property="main.class"/> | |
64 <not> | |
65 <equals arg1="${main.class}" arg2="" trim="true"/> | |
66 </not> | |
67 </and> | |
68 </condition> | |
69 <condition property="manifest.available+main.class"> | |
70 <and> | |
71 <isset property="manifest.available"/> | |
72 <isset property="main.class.available"/> | |
73 </and> | |
74 </condition> | |
75 <condition property="do.mkdist"> | |
76 <and> | |
77 <isset property="libs.CopyLibs.classpath"/> | |
78 <not> | |
79 <istrue value="${mkdist.disabled}"/> | |
80 </not> | |
81 </and> | |
82 </condition> | |
83 <condition property="manifest.available+main.class+mkdist.available"> | |
84 <and> | |
85 <istrue value="${manifest.available+main.class}"/> | |
86 <isset property="do.mkdist"/> | |
87 </and> | |
88 </condition> | |
89 <condition property="manifest.available+main.class+mkdist.available+splashscreen.available"> | |
90 <and> | |
91 <istrue value="${manifest.available+main.class+mkdist.available}"/> | |
92 <istrue value="${splashscreen.available}"/> | |
93 </and> | |
94 </condition> | |
95 <condition property="do.archive"> | |
96 <not> | |
97 <istrue value="${jar.archive.disabled}"/> | |
98 </not> | |
99 </condition> | |
100 <condition property="do.archive+manifest.available"> | |
101 <and> | |
102 <isset property="manifest.available"/> | |
103 <istrue value="${do.archive}"/> | |
104 </and> | |
105 </condition> | |
106 <condition property="do.archive+manifest.available+main.class"> | |
107 <and> | |
108 <istrue value="${manifest.available+main.class}"/> | |
109 <istrue value="${do.archive}"/> | |
110 </and> | |
111 </condition> | |
112 <condition property="do.archive+manifest.available+main.class+mkdist.available"> | |
113 <and> | |
114 <istrue value="${manifest.available+main.class+mkdist.available}"/> | |
115 <istrue value="${do.archive}"/> | |
116 </and> | |
117 </condition> | |
118 <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available"> | |
119 <and> | |
120 <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/> | |
121 <istrue value="${do.archive}"/> | |
122 </and> | |
123 </condition> | |
124 <condition property="have.tests"> | |
125 <or> | |
126 <available file="${test.src.dir}"/> | |
127 </or> | |
128 </condition> | |
129 <condition property="have.sources"> | |
130 <or> | |
131 <available file="${src.dir}"/> | |
132 </or> | |
133 </condition> | |
134 <condition property="netbeans.home+have.tests"> | |
135 <and> | |
136 <isset property="netbeans.home"/> | |
137 <isset property="have.tests"/> | |
138 </and> | |
139 </condition> | |
140 <condition property="no.javadoc.preview"> | |
141 <and> | |
142 <isset property="javadoc.preview"/> | |
143 <isfalse value="${javadoc.preview}"/> | |
144 </and> | |
145 </condition> | |
146 <property name="run.jvmargs" value=""/> | |
147 <property name="javac.compilerargs" value=""/> | |
148 <property name="work.dir" value="${basedir}"/> | |
149 <condition property="no.deps"> | |
150 <and> | |
151 <istrue value="${no.dependencies}"/> | |
152 </and> | |
153 </condition> | |
154 <property name="javac.debug" value="true"/> | |
155 <property name="javadoc.preview" value="true"/> | |
156 <property name="application.args" value=""/> | |
157 <property name="source.encoding" value="${file.encoding}"/> | |
158 <property name="runtime.encoding" value="${source.encoding}"/> | |
159 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> | |
160 <and> | |
161 <isset property="javadoc.encoding"/> | |
162 <not> | |
163 <equals arg1="${javadoc.encoding}" arg2=""/> | |
164 </not> | |
165 </and> | |
166 </condition> | |
167 <property name="javadoc.encoding.used" value="${source.encoding}"/> | |
168 <property name="includes" value="**"/> | |
169 <property name="excludes" value=""/> | |
170 <property name="do.depend" value="false"/> | |
171 <condition property="do.depend.true"> | |
172 <istrue value="${do.depend}"/> | |
173 </condition> | |
174 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> | |
175 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> | |
176 <length length="0" string="${endorsed.classpath}" when="greater"/> | |
177 </condition> | |
178 <property name="javac.fork" value="false"/> | |
179 <property name="jar.index" value="false"/> | |
180 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> | |
181 </target> | |
182 <target name="-post-init"> | |
183 <!-- Empty placeholder for easier customization. --> | |
184 <!-- You can override this target in the ../build.xml file. --> | |
185 </target> | |
186 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check"> | |
187 <fail unless="src.dir">Must set src.dir</fail> | |
188 <fail unless="test.src.dir">Must set test.src.dir</fail> | |
189 <fail unless="build.dir">Must set build.dir</fail> | |
190 <fail unless="dist.dir">Must set dist.dir</fail> | |
191 <fail unless="build.classes.dir">Must set build.classes.dir</fail> | |
192 <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> | |
193 <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> | |
194 <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> | |
195 <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> | |
196 <fail unless="dist.jar">Must set dist.jar</fail> | |
197 </target> | |
198 <target name="-init-macrodef-property"> | |
199 <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
200 <attribute name="name"/> | |
201 <attribute name="value"/> | |
202 <sequential> | |
203 <property name="@{name}" value="${@{value}}"/> | |
204 </sequential> | |
205 </macrodef> | |
206 </target> | |
207 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> | |
208 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
209 <attribute default="${src.dir}" name="srcdir"/> | |
210 <attribute default="${build.classes.dir}" name="destdir"/> | |
211 <attribute default="${javac.classpath}" name="classpath"/> | |
212 <attribute default="${javac.processorpath}" name="processorpath"/> | |
213 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
214 <attribute default="${includes}" name="includes"/> | |
215 <attribute default="${excludes}" name="excludes"/> | |
216 <attribute default="${javac.debug}" name="debug"/> | |
217 <attribute default="${empty.dir}" name="sourcepath"/> | |
218 <attribute default="${empty.dir}" name="gensrcdir"/> | |
219 <element name="customize" optional="true"/> | |
220 <sequential> | |
221 <property location="${build.dir}/empty" name="empty.dir"/> | |
222 <mkdir dir="${empty.dir}"/> | |
223 <mkdir dir="@{apgeneratedsrcdir}"/> | |
224 <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}"> | |
225 <src> | |
226 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
227 <include name="*"/> | |
228 </dirset> | |
229 </src> | |
230 <classpath> | |
231 <path path="@{classpath}"/> | |
232 </classpath> | |
233 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
234 <compilerarg line="${javac.compilerargs}"/> | |
235 <compilerarg value="-processorpath"/> | |
236 <compilerarg path="@{processorpath}:${empty.dir}"/> | |
237 <compilerarg line="${ap.processors.internal}"/> | |
238 <compilerarg line="${annotation.processing.processor.options}"/> | |
239 <compilerarg value="-s"/> | |
240 <compilerarg path="@{apgeneratedsrcdir}"/> | |
241 <compilerarg line="${ap.proc.none.internal}"/> | |
242 <customize/> | |
243 </javac> | |
244 </sequential> | |
245 </macrodef> | |
246 </target> | |
247 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> | |
248 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
249 <attribute default="${src.dir}" name="srcdir"/> | |
250 <attribute default="${build.classes.dir}" name="destdir"/> | |
251 <attribute default="${javac.classpath}" name="classpath"/> | |
252 <attribute default="${javac.processorpath}" name="processorpath"/> | |
253 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
254 <attribute default="${includes}" name="includes"/> | |
255 <attribute default="${excludes}" name="excludes"/> | |
256 <attribute default="${javac.debug}" name="debug"/> | |
257 <attribute default="${empty.dir}" name="sourcepath"/> | |
258 <attribute default="${empty.dir}" name="gensrcdir"/> | |
259 <element name="customize" optional="true"/> | |
260 <sequential> | |
261 <property location="${build.dir}/empty" name="empty.dir"/> | |
262 <mkdir dir="${empty.dir}"/> | |
263 <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}"> | |
264 <src> | |
265 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
266 <include name="*"/> | |
267 </dirset> | |
268 </src> | |
269 <classpath> | |
270 <path path="@{classpath}"/> | |
271 </classpath> | |
272 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
273 <compilerarg line="${javac.compilerargs}"/> | |
274 <customize/> | |
275 </javac> | |
276 </sequential> | |
277 </macrodef> | |
278 </target> | |
279 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> | |
280 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
281 <attribute default="${src.dir}" name="srcdir"/> | |
282 <attribute default="${build.classes.dir}" name="destdir"/> | |
283 <attribute default="${javac.classpath}" name="classpath"/> | |
284 <sequential> | |
285 <depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> | |
286 <classpath> | |
287 <path path="@{classpath}"/> | |
288 </classpath> | |
289 </depend> | |
290 </sequential> | |
291 </macrodef> | |
292 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
293 <attribute default="${build.classes.dir}" name="destdir"/> | |
294 <sequential> | |
295 <fail unless="javac.includes">Must set javac.includes</fail> | |
296 <pathconvert pathsep="${line.separator}" property="javac.includes.binary"> | |
297 <path> | |
298 <filelist dir="@{destdir}" files="${javac.includes}"/> | |
299 </path> | |
300 <globmapper from="*.java" to="*.class"/> | |
301 </pathconvert> | |
302 <tempfile deleteonexit="true" property="javac.includesfile.binary"/> | |
303 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> | |
304 <delete> | |
305 <files includesfile="${javac.includesfile.binary}"/> | |
306 </delete> | |
307 <delete file="${javac.includesfile.binary}"/> | |
308 </sequential> | |
309 </macrodef> | |
310 </target> | |
311 <target name="-init-macrodef-junit"> | |
312 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
313 <attribute default="${includes}" name="includes"/> | |
314 <attribute default="${excludes}" name="excludes"/> | |
315 <attribute default="**" name="testincludes"/> | |
316 <sequential> | |
317 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" tempdir="${build.dir}"> | |
318 <batchtest todir="${build.test.results.dir}"> | |
319 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | |
320 <filename name="@{testincludes}"/> | |
321 </fileset> | |
322 </batchtest> | |
323 <classpath> | |
324 <path path="${run.test.classpath}"/> | |
325 </classpath> | |
326 <syspropertyset> | |
327 <propertyref prefix="test-sys-prop."/> | |
328 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
329 </syspropertyset> | |
330 <formatter type="brief" usefile="false"/> | |
331 <formatter type="xml"/> | |
332 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
333 <jvmarg line="${run.jvmargs}"/> | |
334 </junit> | |
335 </sequential> | |
336 </macrodef> | |
337 </target> | |
338 <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> | |
339 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
340 <attribute default="${main.class}" name="name"/> | |
341 <attribute default="${debug.classpath}" name="classpath"/> | |
342 <attribute default="" name="stopclassname"/> | |
343 <sequential> | |
344 <nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="${debug-transport}"> | |
345 <classpath> | |
346 <path path="@{classpath}"/> | |
347 </classpath> | |
348 </nbjpdastart> | |
349 </sequential> | |
350 </macrodef> | |
351 <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
352 <attribute default="${build.classes.dir}" name="dir"/> | |
353 <sequential> | |
354 <nbjpdareload> | |
355 <fileset dir="@{dir}" includes="${fix.classes}"> | |
356 <include name="${fix.includes}*.class"/> | |
357 </fileset> | |
358 </nbjpdareload> | |
359 </sequential> | |
360 </macrodef> | |
361 </target> | |
362 <target name="-init-debug-args"> | |
363 <property name="version-output" value="java version "${ant.java.version}"/> | |
364 <condition property="have-jdk-older-than-1.4"> | |
365 <or> | |
366 <contains string="${version-output}" substring="java version "1.0"/> | |
367 <contains string="${version-output}" substring="java version "1.1"/> | |
368 <contains string="${version-output}" substring="java version "1.2"/> | |
369 <contains string="${version-output}" substring="java version "1.3"/> | |
370 </or> | |
371 </condition> | |
372 <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> | |
373 <istrue value="${have-jdk-older-than-1.4}"/> | |
374 </condition> | |
375 <condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem"> | |
376 <os family="windows"/> | |
377 </condition> | |
378 <condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}"> | |
379 <isset property="debug.transport"/> | |
380 </condition> | |
381 </target> | |
382 <target depends="-init-debug-args" name="-init-macrodef-debug"> | |
383 <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
384 <attribute default="${main.class}" name="classname"/> | |
385 <attribute default="${debug.classpath}" name="classpath"/> | |
386 <element name="customize" optional="true"/> | |
387 <sequential> | |
388 <java classname="@{classname}" dir="${work.dir}" fork="true"> | |
389 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
390 <jvmarg line="${debug-args-line}"/> | |
391 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | |
392 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
393 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
394 <jvmarg line="${run.jvmargs}"/> | |
395 <classpath> | |
396 <path path="@{classpath}"/> | |
397 </classpath> | |
398 <syspropertyset> | |
399 <propertyref prefix="run-sys-prop."/> | |
400 <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
401 </syspropertyset> | |
402 <customize/> | |
403 </java> | |
404 </sequential> | |
405 </macrodef> | |
406 </target> | |
407 <target name="-init-macrodef-java"> | |
408 <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
409 <attribute default="${main.class}" name="classname"/> | |
410 <attribute default="${run.classpath}" name="classpath"/> | |
411 <element name="customize" optional="true"/> | |
412 <sequential> | |
413 <java classname="@{classname}" dir="${work.dir}" fork="true"> | |
414 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
415 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> | |
416 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
417 <jvmarg line="${run.jvmargs}"/> | |
418 <classpath> | |
419 <path path="@{classpath}"/> | |
420 </classpath> | |
421 <syspropertyset> | |
422 <propertyref prefix="run-sys-prop."/> | |
423 <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
424 </syspropertyset> | |
425 <customize/> | |
426 </java> | |
427 </sequential> | |
428 </macrodef> | |
429 </target> | |
430 <target name="-init-macrodef-copylibs"> | |
431 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
432 <element name="customize" optional="true"/> | |
433 <sequential> | |
434 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
435 <pathconvert property="run.classpath.without.build.classes.dir"> | |
436 <path path="${run.classpath}"/> | |
437 <map from="${build.classes.dir.resolved}" to=""/> | |
438 </pathconvert> | |
439 <pathconvert pathsep=" " property="jar.classpath"> | |
440 <path path="${run.classpath.without.build.classes.dir}"/> | |
441 <chainedmapper> | |
442 <flattenmapper/> | |
443 <globmapper from="*" to="lib/*"/> | |
444 </chainedmapper> | |
445 </pathconvert> | |
446 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | |
447 <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | |
448 <fileset dir="${build.classes.dir}"/> | |
449 <manifest> | |
450 <attribute name="Class-Path" value="${jar.classpath}"/> | |
451 <customize/> | |
452 </manifest> | |
453 </copylibs> | |
454 </sequential> | |
455 </macrodef> | |
456 </target> | |
457 <target name="-init-presetdef-jar"> | |
458 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> | |
459 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> | |
460 <j2seproject1:fileset dir="${build.classes.dir}"/> | |
461 </jar> | |
462 </presetdef> | |
463 </target> | |
464 <target name="-init-ap-cmdline-properties"> | |
465 <property name="annotation.processing.enabled" value="true"/> | |
466 <property name="annotation.processing.processors.list" value=""/> | |
467 <property name="annotation.processing.processor.options" value=""/> | |
468 <property name="annotation.processing.run.all.processors" value="true"/> | |
469 <property name="javac.processorpath" value="${javac.classpath}"/> | |
470 <property name="javac.test.processorpath" value="${javac.test.classpath}"/> | |
471 <condition property="ap.supported.internal" value="true"> | |
472 <not> | |
473 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> | |
474 </not> | |
475 </condition> | |
476 </target> | |
477 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> | |
478 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> | |
479 <isfalse value="${annotation.processing.run.all.processors}"/> | |
480 </condition> | |
481 <condition else="" property="ap.proc.none.internal" value="-proc:none"> | |
482 <isfalse value="${annotation.processing.enabled}"/> | |
483 </condition> | |
484 </target> | |
485 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> | |
486 <property name="ap.cmd.line.internal" value=""/> | |
487 </target> | |
488 <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/> | |
489 <!-- | |
490 =================== | |
491 COMPILATION SECTION | |
492 =================== | |
493 --> | |
494 <target name="-deps-jar-init" unless="built-jar.properties"> | |
495 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> | |
496 <delete file="${built-jar.properties}" quiet="true"/> | |
497 </target> | |
498 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> | |
499 <echo level="warn" message="Cycle detected: SSDT Ant Tasks was already built"/> | |
500 </target> | |
501 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> | |
502 <mkdir dir="${build.dir}"/> | |
503 <touch file="${built-jar.properties}" verbose="false"/> | |
504 <property file="${built-jar.properties}" prefix="already.built.jar."/> | |
505 <antcall target="-warn-already-built-jar"/> | |
506 <propertyfile file="${built-jar.properties}"> | |
507 <entry key="${basedir}" value=""/> | |
508 </propertyfile> | |
509 </target> | |
510 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> | |
511 <target depends="init" name="-check-automatic-build"> | |
512 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> | |
513 </target> | |
514 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> | |
515 <antcall target="clean"/> | |
516 </target> | |
517 <target depends="init,deps-jar,-groovy-init-macrodef-javac" name="-pre-pre-compile"> | |
518 <mkdir dir="${build.classes.dir}"/> | |
519 </target> | |
520 <target name="-pre-compile"> | |
521 <!-- Empty placeholder for easier customization. --> | |
522 <!-- You can override this target in the ../build.xml file. --> | |
523 </target> | |
524 <target if="do.depend.true" name="-compile-depend"> | |
525 <pathconvert property="build.generated.subdirs"> | |
526 <dirset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
527 <include name="*"/> | |
528 </dirset> | |
529 </pathconvert> | |
530 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> | |
531 </target> | |
532 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> | |
533 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> | |
534 <copy todir="${build.classes.dir}"> | |
535 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
536 </copy> | |
537 </target> | |
538 <target if="has.persistence.xml" name="-copy-persistence-xml"> | |
539 <mkdir dir="${build.classes.dir}/META-INF"/> | |
540 <copy todir="${build.classes.dir}/META-INF"> | |
541 <fileset dir="${meta.inf.dir}" includes="persistence.xml"/> | |
542 </copy> | |
543 </target> | |
544 <target name="-post-compile"> | |
545 <!-- Empty placeholder for easier customization. --> | |
546 <!-- You can override this target in the ../build.xml file. --> | |
547 </target> | |
548 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> | |
549 <target name="-pre-compile-single"> | |
550 <!-- Empty placeholder for easier customization. --> | |
551 <!-- You can override this target in the ../build.xml file. --> | |
552 </target> | |
553 <target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> | |
554 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
555 <j2seproject3:force-recompile/> | |
556 <j2seproject3:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}" sourcepath="${src.dir}"/> | |
557 </target> | |
558 <target name="-post-compile-single"> | |
559 <!-- Empty placeholder for easier customization. --> | |
560 <!-- You can override this target in the ../build.xml file. --> | |
561 </target> | |
562 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> | |
563 <!-- | |
564 ==================== | |
565 JAR BUILDING SECTION | |
566 ==================== | |
567 --> | |
568 <target depends="init" name="-pre-pre-jar"> | |
569 <dirname file="${dist.jar}" property="dist.jar.dir"/> | |
570 <mkdir dir="${dist.jar.dir}"/> | |
571 </target> | |
572 <target name="-pre-jar"> | |
573 <!-- Empty placeholder for easier customization. --> | |
574 <!-- You can override this target in the ../build.xml file. --> | |
575 </target> | |
576 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available"> | |
577 <j2seproject1:jar/> | |
578 </target> | |
579 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class"> | |
580 <j2seproject1:jar manifest="${manifest.file}"/> | |
581 </target> | |
582 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> | |
583 <j2seproject1:jar manifest="${manifest.file}"> | |
584 <j2seproject1:manifest> | |
585 <j2seproject1:attribute name="Main-Class" value="${main.class}"/> | |
586 </j2seproject1:manifest> | |
587 </j2seproject1:jar> | |
588 <echo>To run this application from the command line without Ant, try:</echo> | |
589 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
590 <property location="${dist.jar}" name="dist.jar.resolved"/> | |
591 <pathconvert property="run.classpath.with.dist.jar"> | |
592 <path path="${run.classpath}"/> | |
593 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> | |
594 </pathconvert> | |
595 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> | |
596 </target> | |
597 <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen"> | |
598 <basename file="${application.splash}" property="splashscreen.basename"/> | |
599 <mkdir dir="${build.classes.dir}/META-INF"/> | |
600 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> | |
601 <j2seproject3:copylibs> | |
602 <customize> | |
603 <attribute name="Main-Class" value="${main.class}"/> | |
604 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> | |
605 </customize> | |
606 </j2seproject3:copylibs> | |
607 <echo>To run this application from the command line without Ant, try:</echo> | |
608 <property location="${dist.jar}" name="dist.jar.resolved"/> | |
609 <echo>java -jar "${dist.jar.resolved}"</echo> | |
610 </target> | |
611 <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available"> | |
612 <j2seproject3:copylibs> | |
613 <customize> | |
614 <attribute name="Main-Class" value="${main.class}"/> | |
615 </customize> | |
616 </j2seproject3:copylibs> | |
617 <echo>To run this application from the command line without Ant, try:</echo> | |
618 <property location="${dist.jar}" name="dist.jar.resolved"/> | |
619 <echo>java -jar "${dist.jar.resolved}"</echo> | |
620 </target> | |
621 <target name="-post-jar"> | |
622 <!-- Empty placeholder for easier customization. --> | |
623 <!-- You can override this target in the ../build.xml file. --> | |
624 </target> | |
625 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar,-ivy-publish" description="Build JAR." name="jar"/> | |
626 <!-- | |
627 ================= | |
628 EXECUTION SECTION | |
629 ================= | |
630 --> | |
631 <target depends="init,compile" description="Run a main class." name="run"> | |
632 <j2seproject1:java> | |
633 <customize> | |
634 <arg line="${application.args}"/> | |
635 </customize> | |
636 </j2seproject1:java> | |
637 </target> | |
638 <target name="-do-not-recompile"> | |
639 <property name="javac.includes.binary" value=""/> | |
640 </target> | |
641 <target depends="init,compile-single" name="run-single"> | |
642 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
643 <j2seproject1:java classname="${run.class}"/> | |
644 </target> | |
645 <target depends="init,compile-test-single" name="run-test-with-main"> | |
646 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | |
647 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> | |
648 </target> | |
649 <!-- | |
650 ================= | |
651 DEBUGGING SECTION | |
652 ================= | |
653 --> | |
654 <target depends="init" if="netbeans.home" name="-debug-start-debugger"> | |
655 <j2seproject1:nbjpdastart name="${debug.class}"/> | |
656 </target> | |
657 <target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test"> | |
658 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/> | |
659 </target> | |
660 <target depends="init,compile" name="-debug-start-debuggee"> | |
661 <j2seproject3:debug> | |
662 <customize> | |
663 <arg line="${application.args}"/> | |
664 </customize> | |
665 </j2seproject3:debug> | |
666 </target> | |
667 <target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> | |
668 <target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> | |
669 <j2seproject1:nbjpdastart stopclassname="${main.class}"/> | |
670 </target> | |
671 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> | |
672 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> | |
673 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
674 <j2seproject3:debug classname="${debug.class}"/> | |
675 </target> | |
676 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> | |
677 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> | |
678 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | |
679 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> | |
680 </target> | |
681 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> | |
682 <target depends="init" name="-pre-debug-fix"> | |
683 <fail unless="fix.includes">Must set fix.includes</fail> | |
684 <property name="javac.includes" value="${fix.includes}.java"/> | |
685 </target> | |
686 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> | |
687 <j2seproject1:nbjpdareload/> | |
688 </target> | |
689 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> | |
690 <!-- | |
691 =============== | |
692 JAVADOC SECTION | |
693 =============== | |
694 --> | |
695 <target depends="init" if="have.sources" name="-javadoc-build"> | |
696 <mkdir dir="${dist.javadoc.dir}"/> | |
697 <javadoc additionalparam="${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}"> | |
698 <classpath> | |
699 <path path="${javac.classpath}"/> | |
700 </classpath> | |
701 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | |
702 <filename name="**/*.java"/> | |
703 </fileset> | |
704 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
705 <include name="**/*.java"/> | |
706 </fileset> | |
707 </javadoc> | |
708 <copy todir="${dist.javadoc.dir}"> | |
709 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | |
710 <filename name="**/doc-files/**"/> | |
711 </fileset> | |
712 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
713 <include name="**/doc-files/**"/> | |
714 </fileset> | |
715 </copy> | |
716 </target> | |
717 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> | |
718 <nbbrowse file="${dist.javadoc.dir}/index.html"/> | |
719 </target> | |
720 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> | |
721 <!-- | |
722 ========================= | |
723 JUNIT COMPILATION SECTION | |
724 ========================= | |
725 --> | |
726 <target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> | |
727 <mkdir dir="${build.test.classes.dir}"/> | |
728 </target> | |
729 <target name="-pre-compile-test"> | |
730 <!-- Empty placeholder for easier customization. --> | |
731 <!-- You can override this target in the ../build.xml file. --> | |
732 </target> | |
733 <target if="do.depend.true" name="-compile-test-depend"> | |
734 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | |
735 </target> | |
736 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> | |
737 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/> | |
738 <copy todir="${build.test.classes.dir}"> | |
739 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
740 </copy> | |
741 </target> | |
742 <target name="-post-compile-test"> | |
743 <!-- Empty placeholder for easier customization. --> | |
744 <!-- You can override this target in the ../build.xml file. --> | |
745 </target> | |
746 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> | |
747 <target name="-pre-compile-test-single"> | |
748 <!-- Empty placeholder for easier customization. --> | |
749 <!-- You can override this target in the ../build.xml file. --> | |
750 </target> | |
751 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> | |
752 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | |
753 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> | |
754 <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> | |
755 <copy todir="${build.test.classes.dir}"> | |
756 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | |
757 </copy> | |
758 </target> | |
759 <target name="-post-compile-test-single"> | |
760 <!-- Empty placeholder for easier customization. --> | |
761 <!-- You can override this target in the ../build.xml file. --> | |
762 </target> | |
763 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> | |
764 <!-- | |
765 ======================= | |
766 JUNIT EXECUTION SECTION | |
767 ======================= | |
768 --> | |
769 <target depends="init" if="have.tests" name="-pre-test-run"> | |
770 <mkdir dir="${build.test.results.dir}"/> | |
771 </target> | |
772 <target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> | |
773 <j2seproject3:junit testincludes="**/*Test.java"/> | |
774 </target> | |
775 <target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> | |
776 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
777 </target> | |
778 <target depends="init" if="have.tests" name="test-report"/> | |
779 <target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> | |
780 <target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> | |
781 <target depends="init" if="have.tests" name="-pre-test-run-single"> | |
782 <mkdir dir="${build.test.results.dir}"/> | |
783 </target> | |
784 <target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> | |
785 <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> | |
786 <j2seproject3:junit excludes="" includes="${test.includes}"/> | |
787 </target> | |
788 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> | |
789 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | |
790 </target> | |
791 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/> | |
792 <!-- | |
793 ======================= | |
794 JUNIT DEBUGGING SECTION | |
795 ======================= | |
796 --> | |
797 <target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> | |
798 <fail unless="test.class">Must select one file in the IDE or set test.class</fail> | |
799 <property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> | |
800 <delete file="${test.report.file}"/> | |
801 <mkdir dir="${build.test.results.dir}"/> | |
802 <j2seproject3:debug classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner" classpath="${ant.home}/lib/ant.jar:${ant.home}/lib/ant-junit.jar:${debug.test.classpath}"> | |
803 <customize> | |
804 <syspropertyset> | |
805 <propertyref prefix="test-sys-prop."/> | |
806 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
807 </syspropertyset> | |
808 <arg value="${test.class}"/> | |
809 <arg value="showoutput=true"/> | |
810 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> | |
811 <arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> | |
812 </customize> | |
813 </j2seproject3:debug> | |
814 </target> | |
815 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> | |
816 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> | |
817 </target> | |
818 <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> | |
819 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> | |
820 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> | |
821 </target> | |
822 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> | |
823 <!-- | |
824 ========================= | |
825 APPLET EXECUTION SECTION | |
826 ========================= | |
827 --> | |
828 <target depends="init,compile-single" name="run-applet"> | |
829 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
830 <j2seproject1:java classname="sun.applet.AppletViewer"> | |
831 <customize> | |
832 <arg value="${applet.url}"/> | |
833 </customize> | |
834 </j2seproject1:java> | |
835 </target> | |
836 <!-- | |
837 ========================= | |
838 APPLET DEBUGGING SECTION | |
839 ========================= | |
840 --> | |
841 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> | |
842 <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> | |
843 <j2seproject3:debug classname="sun.applet.AppletViewer"> | |
844 <customize> | |
845 <arg value="${applet.url}"/> | |
846 </customize> | |
847 </j2seproject3:debug> | |
848 </target> | |
849 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> | |
850 <!-- | |
851 =============== | |
852 CLEANUP SECTION | |
853 =============== | |
854 --> | |
855 <target name="-deps-clean-init" unless="built-clean.properties"> | |
856 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> | |
857 <delete file="${built-clean.properties}" quiet="true"/> | |
858 </target> | |
859 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> | |
860 <echo level="warn" message="Cycle detected: SSDT Ant Tasks was already built"/> | |
861 </target> | |
862 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> | |
863 <mkdir dir="${build.dir}"/> | |
864 <touch file="${built-clean.properties}" verbose="false"/> | |
865 <property file="${built-clean.properties}" prefix="already.built.clean."/> | |
866 <antcall target="-warn-already-built-clean"/> | |
867 <propertyfile file="${built-clean.properties}"> | |
868 <entry key="${basedir}" value=""/> | |
869 </propertyfile> | |
870 </target> | |
871 <target depends="init" name="-do-clean"> | |
872 <delete dir="${build.dir}"/> | |
873 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> | |
874 </target> | |
875 <target depends="-ivy-clean" name="-post-clean"> | |
876 <!-- Empty placeholder for easier customization. --> | |
877 <!-- You can override this target in the ../build.xml file. --> | |
878 </target> | |
879 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> | |
880 <target name="-check-call-dep"> | |
881 <property file="${call.built.properties}" prefix="already.built."/> | |
882 <condition property="should.call.dep"> | |
883 <not> | |
884 <isset property="already.built.${call.subproject}"/> | |
885 </not> | |
886 </condition> | |
887 </target> | |
888 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> | |
889 <ant antfile="${call.script}" inheritall="false" target="${call.target}"> | |
890 <propertyset> | |
891 <propertyref prefix="transfer."/> | |
892 <mapper from="transfer.*" to="*" type="glob"/> | |
893 </propertyset> | |
894 </ant> | |
895 </target> | |
896 </project> |