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