OSDN Git Service

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