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