|
@@ -181,7 +181,42 @@ is divided into following sections:
|
181
|
181
|
</sequential>
|
182
|
182
|
</macrodef>
|
183
|
183
|
</target>
|
184
|
|
- <target name="-init-macrodef-junit">
|
|
184
|
+
|
|
185
|
+ <target name="-init-macrodef-junit" depends="-init-macrodef-junit-clover,-init-macrodef-junit-noclover"/>
|
|
186
|
+
|
|
187
|
+ <target name="-init-macrodef-junit-clover" if="clover.installed">
|
|
188
|
+ <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
|
189
|
+ <attribute default="${includes}" name="includes"/>
|
|
190
|
+ <attribute default="${excludes}" name="excludes"/>
|
|
191
|
+ <attribute default="**" name="testincludes"/>
|
|
192
|
+ <sequential>
|
|
193
|
+ <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true" timeout="120000">
|
|
194
|
+ <classpath>
|
|
195
|
+ <pathelement path="${clover.jar}"/>
|
|
196
|
+ </classpath>
|
|
197
|
+ <batchtest todir="${build.test.results.dir}">
|
|
198
|
+ <clover-optimized-testset fullrunevery="${clover.fullrunevery}" optimize="${clover.optimize}" ordering="${clover.ordering}">
|
|
199
|
+ <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
|
|
200
|
+ <filename name="@{testincludes}"/>
|
|
201
|
+ </fileset>
|
|
202
|
+ </clover-optimized-testset>
|
|
203
|
+ </batchtest>
|
|
204
|
+ <classpath>
|
|
205
|
+ <path path="${run.test.classpath}"/>
|
|
206
|
+ </classpath>
|
|
207
|
+ <syspropertyset>
|
|
208
|
+ <propertyref prefix="test-sys-prop."/>
|
|
209
|
+ <mapper from="test-sys-prop.*" to="*" type="glob"/>
|
|
210
|
+ </syspropertyset>
|
|
211
|
+ <formatter type="brief" usefile="false"/>
|
|
212
|
+ <formatter type="xml"/>
|
|
213
|
+ <jvmarg line="${run.jvmargs}"/>
|
|
214
|
+ </junit>
|
|
215
|
+ </sequential>
|
|
216
|
+ </macrodef>
|
|
217
|
+ </target>
|
|
218
|
+
|
|
219
|
+ <target name="-init-macrodef-junit-noclover" unless="clover.installed">
|
185
|
220
|
<macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/3">
|
186
|
221
|
<attribute default="${includes}" name="includes"/>
|
187
|
222
|
<attribute default="${excludes}" name="excludes"/>
|
|
@@ -210,6 +245,7 @@ is divided into following sections:
|
210
|
245
|
</sequential>
|
211
|
246
|
</macrodef>
|
212
|
247
|
</target>
|
|
248
|
+
|
213
|
249
|
<target name="-init-macrodef-nbjpda">
|
214
|
250
|
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
|
215
|
251
|
<attribute default="${main.class}" name="name"/>
|