source: trunk/SimpleJavaProxy/nbproject/build-impl.xml @ 30

Last change on this file since 30 was 4, checked in by fmguler, 15 years ago

SimpleJavaProxy? ilk import. Basit bir java proxy server. Tarayıcıdan bağımsız cookie'leri yönetmek için oluşturulan bir yardımcı proje. Bu halinde safari key'ini override ediyor.

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