? xtest/X.diff
Index: openide/build.xml
===================================================================
RCS file: /cvs/openide/build.xml,v
retrieving revision 1.169
diff -u -r1.169 build.xml
--- openide/build.xml 7 Apr 2004 19:26:56 -0000 1.169
+++ openide/build.xml 25 Apr 2004 10:14:55 -0000
@@ -760,5 +760,39 @@
]]>
+
+
+
+
+
+
+
+
+
+ *class
+
+
+
+
+
+
+
+
+
+ Must set test.class
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: xtest/plugins_src/jvm/lib/jvm_execution_targets.xml
===================================================================
RCS file: /cvs/xtest/plugins_src/jvm/lib/jvm_execution_targets.xml,v
retrieving revision 1.5
diff -u -r1.5 jvm_execution_targets.xml
--- xtest/plugins_src/jvm/lib/jvm_execution_targets.xml 20 Apr 2004 12:38:26 -0000 1.5
+++ xtest/plugins_src/jvm/lib/jvm_execution_targets.xml 25 Apr 2004 10:15:03 -0000
@@ -62,9 +62,11 @@
+
Index: xtest/plugins_src/jvm/src/org/netbeans/xtest/plugin/jvm/JVMTestRunnerTask.java
===================================================================
RCS file: /cvs/xtest/plugins_src/jvm/src/org/netbeans/xtest/plugin/jvm/JVMTestRunnerTask.java,v
retrieving revision 1.3
diff -u -r1.3 JVMTestRunnerTask.java
--- xtest/plugins_src/jvm/src/org/netbeans/xtest/plugin/jvm/JVMTestRunnerTask.java 10 Apr 2004 11:39:41 -0000 1.3
+++ xtest/plugins_src/jvm/src/org/netbeans/xtest/plugin/jvm/JVMTestRunnerTask.java 25 Apr 2004 10:15:03 -0000
@@ -136,6 +136,12 @@
this.debugSuspend = suspend;
}
+ /** Address to attach to
+ */
+ public void setDebugAddress (String address) {
+ this.debugAddress = address;
+ }
+
// test mode
public void setTestMode(String testMode) {
if ((testMode != null) & (!testMode.equals(""))) {
@@ -198,6 +204,9 @@
// debug should suspend code execution
protected boolean debugSuspend = false;
+ // debug should start its own server
+ private String debugAddress;
+
// debug port to which debugger is connected. When 0 - debugging is not started
protected int debugPort = 0;
@@ -266,12 +275,23 @@
if (enableAssertions) {
commandLine.createVmArgument().setValue("-ea");
}
+
// debugger
if (debugPort > 0) {
+ if (debugAddress != null && debugAddress.length () > 0) {
+ throw new BuildException ("Cannot specify debug port (" + debugPort + ") and address (" + debugAddress + ") at once");
+ }
String suspendArg = debugSuspend ? "y" : "n";
String debugArgument = "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend="+suspendArg+",address="+debugPort;
commandLine.createVmArgument().setLine(debugArgument);
- }
+ } else {
+ if (debugAddress != null && debugAddress.length () > 0) {
+ String debugArgument = "-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=" + debugAddress;
+ commandLine.createVmArgument().setLine(debugArgument);
+ }
+ }
+
+
// add runnerproperties file sys property
Environment.Variable runnerProperties = new Environment.Variable();
runnerProperties.setKey(JUnitTestRunner.TESTRUNNER_PROPERTIES_FILENAME_KEY);