gem-bricks commented on issue #9561:
URL: https://github.com/apache/netbeans/issues/9561#issuecomment-5804934595
@matthiasblaesing I took a look at some parts of the code. Debugging TestNG
tests may also break if TestNG is upgraded to version 8 in the future, as the
`main` entrypoint as specified with `j2seproject3:debug` is deprecated and is
planned to be removed with version 8. Maybe an adapter like this, compiled with
the project (similar to how `java.j2semodule` builds Ant tasks), could fix it.
``` java
package netbeans;
import org.testng.TestNG;
public class TestNGAdapter {
public static void main(String[] args) {
System.exit(TestNG.privateMain(args, null).getStatus());
}
}
```
Although this is hacky and will also have to be implemented on a project
type-by-type basis. Would it be best to start with a scoped pull request that
only fixes `java.j2seproject` and `java.source.ant`? I compiled the modules you
made changes for and installed them as plugins, and all of the usual features
are working fine for me.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists