author | wenzelm |
Sat, 22 Nov 2008 00:51:27 +0100 | |
changeset 34381 | a94d2fb96fd5 |
parent 34380 | b74b5e0ff66a |
child 34536 | f0df6a866aa7 |
permissions | -rw-r--r-- |
34320 | 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:jaxrpc="http://www.netbeans.org/ns/scala-project/jax-rpc" xmlns:scalaProject1="http://www.netbeans.org/ns/scala-project/1" basedir=".." default="default" name="Isabelle-jEdit-impl"> |
|
23 |
<target depends="test,jar,javadoc" description="Build and test whole project." name="default"/> |
|
24 |
<!-- |
|
25 |
====================== |
|
26 |
INITIALIZATION SECTION |
|
27 |
====================== |
|
28 |
--> |
|
29 |
<target name="-pre-init"> |
|
30 |
<!-- Empty placeholder for easier customization. --> |
|
31 |
<!-- You can override this target in the ../build.xml file. --> |
|
32 |
</target> |
|
33 |
<target depends="-pre-init" name="-init-private"> |
|
34 |
<property file="nbproject/private/config.properties"/> |
|
35 |
<property file="nbproject/private/configs/${config}.properties"/> |
|
36 |
<property file="nbproject/private/private.properties"/> |
|
37 |
<property environment="env"/> |
|
38 |
<condition property="scala.home" value="${env.SCALA_HOME}"> |
|
39 |
<isset property="env.SCALA_HOME"/> |
|
40 |
</condition> |
|
41 |
<fail unless="scala.home"> |
|
42 |
You must set SCALA_HOME or environment property and append "-J-Dscala.home=scalahomepath" |
|
43 |
property to the end of "netbeans_default_options" in NetBeansInstallationPath/etc/netbeans.conf to point to |
|
44 |
Scala installation directory. |
|
45 |
</fail> |
|
46 |
<property name="scala.compiler" value="${scala.home}/lib/scala-compiler.jar"/> |
|
47 |
<property name="scala.library" value="${scala.home}/lib/scala-library.jar"/> |
|
34380
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
48 |
<property name="scala.lib" value="${scala.home}/lib"/> |
34320 | 49 |
<taskdef resource="scala/tools/ant/antlib.xml"> |
50 |
<classpath> |
|
51 |
<pathelement location="${scala.compiler}"/> |
|
52 |
<pathelement location="${scala.library}"/> |
|
53 |
</classpath> |
|
54 |
</taskdef> |
|
55 |
</target> |
|
56 |
<target depends="-pre-init,-init-private" name="-init-user"> |
|
57 |
<property file="${user.properties.file}"/> |
|
58 |
<!-- The two properties below are usually overridden --> |
|
59 |
<!-- by the active platform. Just a fallback. --> |
|
60 |
<property name="default.javac.source" value="1.4"/> |
|
61 |
<property name="default.javac.target" value="1.4"/> |
|
62 |
</target> |
|
63 |
<target depends="-pre-init,-init-private,-init-user" name="-init-project"> |
|
64 |
<property file="nbproject/configs/${config}.properties"/> |
|
65 |
<property file="nbproject/project.properties"/> |
|
66 |
</target> |
|
67 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> |
|
68 |
<available file="${manifest.file}" property="manifest.available"/> |
|
69 |
<condition property="manifest.available+main.class"> |
|
70 |
<and> |
|
71 |
<isset property="manifest.available"/> |
|
72 |
<isset property="main.class"/> |
|
73 |
<not> |
|
74 |
<equals arg1="${main.class}" arg2="" trim="true"/> |
|
75 |
</not> |
|
76 |
</and> |
|
77 |
</condition> |
|
78 |
<condition property="manifest.available+main.class+mkdist.available"> |
|
79 |
<and> |
|
80 |
<istrue value="${manifest.available+main.class}"/> |
|
81 |
<isset property="libs.CopyLibs.classpath"/> |
|
82 |
</and> |
|
83 |
</condition> |
|
84 |
<condition property="have.tests"> |
|
85 |
<or/> |
|
86 |
</condition> |
|
87 |
<condition property="have.sources"> |
|
88 |
<or> |
|
89 |
<available file="${src.dir}"/> |
|
90 |
</or> |
|
91 |
</condition> |
|
92 |
<condition property="netbeans.home+have.tests"> |
|
93 |
<and> |
|
94 |
<isset property="netbeans.home"/> |
|
95 |
<isset property="have.tests"/> |
|
96 |
</and> |
|
97 |
</condition> |
|
98 |
<condition property="no.javadoc.preview"> |
|
99 |
<and> |
|
100 |
<isset property="javadoc.preview"/> |
|
101 |
<isfalse value="${javadoc.preview}"/> |
|
102 |
</and> |
|
103 |
</condition> |
|
104 |
<property name="run.jvmargs" value=""/> |
|
105 |
<property name="javac.compilerargs" value=""/> |
|
106 |
<property name="work.dir" value="${basedir}"/> |
|
107 |
<condition property="no.deps"> |
|
108 |
<and> |
|
109 |
<istrue value="${no.dependencies}"/> |
|
110 |
</and> |
|
111 |
</condition> |
|
112 |
<property name="javac.debug" value="true"/> |
|
113 |
<property name="javadoc.preview" value="true"/> |
|
114 |
<property name="application.args" value=""/> |
|
115 |
<property name="source.encoding" value="${file.encoding}"/> |
|
116 |
<condition property="javadoc.encoding.used" value="${javadoc.encoding}"> |
|
117 |
<and> |
|
118 |
<isset property="javadoc.encoding"/> |
|
119 |
<not> |
|
120 |
<equals arg1="${javadoc.encoding}" arg2=""/> |
|
121 |
</not> |
|
122 |
</and> |
|
123 |
</condition> |
|
124 |
<property name="javadoc.encoding.used" value="${source.encoding}"/> |
|
125 |
<property name="includes" value="**"/> |
|
126 |
<property name="excludes" value=""/> |
|
127 |
<property name="do.depend" value="false"/> |
|
128 |
<condition property="do.depend.true"> |
|
129 |
<istrue value="${do.depend}"/> |
|
130 |
</condition> |
|
131 |
<condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"> |
|
132 |
<and> |
|
133 |
<isset property="jaxws.endorsed.dir"/> |
|
134 |
<available file="nbproject/jaxws-build.xml"/> |
|
135 |
</and> |
|
136 |
</condition> |
|
137 |
</target> |
|
138 |
<target name="-post-init"> |
|
139 |
<!-- Empty placeholder for easier customization. --> |
|
140 |
<!-- You can override this target in the ../build.xml file. --> |
|
141 |
</target> |
|
142 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init" name="-init-check"> |
|
143 |
<fail unless="src.dir">Must set src.dir</fail> |
|
144 |
<fail unless="build.dir">Must set build.dir</fail> |
|
145 |
<fail unless="dist.dir">Must set dist.dir</fail> |
|
146 |
<fail unless="build.classes.dir">Must set build.classes.dir</fail> |
|
147 |
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> |
|
148 |
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> |
|
149 |
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail> |
|
150 |
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail> |
|
151 |
<fail unless="dist.jar">Must set dist.jar</fail> |
|
152 |
</target> |
|
153 |
<target name="-init-macrodef-property"> |
|
154 |
<macrodef name="property" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
155 |
<attribute name="name"/> |
|
156 |
<attribute name="value"/> |
|
157 |
<sequential> |
|
158 |
<property name="@{name}" value="${@{value}}"/> |
|
159 |
</sequential> |
|
160 |
</macrodef> |
|
161 |
</target> |
|
162 |
<target name="-init-macrodef-javac"> |
|
163 |
<macrodef name="javac" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
164 |
<attribute default="${src.dir}" name="srcdir"/> |
|
165 |
<attribute default="${build.classes.dir}" name="destdir"/> |
|
166 |
<attribute default="${javac.classpath}" name="classpath"/> |
|
167 |
<attribute default="${includes}" name="includes"/> |
|
168 |
<attribute default="${excludes}" name="excludes"/> |
|
169 |
<attribute default="${javac.debug}" name="debug"/> |
|
170 |
<attribute default="" name="sourcepath"/> |
|
171 |
<element name="customize" optional="true"/> |
|
172 |
<sequential> |
|
173 |
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}"> |
|
174 |
<classpath> |
|
175 |
<path path="@{classpath}"/> |
|
176 |
</classpath> |
|
177 |
<compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> |
|
178 |
<customize/> |
|
179 |
</javac> |
|
180 |
</sequential> |
|
181 |
</macrodef> |
|
182 |
<macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
183 |
<attribute default="${src.dir}" name="srcdir"/> |
|
184 |
<attribute default="${build.classes.dir}" name="destdir"/> |
|
185 |
<attribute default="${javac.classpath}" name="classpath"/> |
|
186 |
<sequential> |
|
187 |
<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> |
|
188 |
<classpath> |
|
189 |
<path path="@{classpath}"/> |
|
190 |
</classpath> |
|
191 |
</depend> |
|
192 |
</sequential> |
|
193 |
</macrodef> |
|
194 |
<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
195 |
<attribute default="${build.classes.dir}" name="destdir"/> |
|
196 |
<sequential> |
|
197 |
<fail unless="javac.includes">Must set javac.includes</fail> |
|
198 |
<pathconvert pathsep="," property="javac.includes.binary"> |
|
199 |
<path> |
|
200 |
<filelist dir="@{destdir}" files="${javac.includes}"/> |
|
201 |
</path> |
|
202 |
<globmapper from="*.java" to="*.class"/> |
|
203 |
</pathconvert> |
|
204 |
<delete> |
|
205 |
<files includes="${javac.includes.binary}"/> |
|
206 |
</delete> |
|
207 |
</sequential> |
|
208 |
</macrodef> |
|
209 |
</target> |
|
210 |
<target name="-init-macrodef-scalac"> |
|
211 |
<macrodef name="scalac" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
212 |
<attribute default="${src.dir}" name="srcdir"/> |
|
213 |
<attribute default="${build.classes.dir}" name="destdir"/> |
|
214 |
<attribute default="${javac.classpath}" name="classpath"/> |
|
215 |
<attribute default="${includes}" name="includes"/> |
|
216 |
<attribute default="${excludes}" name="excludes"/> |
|
217 |
<attribute default="jvm-${javac.debug}" name="debug"/> |
|
34380
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
218 |
<attribute default="${javac.compilerargs}" name="addparams"/> |
34320 | 219 |
<attribute default="" name="sourcepath"/> |
220 |
<element name="customize" optional="true"/> |
|
221 |
<sequential> |
|
34380
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
222 |
<scalac addparams="@{addparams}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includes="@{includes}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="jvm-${javac.target}"> |
34320 | 223 |
<classpath> |
224 |
<path path="@{classpath}"/> |
|
34380
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
225 |
<fileset dir="${scala.lib}"> |
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
226 |
<include name="**/*.jar"/> |
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
227 |
</fileset> |
34320 | 228 |
</classpath> |
229 |
<customize/> |
|
230 |
</scalac> |
|
231 |
</sequential> |
|
232 |
</macrodef> |
|
233 |
<macrodef name="depend" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
234 |
<attribute default="${src.dir}" name="srcdir"/> |
|
235 |
<attribute default="${build.classes.dir}" name="destdir"/> |
|
236 |
<attribute default="${javac.classpath}" name="classpath"/> |
|
237 |
<sequential> |
|
238 |
<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}"> |
|
239 |
<classpath> |
|
240 |
<path path="@{classpath}"/> |
|
241 |
</classpath> |
|
242 |
</depend> |
|
243 |
</sequential> |
|
244 |
</macrodef> |
|
245 |
<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
246 |
<attribute default="${build.classes.dir}" name="destdir"/> |
|
247 |
<sequential> |
|
248 |
<fail unless="javac.includes">Must set javac.includes</fail> |
|
249 |
<pathconvert pathsep="," property="javac.includes.binary"> |
|
250 |
<path> |
|
251 |
<filelist dir="@{destdir}" files="${javac.includes}"/> |
|
252 |
</path> |
|
253 |
<globmapper from="*.scala" to="*.class"/> |
|
254 |
</pathconvert> |
|
255 |
<delete> |
|
256 |
<files includes="${javac.includes.binary}"/> |
|
257 |
</delete> |
|
258 |
</sequential> |
|
259 |
</macrodef> |
|
260 |
</target> |
|
261 |
<target name="-init-macrodef-junit"> |
|
262 |
<macrodef name="junit" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
263 |
<attribute default="${includes}" name="includes"/> |
|
264 |
<attribute default="${excludes}" name="excludes"/> |
|
265 |
<attribute default="**" name="testincludes"/> |
|
266 |
<sequential> |
|
267 |
<junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> |
|
268 |
<batchtest todir="${build.test.results.dir}"> |
|
269 |
<fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> |
|
270 |
<filename name="@{testincludes}"/> |
|
271 |
</fileset> |
|
272 |
</batchtest> |
|
273 |
<classpath> |
|
274 |
<path path="${run.test.classpath}"/> |
|
34380
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
275 |
<fileset dir="${scala.lib}"> |
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
276 |
<include name="**/*.jar"/> |
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
277 |
</fileset> |
34320 | 278 |
</classpath> |
279 |
<syspropertyset> |
|
280 |
<propertyref prefix="test-sys-prop."/> |
|
281 |
<mapper from="test-sys-prop.*" to="*" type="glob"/> |
|
282 |
</syspropertyset> |
|
283 |
<formatter type="brief" usefile="false"/> |
|
284 |
<formatter type="xml"/> |
|
285 |
<jvmarg line="${run.jvmargs}"/> |
|
286 |
</junit> |
|
287 |
</sequential> |
|
288 |
</macrodef> |
|
289 |
</target> |
|
290 |
<target name="-init-macrodef-nbjpda"> |
|
291 |
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
292 |
<attribute default="${main.class}" name="name"/> |
|
293 |
<attribute default="${debug.classpath}" name="classpath"/> |
|
294 |
<attribute default="" name="stopclassname"/> |
|
295 |
<sequential> |
|
296 |
<nbjpdastart addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}" transport="dt_socket"> |
|
297 |
<classpath> |
|
298 |
<path path="@{classpath}"/> |
|
299 |
</classpath> |
|
300 |
</nbjpdastart> |
|
301 |
</sequential> |
|
302 |
</macrodef> |
|
303 |
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
304 |
<attribute default="${build.classes.dir}" name="dir"/> |
|
305 |
<sequential> |
|
306 |
<nbjpdareload> |
|
307 |
<fileset dir="@{dir}" includes="${fix.includes}*.class"/> |
|
308 |
</nbjpdareload> |
|
309 |
</sequential> |
|
310 |
</macrodef> |
|
311 |
</target> |
|
312 |
<target name="-init-debug-args"> |
|
313 |
<property name="version-output" value="java version "${ant.java.version}"/> |
|
314 |
<condition property="have-jdk-older-than-1.4"> |
|
315 |
<or> |
|
316 |
<contains string="${version-output}" substring="java version "1.0"/> |
|
317 |
<contains string="${version-output}" substring="java version "1.1"/> |
|
318 |
<contains string="${version-output}" substring="java version "1.2"/> |
|
319 |
<contains string="${version-output}" substring="java version "1.3"/> |
|
320 |
</or> |
|
321 |
</condition> |
|
322 |
<condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none"> |
|
323 |
<istrue value="${have-jdk-older-than-1.4}"/> |
|
324 |
</condition> |
|
325 |
</target> |
|
326 |
<target depends="-init-debug-args" name="-init-macrodef-debug"> |
|
327 |
<macrodef name="debug" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
328 |
<attribute default="${main.class}" name="classname"/> |
|
329 |
<attribute default="${debug.classpath}" name="classpath"/> |
|
330 |
<element name="customize" optional="true"/> |
|
331 |
<sequential> |
|
332 |
<java classname="@{classname}" dir="${work.dir}" fork="true"> |
|
333 |
<jvmarg line="${debug-args-line}"/> |
|
334 |
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/> |
|
335 |
<jvmarg line="${run.jvmargs}"/> |
|
336 |
<classpath> |
|
337 |
<path path="@{classpath}"/> |
|
34380
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
338 |
<fileset dir="${scala.lib}"> |
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
339 |
<include name="**/*.jar"/> |
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
340 |
</fileset> |
34320 | 341 |
</classpath> |
342 |
<syspropertyset> |
|
343 |
<propertyref prefix="run-sys-prop."/> |
|
344 |
<mapper from="run-sys-prop.*" to="*" type="glob"/> |
|
345 |
</syspropertyset> |
|
346 |
<customize/> |
|
347 |
</java> |
|
348 |
</sequential> |
|
349 |
</macrodef> |
|
350 |
</target> |
|
351 |
<target name="-init-macrodef-java"> |
|
352 |
<macrodef name="java" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
353 |
<attribute default="${main.class}" name="classname"/> |
|
354 |
<element name="customize" optional="true"/> |
|
355 |
<sequential> |
|
356 |
<java classname="@{classname}" dir="${work.dir}" fork="true"> |
|
357 |
<jvmarg line="${run.jvmargs}"/> |
|
358 |
<classpath> |
|
359 |
<path path="${run.classpath}"/> |
|
34380
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
360 |
<fileset dir="${scala.lib}"> |
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
361 |
<include name="**/*.jar"/> |
b74b5e0ff66a
updated version of nbproject, as produced by build in Netbeans 6.5;
wenzelm
parents:
34320
diff
changeset
|
362 |
</fileset> |
34320 | 363 |
</classpath> |
364 |
<syspropertyset> |
|
365 |
<propertyref prefix="run-sys-prop."/> |
|
366 |
<mapper from="run-sys-prop.*" to="*" type="glob"/> |
|
367 |
</syspropertyset> |
|
368 |
<customize/> |
|
369 |
</java> |
|
370 |
</sequential> |
|
371 |
</macrodef> |
|
372 |
</target> |
|
373 |
<target name="-init-presetdef-jar"> |
|
374 |
<presetdef name="jar" uri="http://www.netbeans.org/ns/scala-project/1"> |
|
375 |
<jar compress="${jar.compress}" jarfile="${dist.jar}"> |
|
376 |
<scalaProject1:fileset dir="${build.classes.dir}"/> |
|
377 |
</jar> |
|
378 |
</presetdef> |
|
379 |
</target> |
|
380 |
<target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-scalac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/> |
|
381 |
<!-- |
|
382 |
=================== |
|
383 |
COMPILATION SECTION |
|
384 |
=================== |
|
385 |
--> |
|
34381
a94d2fb96fd5
basic setup for auxiliary project "jEdit", with full sources, debugging, profiling;
wenzelm
parents:
34380
diff
changeset
|
386 |
<target depends="init" name="deps-jar" unless="no.deps"> |
a94d2fb96fd5
basic setup for auxiliary project "jEdit", with full sources, debugging, profiling;
wenzelm
parents:
34380
diff
changeset
|
387 |
<ant antfile="${project.jEdit}/build-nb.xml" inheritall="false" target="build"/> |
a94d2fb96fd5
basic setup for auxiliary project "jEdit", with full sources, debugging, profiling;
wenzelm
parents:
34380
diff
changeset
|
388 |
</target> |
34320 | 389 |
<target depends="init,deps-jar" name="-pre-pre-compile"> |
390 |
<mkdir dir="${build.classes.dir}"/> |
|
391 |
</target> |
|
392 |
<target name="-pre-compile"> |
|
393 |
<!-- Empty placeholder for easier customization. --> |
|
394 |
<!-- You can override this target in the ../build.xml file. --> |
|
395 |
</target> |
|
396 |
<target if="do.depend.true" name="-compile-depend"> |
|
397 |
<scalaProject1:depend/> |
|
398 |
</target> |
|
399 |
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile"> |
|
400 |
<scalaProject1:scalac/> |
|
401 |
<copy todir="${build.classes.dir}"> |
|
402 |
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
|
403 |
</copy> |
|
404 |
</target> |
|
405 |
<target name="-post-compile"> |
|
406 |
<!-- Empty placeholder for easier customization. --> |
|
407 |
<!-- You can override this target in the ../build.xml file. --> |
|
408 |
</target> |
|
409 |
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> |
|
410 |
<target name="-pre-compile-single"> |
|
411 |
<!-- Empty placeholder for easier customization. --> |
|
412 |
<!-- You can override this target in the ../build.xml file. --> |
|
413 |
</target> |
|
414 |
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single"> |
|
415 |
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> |
|
416 |
<scalaProject1:force-recompile/> |
|
417 |
<scalaProject1:scalac excludes="" includes="${javac.includes}" sourcepath="${src.dir}"/> |
|
418 |
</target> |
|
419 |
<target name="-post-compile-single"> |
|
420 |
<!-- Empty placeholder for easier customization. --> |
|
421 |
<!-- You can override this target in the ../build.xml file. --> |
|
422 |
</target> |
|
423 |
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/> |
|
424 |
<!-- |
|
425 |
==================== |
|
426 |
JAR BUILDING SECTION |
|
427 |
==================== |
|
428 |
--> |
|
429 |
<target depends="init" name="-pre-pre-jar"> |
|
430 |
<dirname file="${dist.jar}" property="dist.jar.dir"/> |
|
431 |
<mkdir dir="${dist.jar.dir}"/> |
|
432 |
</target> |
|
433 |
<target name="-pre-jar"> |
|
434 |
<!-- Empty placeholder for easier customization. --> |
|
435 |
<!-- You can override this target in the ../build.xml file. --> |
|
436 |
</target> |
|
437 |
<target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available"> |
|
438 |
<scalaProject1:jar/> |
|
439 |
</target> |
|
440 |
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class"> |
|
441 |
<scalaProject1:jar manifest="${manifest.file}"/> |
|
442 |
</target> |
|
443 |
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> |
|
444 |
<scalaProject1:jar manifest="${manifest.file}"> |
|
445 |
<scalaProject1:manifest> |
|
446 |
<scalaProject1:attribute name="Main-Class" value="${main.class}"/> |
|
447 |
</scalaProject1:manifest> |
|
448 |
</scalaProject1:jar> |
|
449 |
<echo>To run this application from the command line without Ant, try:</echo> |
|
450 |
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/> |
|
451 |
<property location="${dist.jar}" name="dist.jar.resolved"/> |
|
452 |
<pathconvert property="run.classpath.with.dist.jar"> |
|
453 |
<path path="${run.classpath}"/> |
|
454 |
<map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> |
|
455 |
</pathconvert> |
|
456 |
<echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> |
|
457 |
</target> |
|
458 |
<target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries"> |
|
459 |
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/> |
|
460 |
<pathconvert property="run.classpath.without.build.classes.dir"> |
|
461 |
<path path="${run.classpath}"/> |
|
462 |
<map from="${build.classes.dir.resolved}" to=""/> |
|
463 |
</pathconvert> |
|
464 |
<pathconvert pathsep=" " property="jar.classpath"> |
|
465 |
<path path="${run.classpath.without.build.classes.dir}"/> |
|
466 |
<chainedmapper> |
|
467 |
<flattenmapper/> |
|
468 |
<globmapper from="*" to="lib/*"/> |
|
469 |
</chainedmapper> |
|
470 |
</pathconvert> |
|
471 |
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> |
|
472 |
<copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> |
|
473 |
<fileset dir="${build.classes.dir}"/> |
|
474 |
<manifest> |
|
475 |
<attribute name="Main-Class" value="${main.class}"/> |
|
476 |
<attribute name="Class-Path" value="${jar.classpath}"/> |
|
477 |
</manifest> |
|
478 |
</copylibs> |
|
479 |
<echo>To run this application from the command line without Ant, try:</echo> |
|
480 |
<property location="${dist.jar}" name="dist.jar.resolved"/> |
|
481 |
<echo>java -jar "${dist.jar.resolved}"</echo> |
|
482 |
</target> |
|
483 |
<target name="-post-jar"> |
|
484 |
<!-- Empty placeholder for easier customization. --> |
|
485 |
<!-- You can override this target in the ../build.xml file. --> |
|
486 |
</target> |
|
487 |
<target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/> |
|
488 |
<!-- |
|
489 |
================= |
|
490 |
EXECUTION SECTION |
|
491 |
================= |
|
492 |
--> |
|
493 |
<target depends="init,compile" description="Run a main class." name="run"> |
|
494 |
<scalaProject1:java> |
|
495 |
<customize> |
|
496 |
<arg line="${application.args}"/> |
|
497 |
</customize> |
|
498 |
</scalaProject1:java> |
|
499 |
</target> |
|
500 |
<target name="-do-not-recompile"> |
|
501 |
<property name="javac.includes.binary" value=""/> |
|
502 |
</target> |
|
503 |
<target depends="init,-do-not-recompile,compile-single" name="run-single"> |
|
504 |
<fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
|
505 |
<scalaProject1:java classname="${run.class}"/> |
|
506 |
</target> |
|
507 |
<!-- |
|
508 |
================= |
|
509 |
DEBUGGING SECTION |
|
510 |
================= |
|
511 |
--> |
|
512 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger"> |
|
513 |
<scalaProject1:nbjpdastart name="${debug.class}"/> |
|
514 |
</target> |
|
515 |
<target depends="init,compile" name="-debug-start-debuggee"> |
|
516 |
<scalaProject1:debug> |
|
517 |
<customize> |
|
518 |
<arg line="${application.args}"/> |
|
519 |
</customize> |
|
520 |
</scalaProject1:debug> |
|
521 |
</target> |
|
522 |
<target depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE." if="netbeans.home" name="debug"/> |
|
523 |
<target depends="init" if="netbeans.home" name="-debug-start-debugger-stepinto"> |
|
524 |
<scalaProject1:nbjpdastart stopclassname="${main.class}"/> |
|
525 |
</target> |
|
526 |
<target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> |
|
527 |
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> |
|
528 |
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> |
|
529 |
<scalaProject1:debug classname="${debug.class}"/> |
|
530 |
</target> |
|
531 |
<target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> |
|
532 |
<target depends="init" name="-pre-debug-fix"> |
|
533 |
<fail unless="fix.includes">Must set fix.includes</fail> |
|
534 |
<property name="javac.includes" value="${fix.includes}.java"/> |
|
535 |
</target> |
|
536 |
<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> |
|
537 |
<scalaProject1:nbjpdareload/> |
|
538 |
</target> |
|
539 |
<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> |
|
540 |
<!-- |
|
541 |
=============== |
|
542 |
JAVADOC SECTION |
|
543 |
=============== |
|
544 |
--> |
|
545 |
<target depends="init" name="-javadoc-build"> |
|
546 |
<mkdir dir="${dist.javadoc.dir}"/> |
|
547 |
<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}"> |
|
548 |
<classpath> |
|
549 |
<path path="${javac.classpath}"/> |
|
550 |
</classpath> |
|
551 |
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> |
|
552 |
<filename name="**/*.java"/> |
|
553 |
</fileset> |
|
554 |
</javadoc> |
|
555 |
</target> |
|
556 |
<target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> |
|
557 |
<nbbrowse file="${dist.javadoc.dir}/index.html"/> |
|
558 |
</target> |
|
559 |
<target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> |
|
560 |
<!-- |
|
561 |
========================= |
|
562 |
JUNIT COMPILATION SECTION |
|
563 |
========================= |
|
564 |
--> |
|
565 |
<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test"> |
|
566 |
<mkdir dir="${build.test.classes.dir}"/> |
|
567 |
</target> |
|
568 |
<target name="-pre-compile-test"> |
|
569 |
<!-- Empty placeholder for easier customization. --> |
|
570 |
<!-- You can override this target in the ../build.xml file. --> |
|
571 |
</target> |
|
572 |
<target if="do.depend.true" name="-compile-test-depend"> |
|
573 |
<scalaProject1:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir=""/> |
|
574 |
</target> |
|
575 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> |
|
576 |
<scalaProject1:scalac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir=""/> |
|
577 |
<copy todir="${build.test.classes.dir}"/> |
|
578 |
</target> |
|
579 |
<target name="-post-compile-test"> |
|
580 |
<!-- Empty placeholder for easier customization. --> |
|
581 |
<!-- You can override this target in the ../build.xml file. --> |
|
582 |
</target> |
|
583 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> |
|
584 |
<target name="-pre-compile-test-single"> |
|
585 |
<!-- Empty placeholder for easier customization. --> |
|
586 |
<!-- You can override this target in the ../build.xml file. --> |
|
587 |
</target> |
|
588 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> |
|
589 |
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> |
|
590 |
<scalaProject1:force-recompile destdir="${build.test.classes.dir}"/> |
|
591 |
<scalaProject1:scalac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="" srcdir=""/> |
|
592 |
<copy todir="${build.test.classes.dir}"/> |
|
593 |
</target> |
|
594 |
<target name="-post-compile-test-single"> |
|
595 |
<!-- Empty placeholder for easier customization. --> |
|
596 |
<!-- You can override this target in the ../build.xml file. --> |
|
597 |
</target> |
|
598 |
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/> |
|
599 |
<!-- |
|
600 |
======================= |
|
601 |
JUNIT EXECUTION SECTION |
|
602 |
======================= |
|
603 |
--> |
|
604 |
<target depends="init" if="have.tests" name="-pre-test-run"> |
|
605 |
<mkdir dir="${build.test.results.dir}"/> |
|
606 |
</target> |
|
607 |
<target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run"> |
|
608 |
<scalaProject1:junit testincludes="**/*Test.class"/> |
|
609 |
</target> |
|
610 |
<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run"> |
|
611 |
<fail if="tests.failed">Some tests failed; see details above.</fail> |
|
612 |
</target> |
|
613 |
<target depends="init" if="have.tests" name="test-report"/> |
|
614 |
<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/> |
|
615 |
<target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/> |
|
616 |
<target depends="init" if="have.tests" name="-pre-test-run-single"> |
|
617 |
<mkdir dir="${build.test.results.dir}"/> |
|
618 |
</target> |
|
619 |
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single"> |
|
620 |
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> |
|
621 |
<scalaProject1:junit excludes="" includes="${test.includes}"/> |
|
622 |
</target> |
|
623 |
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> |
|
624 |
<fail if="tests.failed">Some tests failed; see details above.</fail> |
|
625 |
</target> |
|
626 |
<target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/> |
|
627 |
<!-- |
|
628 |
======================= |
|
629 |
JUNIT DEBUGGING SECTION |
|
630 |
======================= |
|
631 |
--> |
|
632 |
<target depends="init,compile-test" if="have.tests" name="-debug-start-debuggee-test"> |
|
633 |
<fail unless="test.class">Must select one file in the IDE or set test.class</fail> |
|
634 |
<property location="${build.test.results.dir}/TEST-${test.class}.xml" name="test.report.file"/> |
|
635 |
<delete file="${test.report.file}"/> |
|
636 |
<mkdir dir="${build.test.results.dir}"/> |
|
637 |
<scalaProject1: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}"> |
|
638 |
<customize> |
|
639 |
<syspropertyset> |
|
640 |
<propertyref prefix="test-sys-prop."/> |
|
641 |
<mapper from="test-sys-prop.*" to="*" type="glob"/> |
|
642 |
</syspropertyset> |
|
643 |
<arg value="${test.class}"/> |
|
644 |
<arg value="showoutput=true"/> |
|
645 |
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitResultFormatter"/> |
|
646 |
<arg value="formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,${test.report.file}"/> |
|
647 |
</customize> |
|
648 |
</scalaProject1:debug> |
|
649 |
</target> |
|
650 |
<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> |
|
651 |
<scalaProject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> |
|
652 |
</target> |
|
653 |
<target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> |
|
654 |
<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> |
|
655 |
<scalaProject1:nbjpdareload dir="${build.test.classes.dir}"/> |
|
656 |
</target> |
|
657 |
<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> |
|
658 |
<!-- |
|
659 |
========================= |
|
660 |
APPLET EXECUTION SECTION |
|
661 |
========================= |
|
662 |
--> |
|
663 |
<target depends="init,compile-single" name="run-applet"> |
|
664 |
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> |
|
665 |
<scalaProject1:java classname="sun.applet.AppletViewer"> |
|
666 |
<customize> |
|
667 |
<arg value="${applet.url}"/> |
|
668 |
</customize> |
|
669 |
</scalaProject1:java> |
|
670 |
</target> |
|
671 |
<!-- |
|
672 |
========================= |
|
673 |
APPLET DEBUGGING SECTION |
|
674 |
========================= |
|
675 |
--> |
|
676 |
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-applet"> |
|
677 |
<fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> |
|
678 |
<scalaProject1:debug classname="sun.applet.AppletViewer"> |
|
679 |
<customize> |
|
680 |
<arg value="${applet.url}"/> |
|
681 |
</customize> |
|
682 |
</scalaProject1:debug> |
|
683 |
</target> |
|
684 |
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet" if="netbeans.home" name="debug-applet"/> |
|
685 |
<!-- |
|
686 |
=============== |
|
687 |
CLEANUP SECTION |
|
688 |
=============== |
|
689 |
--> |
|
34381
a94d2fb96fd5
basic setup for auxiliary project "jEdit", with full sources, debugging, profiling;
wenzelm
parents:
34380
diff
changeset
|
690 |
<target depends="init" name="deps-clean" unless="no.deps"> |
a94d2fb96fd5
basic setup for auxiliary project "jEdit", with full sources, debugging, profiling;
wenzelm
parents:
34380
diff
changeset
|
691 |
<ant antfile="${project.jEdit}/build-nb.xml" inheritall="false" target="clean"/> |
a94d2fb96fd5
basic setup for auxiliary project "jEdit", with full sources, debugging, profiling;
wenzelm
parents:
34380
diff
changeset
|
692 |
</target> |
34320 | 693 |
<target depends="init" name="-do-clean"> |
694 |
<delete dir="${build.dir}"/> |
|
695 |
<delete dir="${dist.dir}"/> |
|
696 |
</target> |
|
697 |
<target name="-post-clean"> |
|
698 |
<!-- Empty placeholder for easier customization. --> |
|
699 |
<!-- You can override this target in the ../build.xml file. --> |
|
700 |
</target> |
|
701 |
<target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> |
|
702 |
</project> |