changeset 4887:f219f9bc5347

Graphics NetBeans project: fixed debugging tests.
author Pavel Safrata <pavel.safrata@oracle.com>
date Thu, 29 Aug 2013 14:25:18 +0100
parents 02dab18d5824
children b4067344e883
files netbeans/graphics/build.xml
diffstat 1 files changed, 23 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/netbeans/graphics/build.xml	Thu Aug 29 17:09:28 2013 +0400
+++ b/netbeans/graphics/build.xml	Thu Aug 29 14:25:18 2013 +0100
@@ -102,5 +102,27 @@
             </sequential>
         </macrodef>
     </target>
-
+    <target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
+        <macrodef name="test-debug" uri="http://www.netbeans.org/ns/j2se-project/3">
+            <attribute default="${includes}" name="includes"/>
+            <attribute default="${excludes}" name="excludes"/>
+            <attribute default="**" name="testincludes"/>
+            <attribute default="" name="testmethods"/>
+            <attribute default="${main.class}" name="testClass"/>
+            <attribute default="" name="testMethod"/>
+            <sequential>
+                <j2seproject3:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
+                    <customize>
+                        <classpath>
+                            <path path="${run.test.classpath}"/>
+                        </classpath>
+                        <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
+                        <jvmarg line="${run.jvmargs}"/>
+                        <jvmarg line="${run.jvmargs.ide}"/>
+                        <jvmarg line="-Djavafx.toolkit=com.sun.javafx.pgstub.StubToolkit"/>
+                    </customize>
+                </j2seproject3:test-debug-impl>
+            </sequential>
+        </macrodef>
+    </target>
 </project>