Thomas Kellerer schrieb am 08.03.2018 um 21:26:
I have an Ant based project that was migrated from 8.2 (i.e. I simply opened
the project with NetBeans 9.0)
When I try to use "Debug Focused Test Method" I get an error:
Target "debug-single-method" does not exist in the project "SQLWorkbench".
When I create the project from scratch within NetBeans 9.0 this works without
problems
Thomas
This happened again with NetBeans 10.0 (vc4)
But I don't understand where this comes from.
The build-impl.xml only has a target "debug-test-method" (even one created from scratch)
but there is no target "debug-single-method" anywhere in the ant files.
I did a grep through the NetBeans source and the class J2SEActionProvider uses
"debug-single-method" to register the target(?) for
SingleMethod.COMMAND_DEBUG_SINGLE_METHOD.
AntTestNGSupport uses the correct target "debug-test-method", but my project is
using JUnit.
As neither the generated build-impl.xml nor any of the files of the NetBeans source
contain a target named "debug-single-method" I am inclined to say this is a bug
that was introduced in 9.0.
For the time being I fixed this by customizing (the project specifict)
build.xml by adding the missing target and make it depend on the correct one:
<target name="debug-single-method" depends="test-single-method"/>
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists