Mercurial > hg > ltpda
comparison src/MPipeline2/nbproject/build-impl.xml @ 4:e3c5468b1bfe database-connection-manager
Integrate with LTPDAPreferences
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Mon, 05 Dec 2011 16:20:06 +0100 |
parents | f0afece42f48 |
children |
comparison
equal
deleted
inserted
replaced
3:960fe1aa1c10 | 4:e3c5468b1bfe |
---|---|
53 <property file="nbproject/configs/${config}.properties"/> | 53 <property file="nbproject/configs/${config}.properties"/> |
54 <property file="nbproject/project.properties"/> | 54 <property file="nbproject/project.properties"/> |
55 </target> | 55 </target> |
56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> | 56 <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init"> |
57 <available file="${manifest.file}" property="manifest.available"/> | 57 <available file="${manifest.file}" property="manifest.available"/> |
58 <condition property="manifest.available+main.class"> | 58 <condition property="splashscreen.available"> |
59 <and> | 59 <and> |
60 <isset property="manifest.available"/> | 60 <not> |
61 <equals arg1="${application.splash}" arg2="" trim="true"/> | |
62 </not> | |
63 <available file="${application.splash}"/> | |
64 </and> | |
65 </condition> | |
66 <condition property="main.class.available"> | |
67 <and> | |
61 <isset property="main.class"/> | 68 <isset property="main.class"/> |
62 <not> | 69 <not> |
63 <equals arg1="${main.class}" arg2="" trim="true"/> | 70 <equals arg1="${main.class}" arg2="" trim="true"/> |
64 </not> | 71 </not> |
65 </and> | 72 </and> |
66 </condition> | 73 </condition> |
74 <condition property="manifest.available+main.class"> | |
75 <and> | |
76 <isset property="manifest.available"/> | |
77 <isset property="main.class.available"/> | |
78 </and> | |
79 </condition> | |
80 <condition property="do.archive"> | |
81 <not> | |
82 <istrue value="${jar.archive.disabled}"/> | |
83 </not> | |
84 </condition> | |
85 <condition property="do.mkdist"> | |
86 <and> | |
87 <isset property="do.archive"/> | |
88 <isset property="libs.CopyLibs.classpath"/> | |
89 <not> | |
90 <istrue value="${mkdist.disabled}"/> | |
91 </not> | |
92 </and> | |
93 </condition> | |
67 <condition property="manifest.available+main.class+mkdist.available"> | 94 <condition property="manifest.available+main.class+mkdist.available"> |
68 <and> | 95 <and> |
69 <istrue value="${manifest.available+main.class}"/> | 96 <istrue value="${manifest.available+main.class}"/> |
70 <isset property="libs.CopyLibs.classpath"/> | 97 <isset property="do.mkdist"/> |
71 </and> | 98 </and> |
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+main.class.available"> | |
107 <and> | |
108 <isset property="main.class.available"/> | |
109 <istrue value="${do.archive}"/> | |
110 </and> | |
111 </condition> | |
112 <condition property="do.archive+splashscreen.available"> | |
113 <and> | |
114 <isset property="splashscreen.available"/> | |
115 <istrue value="${do.archive}"/> | |
116 </and> | |
117 </condition> | |
118 <condition property="do.archive+manifest.available+main.class"> | |
119 <and> | |
120 <istrue value="${manifest.available+main.class}"/> | |
121 <istrue value="${do.archive}"/> | |
122 </and> | |
123 </condition> | |
124 <condition property="manifest.available-mkdist.available"> | |
125 <or> | |
126 <istrue value="${manifest.available}"/> | |
127 <isset property="do.mkdist"/> | |
128 </or> | |
129 </condition> | |
130 <condition property="manifest.available+main.class-mkdist.available"> | |
131 <or> | |
132 <istrue value="${manifest.available+main.class}"/> | |
133 <isset property="do.mkdist"/> | |
134 </or> | |
72 </condition> | 135 </condition> |
73 <condition property="have.tests"> | 136 <condition property="have.tests"> |
74 <or> | 137 <or> |
75 <available file="${test.src.dir}"/> | 138 <available file="${test.src.dir}"/> |
76 </or> | 139 </or> |
102 </condition> | 165 </condition> |
103 <property name="javac.debug" value="true"/> | 166 <property name="javac.debug" value="true"/> |
104 <property name="javadoc.preview" value="true"/> | 167 <property name="javadoc.preview" value="true"/> |
105 <property name="application.args" value=""/> | 168 <property name="application.args" value=""/> |
106 <property name="source.encoding" value="${file.encoding}"/> | 169 <property name="source.encoding" value="${file.encoding}"/> |
170 <property name="runtime.encoding" value="${source.encoding}"/> | |
107 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> | 171 <condition property="javadoc.encoding.used" value="${javadoc.encoding}"> |
108 <and> | 172 <and> |
109 <isset property="javadoc.encoding"/> | 173 <isset property="javadoc.encoding"/> |
110 <not> | 174 <not> |
111 <equals arg1="${javadoc.encoding}" arg2=""/> | 175 <equals arg1="${javadoc.encoding}" arg2=""/> |
117 <property name="excludes" value=""/> | 181 <property name="excludes" value=""/> |
118 <property name="do.depend" value="false"/> | 182 <property name="do.depend" value="false"/> |
119 <condition property="do.depend.true"> | 183 <condition property="do.depend.true"> |
120 <istrue value="${do.depend}"/> | 184 <istrue value="${do.depend}"/> |
121 </condition> | 185 </condition> |
122 <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'"> | 186 <path id="endorsed.classpath.path" path="${endorsed.classpath}"/> |
123 <and> | 187 <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'"> |
124 <isset property="jaxws.endorsed.dir"/> | 188 <length length="0" string="${endorsed.classpath}" when="greater"/> |
125 <available file="nbproject/jaxws-build.xml"/> | 189 </condition> |
126 </and> | 190 <condition else="false" property="jdkBug6558476"> |
127 </condition> | 191 <and> |
192 <matches pattern="1\.[56]" string="${java.specification.version}"/> | |
193 <not> | |
194 <os family="unix"/> | |
195 </not> | |
196 </and> | |
197 </condition> | |
198 <property name="javac.fork" value="${jdkBug6558476}"/> | |
199 <property name="jar.index" value="false"/> | |
200 <property name="jar.index.metainf" value="${jar.index}"/> | |
201 <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/> | |
128 </target> | 202 </target> |
129 <target name="-post-init"> | 203 <target name="-post-init"> |
130 <!-- Empty placeholder for easier customization. --> | 204 <!-- Empty placeholder for easier customization. --> |
131 <!-- You can override this target in the ../build.xml file. --> | 205 <!-- You can override this target in the ../build.xml file. --> |
132 </target> | 206 </target> |
149 <sequential> | 223 <sequential> |
150 <property name="@{name}" value="${@{value}}"/> | 224 <property name="@{name}" value="${@{value}}"/> |
151 </sequential> | 225 </sequential> |
152 </macrodef> | 226 </macrodef> |
153 </target> | 227 </target> |
154 <target name="-init-macrodef-javac"> | 228 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors"> |
155 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | 229 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> |
156 <attribute default="${src.dir}" name="srcdir"/> | 230 <attribute default="${src.dir}" name="srcdir"/> |
157 <attribute default="${build.classes.dir}" name="destdir"/> | 231 <attribute default="${build.classes.dir}" name="destdir"/> |
158 <attribute default="${javac.classpath}" name="classpath"/> | 232 <attribute default="${javac.classpath}" name="classpath"/> |
233 <attribute default="${javac.processorpath}" name="processorpath"/> | |
234 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
159 <attribute default="${includes}" name="includes"/> | 235 <attribute default="${includes}" name="includes"/> |
160 <attribute default="${excludes}" name="excludes"/> | 236 <attribute default="${excludes}" name="excludes"/> |
161 <attribute default="${javac.debug}" name="debug"/> | 237 <attribute default="${javac.debug}" name="debug"/> |
162 <attribute default="${empty.dir}" name="sourcepath"/> | 238 <attribute default="${empty.dir}" name="sourcepath"/> |
163 <attribute default="${empty.dir}" name="gensrcdir"/> | 239 <attribute default="${empty.dir}" name="gensrcdir"/> |
164 <element name="customize" optional="true"/> | 240 <element name="customize" optional="true"/> |
165 <sequential> | 241 <sequential> |
166 <property location="${build.dir}/empty" name="empty.dir"/> | 242 <property location="${build.dir}/empty" name="empty.dir"/> |
167 <mkdir dir="${empty.dir}"/> | 243 <mkdir dir="${empty.dir}"/> |
168 <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}"> | 244 <mkdir dir="@{apgeneratedsrcdir}"/> |
245 <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}"> | |
169 <src> | 246 <src> |
170 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | 247 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> |
171 <include name="*"/> | 248 <include name="*"/> |
172 </dirset> | 249 </dirset> |
173 </src> | 250 </src> |
174 <classpath> | 251 <classpath> |
175 <path path="@{classpath}"/> | 252 <path path="@{classpath}"/> |
176 </classpath> | 253 </classpath> |
177 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> | 254 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> |
255 <compilerarg line="${javac.compilerargs}"/> | |
256 <compilerarg value="-processorpath"/> | |
257 <compilerarg path="@{processorpath}:${empty.dir}"/> | |
258 <compilerarg line="${ap.processors.internal}"/> | |
259 <compilerarg line="${annotation.processing.processor.options}"/> | |
260 <compilerarg value="-s"/> | |
261 <compilerarg path="@{apgeneratedsrcdir}"/> | |
262 <compilerarg line="${ap.proc.none.internal}"/> | |
178 <customize/> | 263 <customize/> |
179 </javac> | 264 </javac> |
180 </sequential> | 265 </sequential> |
181 </macrodef> | 266 </macrodef> |
267 </target> | |
268 <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal"> | |
269 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
270 <attribute default="${src.dir}" name="srcdir"/> | |
271 <attribute default="${build.classes.dir}" name="destdir"/> | |
272 <attribute default="${javac.classpath}" name="classpath"/> | |
273 <attribute default="${javac.processorpath}" name="processorpath"/> | |
274 <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/> | |
275 <attribute default="${includes}" name="includes"/> | |
276 <attribute default="${excludes}" name="excludes"/> | |
277 <attribute default="${javac.debug}" name="debug"/> | |
278 <attribute default="${empty.dir}" name="sourcepath"/> | |
279 <attribute default="${empty.dir}" name="gensrcdir"/> | |
280 <element name="customize" optional="true"/> | |
281 <sequential> | |
282 <property location="${build.dir}/empty" name="empty.dir"/> | |
283 <mkdir dir="${empty.dir}"/> | |
284 <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}"> | |
285 <src> | |
286 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
287 <include name="*"/> | |
288 </dirset> | |
289 </src> | |
290 <classpath> | |
291 <path path="@{classpath}"/> | |
292 </classpath> | |
293 <compilerarg line="${endorsed.classpath.cmd.line.arg}"/> | |
294 <compilerarg line="${javac.compilerargs}"/> | |
295 <customize/> | |
296 </javac> | |
297 </sequential> | |
298 </macrodef> | |
299 </target> | |
300 <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac"> | |
182 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | 301 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> |
183 <attribute default="${src.dir}" name="srcdir"/> | 302 <attribute default="${src.dir}" name="srcdir"/> |
184 <attribute default="${build.classes.dir}" name="destdir"/> | 303 <attribute default="${build.classes.dir}" name="destdir"/> |
185 <attribute default="${javac.classpath}" name="classpath"/> | 304 <attribute default="${javac.classpath}" name="classpath"/> |
186 <sequential> | 305 <sequential> |
193 </macrodef> | 312 </macrodef> |
194 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | 313 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> |
195 <attribute default="${build.classes.dir}" name="destdir"/> | 314 <attribute default="${build.classes.dir}" name="destdir"/> |
196 <sequential> | 315 <sequential> |
197 <fail unless="javac.includes">Must set javac.includes</fail> | 316 <fail unless="javac.includes">Must set javac.includes</fail> |
198 <pathconvert pathsep="," property="javac.includes.binary"> | 317 <pathconvert pathsep="${line.separator}" property="javac.includes.binary"> |
199 <path> | 318 <path> |
200 <filelist dir="@{destdir}" files="${javac.includes}"/> | 319 <filelist dir="@{destdir}" files="${javac.includes}"/> |
201 </path> | 320 </path> |
202 <globmapper from="*.java" to="*.class"/> | 321 <globmapper from="*.java" to="*.class"/> |
203 </pathconvert> | 322 </pathconvert> |
323 <tempfile deleteonexit="true" property="javac.includesfile.binary"/> | |
324 <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/> | |
204 <delete> | 325 <delete> |
205 <files includes="${javac.includes.binary}"/> | 326 <files includesfile="${javac.includesfile.binary}"/> |
327 </delete> | |
328 <delete> | |
329 <fileset file="${javac.includesfile.binary}"/> | |
206 </delete> | 330 </delete> |
207 </sequential> | 331 </sequential> |
208 </macrodef> | 332 </macrodef> |
209 </target> | 333 </target> |
210 <target name="-init-macrodef-junit"> | 334 <target name="-init-macrodef-junit"> |
211 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> | 335 <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3"> |
212 <attribute default="${includes}" name="includes"/> | 336 <attribute default="${includes}" name="includes"/> |
213 <attribute default="${excludes}" name="excludes"/> | 337 <attribute default="${excludes}" name="excludes"/> |
214 <attribute default="**" name="testincludes"/> | 338 <attribute default="**" name="testincludes"/> |
215 <sequential> | 339 <sequential> |
216 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true"> | 340 <property name="junit.forkmode" value="perTest"/> |
341 <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}"> | |
217 <batchtest todir="${build.test.results.dir}"> | 342 <batchtest todir="${build.test.results.dir}"> |
218 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> | 343 <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}"> |
219 <filename name="@{testincludes}"/> | 344 <filename name="@{testincludes}"/> |
220 </fileset> | 345 </fileset> |
221 </batchtest> | 346 </batchtest> |
226 <propertyref prefix="test-sys-prop."/> | 351 <propertyref prefix="test-sys-prop."/> |
227 <mapper from="test-sys-prop.*" to="*" type="glob"/> | 352 <mapper from="test-sys-prop.*" to="*" type="glob"/> |
228 </syspropertyset> | 353 </syspropertyset> |
229 <formatter type="brief" usefile="false"/> | 354 <formatter type="brief" usefile="false"/> |
230 <formatter type="xml"/> | 355 <formatter type="xml"/> |
356 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
357 <jvmarg value="-ea"/> | |
231 <jvmarg line="${run.jvmargs}"/> | 358 <jvmarg line="${run.jvmargs}"/> |
232 </junit> | 359 </junit> |
233 </sequential> | 360 </sequential> |
234 </macrodef> | 361 </macrodef> |
362 </target> | |
363 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/> | |
364 <target name="-profile-pre-init"> | |
365 <!-- Empty placeholder for easier customization. --> | |
366 <!-- You can override this target in the ../build.xml file. --> | |
367 </target> | |
368 <target name="-profile-post-init"> | |
369 <!-- Empty placeholder for easier customization. --> | |
370 <!-- You can override this target in the ../build.xml file. --> | |
371 </target> | |
372 <target name="-profile-init-macrodef-profile"> | |
373 <macrodef name="resolve"> | |
374 <attribute name="name"/> | |
375 <attribute name="value"/> | |
376 <sequential> | |
377 <property name="@{name}" value="${env.@{value}}"/> | |
378 </sequential> | |
379 </macrodef> | |
380 <macrodef name="profile"> | |
381 <attribute default="${main.class}" name="classname"/> | |
382 <element name="customize" optional="true"/> | |
383 <sequential> | |
384 <property environment="env"/> | |
385 <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/> | |
386 <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}"> | |
387 <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
388 <jvmarg line="${profiler.info.jvmargs}"/> | |
389 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
390 <arg line="${application.args}"/> | |
391 <classpath> | |
392 <path path="${run.classpath}"/> | |
393 </classpath> | |
394 <syspropertyset> | |
395 <propertyref prefix="run-sys-prop."/> | |
396 <mapper from="run-sys-prop.*" to="*" type="glob"/> | |
397 </syspropertyset> | |
398 <customize/> | |
399 </java> | |
400 </sequential> | |
401 </macrodef> | |
402 </target> | |
403 <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check"> | |
404 <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail> | |
405 <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail> | |
235 </target> | 406 </target> |
236 <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> | 407 <target depends="-init-debug-args" name="-init-macrodef-nbjpda"> |
237 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> | 408 <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> |
238 <attribute default="${main.class}" name="name"/> | 409 <attribute default="${main.class}" name="name"/> |
239 <attribute default="${debug.classpath}" name="classpath"/> | 410 <attribute default="${debug.classpath}" name="classpath"/> |
282 <attribute default="${main.class}" name="classname"/> | 453 <attribute default="${main.class}" name="classname"/> |
283 <attribute default="${debug.classpath}" name="classpath"/> | 454 <attribute default="${debug.classpath}" name="classpath"/> |
284 <element name="customize" optional="true"/> | 455 <element name="customize" optional="true"/> |
285 <sequential> | 456 <sequential> |
286 <java classname="@{classname}" dir="${work.dir}" fork="true"> | 457 <java classname="@{classname}" dir="${work.dir}" fork="true"> |
458 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> | |
287 <jvmarg line="${debug-args-line}"/> | 459 <jvmarg line="${debug-args-line}"/> |
288 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> | 460 <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/> |
289 <jvmarg value="-Dfile.encoding=${source.encoding}"/> | 461 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
290 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/> | 462 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> |
291 <jvmarg line="${run.jvmargs}"/> | 463 <jvmarg line="${run.jvmargs}"/> |
292 <classpath> | 464 <classpath> |
293 <path path="@{classpath}"/> | 465 <path path="@{classpath}"/> |
294 </classpath> | 466 </classpath> |
295 <syspropertyset> | 467 <syspropertyset> |
306 <attribute default="${main.class}" name="classname"/> | 478 <attribute default="${main.class}" name="classname"/> |
307 <attribute default="${run.classpath}" name="classpath"/> | 479 <attribute default="${run.classpath}" name="classpath"/> |
308 <element name="customize" optional="true"/> | 480 <element name="customize" optional="true"/> |
309 <sequential> | 481 <sequential> |
310 <java classname="@{classname}" dir="${work.dir}" fork="true"> | 482 <java classname="@{classname}" dir="${work.dir}" fork="true"> |
311 <jvmarg value="-Dfile.encoding=${source.encoding}"/> | 483 <jvmarg line="${endorsed.classpath.cmd.line.arg}"/> |
312 <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/> | 484 <jvmarg value="-Dfile.encoding=${runtime.encoding}"/> |
485 <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/> | |
313 <jvmarg line="${run.jvmargs}"/> | 486 <jvmarg line="${run.jvmargs}"/> |
314 <classpath> | 487 <classpath> |
315 <path path="@{classpath}"/> | 488 <path path="@{classpath}"/> |
316 </classpath> | 489 </classpath> |
317 <syspropertyset> | 490 <syspropertyset> |
321 <customize/> | 494 <customize/> |
322 </java> | 495 </java> |
323 </sequential> | 496 </sequential> |
324 </macrodef> | 497 </macrodef> |
325 </target> | 498 </target> |
499 <target name="-init-macrodef-copylibs"> | |
500 <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
501 <attribute default="${manifest.file}" name="manifest"/> | |
502 <element name="customize" optional="true"/> | |
503 <sequential> | |
504 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | |
505 <pathconvert property="run.classpath.without.build.classes.dir"> | |
506 <path path="${run.classpath}"/> | |
507 <map from="${build.classes.dir.resolved}" to=""/> | |
508 </pathconvert> | |
509 <pathconvert pathsep=" " property="jar.classpath"> | |
510 <path path="${run.classpath.without.build.classes.dir}"/> | |
511 <chainedmapper> | |
512 <flattenmapper/> | |
513 <globmapper from="*" to="lib/*"/> | |
514 </chainedmapper> | |
515 </pathconvert> | |
516 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | |
517 <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | |
518 <fileset dir="${build.classes.dir}"/> | |
519 <manifest> | |
520 <attribute name="Class-Path" value="${jar.classpath}"/> | |
521 <customize/> | |
522 </manifest> | |
523 </copylibs> | |
524 </sequential> | |
525 </macrodef> | |
526 </target> | |
326 <target name="-init-presetdef-jar"> | 527 <target name="-init-presetdef-jar"> |
327 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> | 528 <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> |
328 <jar compress="${jar.compress}" jarfile="${dist.jar}"> | 529 <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}"> |
329 <j2seproject1:fileset dir="${build.classes.dir}"/> | 530 <j2seproject1:fileset dir="${build.classes.dir}"/> |
330 </jar> | 531 </jar> |
331 </presetdef> | 532 </presetdef> |
332 </target> | 533 </target> |
333 <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" name="init"/> | 534 <target name="-init-ap-cmdline-properties"> |
535 <property name="annotation.processing.enabled" value="true"/> | |
536 <property name="annotation.processing.processors.list" value=""/> | |
537 <property name="annotation.processing.processor.options" value=""/> | |
538 <property name="annotation.processing.run.all.processors" value="true"/> | |
539 <property name="javac.processorpath" value="${javac.classpath}"/> | |
540 <property name="javac.test.processorpath" value="${javac.test.classpath}"/> | |
541 <condition property="ap.supported.internal" value="true"> | |
542 <not> | |
543 <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/> | |
544 </not> | |
545 </condition> | |
546 </target> | |
547 <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported"> | |
548 <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}"> | |
549 <isfalse value="${annotation.processing.run.all.processors}"/> | |
550 </condition> | |
551 <condition else="" property="ap.proc.none.internal" value="-proc:none"> | |
552 <isfalse value="${annotation.processing.enabled}"/> | |
553 </condition> | |
554 </target> | |
555 <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline"> | |
556 <property name="ap.cmd.line.internal" value=""/> | |
557 </target> | |
558 <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"/> | |
334 <!-- | 559 <!-- |
335 =================== | 560 =================== |
336 COMPILATION SECTION | 561 COMPILATION SECTION |
337 =================== | 562 =================== |
338 --> | 563 --> |
339 <target depends="init" name="deps-jar" unless="no.deps"/> | 564 <target name="-deps-jar-init" unless="built-jar.properties"> |
565 <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/> | |
566 <delete file="${built-jar.properties}" quiet="true"/> | |
567 </target> | |
568 <target if="already.built.jar.${basedir}" name="-warn-already-built-jar"> | |
569 <echo level="warn" message="Cycle detected: MPipeline2 was already built"/> | |
570 </target> | |
571 <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps"> | |
572 <mkdir dir="${build.dir}"/> | |
573 <touch file="${built-jar.properties}" verbose="false"/> | |
574 <property file="${built-jar.properties}" prefix="already.built.jar."/> | |
575 <antcall target="-warn-already-built-jar"/> | |
576 <propertyfile file="${built-jar.properties}"> | |
577 <entry key="${basedir}" value=""/> | |
578 </propertyfile> | |
579 </target> | |
340 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> | 580 <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/> |
341 <target depends="init" name="-check-automatic-build"> | 581 <target depends="init" name="-check-automatic-build"> |
342 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> | 582 <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/> |
343 </target> | 583 </target> |
344 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> | 584 <target depends="init" if="netbeans.automatic.build" name="-clean-after-automatic-build"> |
357 <include name="*"/> | 597 <include name="*"/> |
358 </dirset> | 598 </dirset> |
359 </pathconvert> | 599 </pathconvert> |
360 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> | 600 <j2seproject3:depend srcdir="${src.dir}:${build.generated.subdirs}"/> |
361 </target> | 601 </target> |
362 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile"> | 602 <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile"> |
363 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> | 603 <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/> |
364 <copy todir="${build.classes.dir}"> | 604 <copy todir="${build.classes.dir}"> |
365 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | 605 <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
366 </copy> | 606 </copy> |
367 </target> | 607 </target> |
608 <target if="has.persistence.xml" name="-copy-persistence-xml"> | |
609 <mkdir dir="${build.classes.dir}/META-INF"/> | |
610 <copy todir="${build.classes.dir}/META-INF"> | |
611 <fileset dir="${meta.inf.dir}" includes="persistence.xml"/> | |
612 </copy> | |
613 </target> | |
368 <target name="-post-compile"> | 614 <target name="-post-compile"> |
369 <!-- Empty placeholder for easier customization. --> | 615 <!-- Empty placeholder for easier customization. --> |
370 <!-- You can override this target in the ../build.xml file. --> | 616 <!-- You can override this target in the ../build.xml file. --> |
371 </target> | 617 </target> |
372 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> | 618 <target depends="init,deps-jar,-verify-automatic-build,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/> |
395 </target> | 641 </target> |
396 <target name="-pre-jar"> | 642 <target name="-pre-jar"> |
397 <!-- Empty placeholder for easier customization. --> | 643 <!-- Empty placeholder for easier customization. --> |
398 <!-- You can override this target in the ../build.xml file. --> | 644 <!-- You can override this target in the ../build.xml file. --> |
399 </target> | 645 </target> |
400 <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available"> | 646 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available-mkdist.available"> |
401 <j2seproject1:jar/> | 647 <j2seproject1:jar/> |
402 </target> | 648 </target> |
403 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class"> | 649 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class-mkdist.available"> |
404 <j2seproject1:jar manifest="${manifest.file}"/> | 650 <j2seproject1:jar manifest="${manifest.file}"/> |
405 </target> | 651 </target> |
406 <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"> | 652 <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"> |
407 <j2seproject1:jar manifest="${manifest.file}"> | 653 <j2seproject1:jar manifest="${manifest.file}"> |
408 <j2seproject1:manifest> | 654 <j2seproject1:manifest> |
409 <j2seproject1:attribute name="Main-Class" value="${main.class}"/> | 655 <j2seproject1:attribute name="Main-Class" value="${main.class}"/> |
410 </j2seproject1:manifest> | 656 </j2seproject1:manifest> |
411 </j2seproject1:jar> | 657 </j2seproject1:jar> |
412 <echo>To run this application from the command line without Ant, try:</echo> | 658 <echo level="info">To run this application from the command line without Ant, try:</echo> |
413 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | 659 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> |
414 <property location="${dist.jar}" name="dist.jar.resolved"/> | 660 <property location="${dist.jar}" name="dist.jar.resolved"/> |
415 <pathconvert property="run.classpath.with.dist.jar"> | 661 <pathconvert property="run.classpath.with.dist.jar"> |
416 <path path="${run.classpath}"/> | 662 <path path="${run.classpath}"/> |
417 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> | 663 <map from="${build.classes.dir.resolved}" to="${dist.jar.resolved}"/> |
418 </pathconvert> | 664 </pathconvert> |
419 <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> | 665 <echo level="info">java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo> |
420 </target> | 666 </target> |
421 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries"> | 667 <target depends="init" if="do.archive" name="-do-jar-with-libraries-create-manifest" unless="manifest.available"> |
422 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | 668 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> |
423 <pathconvert property="run.classpath.without.build.classes.dir"> | 669 <touch file="${tmp.manifest.file}" verbose="false"/> |
424 <path path="${run.classpath}"/> | 670 </target> |
425 <map from="${build.classes.dir.resolved}" to=""/> | 671 <target depends="init" if="do.archive+manifest.available" name="-do-jar-with-libraries-copy-manifest"> |
426 </pathconvert> | 672 <tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/> |
427 <pathconvert pathsep=" " property="jar.classpath"> | 673 <copy file="${manifest.file}" tofile="${tmp.manifest.file}"/> |
428 <path path="${run.classpath.without.build.classes.dir}"/> | 674 </target> |
429 <chainedmapper> | 675 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+main.class.available" name="-do-jar-with-libraries-set-main"> |
430 <flattenmapper/> | 676 <manifest file="${tmp.manifest.file}" mode="update"> |
431 <globmapper from="*" to="lib/*"/> | 677 <attribute name="Main-Class" value="${main.class}"/> |
432 </chainedmapper> | 678 </manifest> |
433 </pathconvert> | 679 </target> |
434 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | 680 <target depends="init,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest" if="do.archive+splashscreen.available" name="-do-jar-with-libraries-set-splashscreen"> |
435 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | 681 <basename file="${application.splash}" property="splashscreen.basename"/> |
436 <fileset dir="${build.classes.dir}"/> | 682 <mkdir dir="${build.classes.dir}/META-INF"/> |
437 <manifest> | 683 <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/> |
438 <attribute name="Main-Class" value="${main.class}"/> | 684 <manifest file="${tmp.manifest.file}" mode="update"> |
439 <attribute name="Class-Path" value="${jar.classpath}"/> | 685 <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/> |
440 </manifest> | 686 </manifest> |
441 </copylibs> | 687 </target> |
442 <echo>To run this application from the command line without Ant, try:</echo> | 688 <target depends="init,-init-macrodef-copylibs,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen" if="do.mkdist" name="-do-jar-with-libraries-pack"> |
689 <j2seproject3:copylibs manifest="${tmp.manifest.file}"/> | |
690 <echo level="info">To run this application from the command line without Ant, try:</echo> | |
443 <property location="${dist.jar}" name="dist.jar.resolved"/> | 691 <property location="${dist.jar}" name="dist.jar.resolved"/> |
444 <echo>java -jar "${dist.jar.resolved}"</echo> | 692 <echo level="info">java -jar "${dist.jar.resolved}"</echo> |
445 </target> | 693 </target> |
446 <target depends="init,compile,-pre-pre-jar,-pre-jar" if="libs.CopyLibs.classpath" name="-do-jar-with-libraries-without-manifest" unless="manifest.available+main.class"> | 694 <target depends="-do-jar-with-libraries-pack" if="do.archive" name="-do-jar-with-libraries-delete-manifest"> |
447 <property location="${build.classes.dir}" name="build.classes.dir.resolved"/> | 695 <delete> |
448 <pathconvert property="run.classpath.without.build.classes.dir"> | 696 <fileset file="${tmp.manifest.file}"/> |
449 <path path="${run.classpath}"/> | 697 </delete> |
450 <map from="${build.classes.dir.resolved}" to=""/> | 698 </target> |
451 </pathconvert> | 699 <target depends="init,compile,-pre-pre-jar,-pre-jar,-do-jar-with-libraries-create-manifest,-do-jar-with-libraries-copy-manifest,-do-jar-with-libraries-set-main,-do-jar-with-libraries-set-splashscreen,-do-jar-with-libraries-pack,-do-jar-with-libraries-delete-manifest" name="-do-jar-with-libraries"/> |
452 <pathconvert pathsep=" " property="jar.classpath"> | |
453 <path path="${run.classpath.without.build.classes.dir}"/> | |
454 <chainedmapper> | |
455 <flattenmapper/> | |
456 <globmapper from="*" to="lib/*"/> | |
457 </chainedmapper> | |
458 </pathconvert> | |
459 <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/> | |
460 <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> | |
461 <fileset dir="${build.classes.dir}"/> | |
462 </copylibs> | |
463 </target> | |
464 <target name="-post-jar"> | 700 <target name="-post-jar"> |
465 <!-- Empty placeholder for easier customization. --> | 701 <!-- Empty placeholder for easier customization. --> |
466 <!-- You can override this target in the ../build.xml file. --> | 702 <!-- You can override this target in the ../build.xml file. --> |
467 </target> | 703 </target> |
468 <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/> | 704 <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"/> |
469 <!-- | 705 <!-- |
470 ================= | 706 ================= |
471 EXECUTION SECTION | 707 EXECUTION SECTION |
472 ================= | 708 ================= |
473 --> | 709 --> |
479 </j2seproject1:java> | 715 </j2seproject1:java> |
480 </target> | 716 </target> |
481 <target name="-do-not-recompile"> | 717 <target name="-do-not-recompile"> |
482 <property name="javac.includes.binary" value=""/> | 718 <property name="javac.includes.binary" value=""/> |
483 </target> | 719 </target> |
484 <target depends="init,-do-not-recompile,compile-single" name="run-single"> | 720 <target depends="init,compile-single" name="run-single"> |
485 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | 721 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
486 <j2seproject1:java classname="${run.class}"/> | 722 <j2seproject1:java classname="${run.class}"/> |
487 </target> | 723 </target> |
488 <target depends="init,-do-not-recompile,compile-test-single" name="run-test-with-main"> | 724 <target depends="init,compile-test-single" name="run-test-with-main"> |
489 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> | 725 <fail unless="run.class">Must select one file in the IDE or set run.class</fail> |
490 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> | 726 <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/> |
491 </target> | 727 </target> |
492 <!-- | 728 <!-- |
493 ================= | 729 ================= |
514 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> | 750 <target depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee" if="netbeans.home" name="debug-stepinto"/> |
515 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> | 751 <target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single"> |
516 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | 752 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> |
517 <j2seproject3:debug classname="${debug.class}"/> | 753 <j2seproject3:debug classname="${debug.class}"/> |
518 </target> | 754 </target> |
519 <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> | 755 <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/> |
520 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> | 756 <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test"> |
521 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> | 757 <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> |
522 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> | 758 <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/> |
523 </target> | 759 </target> |
524 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> | 760 <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/> |
525 <target depends="init" name="-pre-debug-fix"> | 761 <target depends="init" name="-pre-debug-fix"> |
526 <fail unless="fix.includes">Must set fix.includes</fail> | 762 <fail unless="fix.includes">Must set fix.includes</fail> |
527 <property name="javac.includes" value="${fix.includes}.java"/> | 763 <property name="javac.includes" value="${fix.includes}.java"/> |
528 </target> | 764 </target> |
529 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> | 765 <target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix"> |
530 <j2seproject1:nbjpdareload/> | 766 <j2seproject1:nbjpdareload/> |
531 </target> | 767 </target> |
532 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> | 768 <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/> |
533 <!-- | 769 <!-- |
770 ================= | |
771 PROFILING SECTION | |
772 ================= | |
773 --> | |
774 <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile"> | |
775 <nbprofiledirect> | |
776 <classpath> | |
777 <path path="${run.classpath}"/> | |
778 </classpath> | |
779 </nbprofiledirect> | |
780 <profile/> | |
781 </target> | |
782 <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single"> | |
783 <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail> | |
784 <nbprofiledirect> | |
785 <classpath> | |
786 <path path="${run.classpath}"/> | |
787 </classpath> | |
788 </nbprofiledirect> | |
789 <profile classname="${profile.class}"/> | |
790 </target> | |
791 <!-- | |
792 ========================= | |
793 APPLET PROFILING SECTION | |
794 ========================= | |
795 --> | |
796 <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet"> | |
797 <nbprofiledirect> | |
798 <classpath> | |
799 <path path="${run.classpath}"/> | |
800 </classpath> | |
801 </nbprofiledirect> | |
802 <profile classname="sun.applet.AppletViewer"> | |
803 <customize> | |
804 <arg value="${applet.url}"/> | |
805 </customize> | |
806 </profile> | |
807 </target> | |
808 <!-- | |
809 ========================= | |
810 TESTS PROFILING SECTION | |
811 ========================= | |
812 --> | |
813 <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single"> | |
814 <nbprofiledirect> | |
815 <classpath> | |
816 <path path="${run.test.classpath}"/> | |
817 </classpath> | |
818 </nbprofiledirect> | |
819 <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true"> | |
820 <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/> | |
821 <jvmarg value="${profiler.info.jvmargs.agent}"/> | |
822 <jvmarg line="${profiler.info.jvmargs}"/> | |
823 <test name="${profile.class}"/> | |
824 <classpath> | |
825 <path path="${run.test.classpath}"/> | |
826 </classpath> | |
827 <syspropertyset> | |
828 <propertyref prefix="test-sys-prop."/> | |
829 <mapper from="test-sys-prop.*" to="*" type="glob"/> | |
830 </syspropertyset> | |
831 <formatter type="brief" usefile="false"/> | |
832 <formatter type="xml"/> | |
833 </junit> | |
834 </target> | |
835 <!-- | |
534 =============== | 836 =============== |
535 JAVADOC SECTION | 837 JAVADOC SECTION |
536 =============== | 838 =============== |
537 --> | 839 --> |
538 <target depends="init" name="-javadoc-build"> | 840 <target depends="init" if="have.sources" name="-javadoc-build"> |
539 <mkdir dir="${dist.javadoc.dir}"/> | 841 <mkdir dir="${dist.javadoc.dir}"/> |
540 <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}"> | 842 <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}"> |
541 <classpath> | 843 <classpath> |
542 <path path="${javac.classpath}"/> | 844 <path path="${javac.classpath}"/> |
543 </classpath> | 845 </classpath> |
544 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | 846 <fileset dir="${src.dir}" excludes="*.java,${excludes}" includes="${includes}"> |
545 <filename name="**/*.java"/> | 847 <filename name="**/*.java"/> |
546 </fileset> | 848 </fileset> |
547 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | 849 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> |
548 <include name="**/*.java"/> | 850 <include name="**/*.java"/> |
851 <exclude name="*.java"/> | |
549 </fileset> | 852 </fileset> |
550 </javadoc> | 853 </javadoc> |
854 <copy todir="${dist.javadoc.dir}"> | |
855 <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}"> | |
856 <filename name="**/doc-files/**"/> | |
857 </fileset> | |
858 <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> | |
859 <include name="**/doc-files/**"/> | |
860 </fileset> | |
861 </copy> | |
551 </target> | 862 </target> |
552 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> | 863 <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview"> |
553 <nbbrowse file="${dist.javadoc.dir}/index.html"/> | 864 <nbbrowse file="${dist.javadoc.dir}/index.html"/> |
554 </target> | 865 </target> |
555 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> | 866 <target depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc." name="javadoc"/> |
566 <!-- You can override this target in the ../build.xml file. --> | 877 <!-- You can override this target in the ../build.xml file. --> |
567 </target> | 878 </target> |
568 <target if="do.depend.true" name="-compile-test-depend"> | 879 <target if="do.depend.true" name="-compile-test-depend"> |
569 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | 880 <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> |
570 </target> | 881 </target> |
571 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> | 882 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test"> |
572 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/> | 883 <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}"/> |
573 <copy todir="${build.test.classes.dir}"> | 884 <copy todir="${build.test.classes.dir}"> |
574 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | 885 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
575 </copy> | 886 </copy> |
576 </target> | 887 </target> |
577 <target name="-post-compile-test"> | 888 <target name="-post-compile-test"> |
581 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> | 892 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/> |
582 <target name="-pre-compile-test-single"> | 893 <target name="-pre-compile-test-single"> |
583 <!-- Empty placeholder for easier customization. --> | 894 <!-- Empty placeholder for easier customization. --> |
584 <!-- You can override this target in the ../build.xml file. --> | 895 <!-- You can override this target in the ../build.xml file. --> |
585 </target> | 896 </target> |
586 <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> | 897 <target depends="init,deps-jar,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single"> |
587 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> | 898 <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> |
588 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> | 899 <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/> |
589 <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/> | 900 <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}"/> |
590 <copy todir="${build.test.classes.dir}"> | 901 <copy todir="${build.test.classes.dir}"> |
591 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> | 902 <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/> |
592 </copy> | 903 </copy> |
593 </target> | 904 </target> |
594 <target name="-post-compile-test-single"> | 905 <target name="-post-compile-test-single"> |
621 <j2seproject3:junit excludes="" includes="${test.includes}"/> | 932 <j2seproject3:junit excludes="" includes="${test.includes}"/> |
622 </target> | 933 </target> |
623 <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single"> | 934 <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" unless="ignore.failing.tests">Some tests failed; see details above.</fail> | 935 <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail> |
625 </target> | 936 </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"/> | 937 <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"/> |
627 <!-- | 938 <!-- |
628 ======================= | 939 ======================= |
629 JUNIT DEBUGGING SECTION | 940 JUNIT DEBUGGING SECTION |
630 ======================= | 941 ======================= |
631 --> | 942 --> |
648 </j2seproject3:debug> | 959 </j2seproject3:debug> |
649 </target> | 960 </target> |
650 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> | 961 <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test"> |
651 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> | 962 <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/> |
652 </target> | 963 </target> |
653 <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/> | 964 <target depends="init,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"> | 965 <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test"> |
655 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> | 966 <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> |
656 </target> | 967 </target> |
657 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> | 968 <target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/> |
658 <!-- | 969 <!-- |
685 <!-- | 996 <!-- |
686 =============== | 997 =============== |
687 CLEANUP SECTION | 998 CLEANUP SECTION |
688 =============== | 999 =============== |
689 --> | 1000 --> |
690 <target depends="init" name="deps-clean" unless="no.deps"/> | 1001 <target name="-deps-clean-init" unless="built-clean.properties"> |
1002 <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/> | |
1003 <delete file="${built-clean.properties}" quiet="true"/> | |
1004 </target> | |
1005 <target if="already.built.clean.${basedir}" name="-warn-already-built-clean"> | |
1006 <echo level="warn" message="Cycle detected: MPipeline2 was already built"/> | |
1007 </target> | |
1008 <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps"> | |
1009 <mkdir dir="${build.dir}"/> | |
1010 <touch file="${built-clean.properties}" verbose="false"/> | |
1011 <property file="${built-clean.properties}" prefix="already.built.clean."/> | |
1012 <antcall target="-warn-already-built-clean"/> | |
1013 <propertyfile file="${built-clean.properties}"> | |
1014 <entry key="${basedir}" value=""/> | |
1015 </propertyfile> | |
1016 </target> | |
691 <target depends="init" name="-do-clean"> | 1017 <target depends="init" name="-do-clean"> |
692 <delete dir="${build.dir}"/> | 1018 <delete dir="${build.dir}"/> |
693 <delete dir="${dist.dir}"/> | 1019 <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/> |
694 </target> | 1020 </target> |
695 <target name="-post-clean"> | 1021 <target name="-post-clean"> |
696 <!-- Empty placeholder for easier customization. --> | 1022 <!-- Empty placeholder for easier customization. --> |
697 <!-- You can override this target in the ../build.xml file. --> | 1023 <!-- You can override this target in the ../build.xml file. --> |
698 </target> | 1024 </target> |
699 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> | 1025 <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/> |
1026 <target name="-check-call-dep"> | |
1027 <property file="${call.built.properties}" prefix="already.built."/> | |
1028 <condition property="should.call.dep"> | |
1029 <not> | |
1030 <isset property="already.built.${call.subproject}"/> | |
1031 </not> | |
1032 </condition> | |
1033 </target> | |
1034 <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep"> | |
1035 <ant antfile="${call.script}" inheritall="false" target="${call.target}"> | |
1036 <propertyset> | |
1037 <propertyref prefix="transfer."/> | |
1038 <mapper from="transfer.*" to="*" type="glob"/> | |
1039 </propertyset> | |
1040 </ant> | |
1041 </target> | |
700 </project> | 1042 </project> |