matthiasblaesing commented on issue #9561:
URL: https://github.com/apache/netbeans/issues/9561#issuecomment-5309198741

   This is most probably a fallout from #9254. Grepping through the codebase 
indicates, that the problem might be much bigger (`grep -r 
org.testng.reporters.VerboseReporter * | grep -v "/test/"`).
   
   The minimal change I had to do to get basic execution working again was:
   
   ```diff
   diff --git 
a/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl
 
b/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl
   index 7c4c00edb667..bc94091512a6 100644
   --- 
a/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl
   +++ 
b/java/java.j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl
   @@ -1148,8 +1148,8 @@ is divided into following sections:
                            </union>
                            <taskdef name="testng" 
classname="org.testng.TestNGAntTask" classpath="${{run.test.classpath}}"/>
                            <testng>
   -                            <xsl:attribute 
name="listeners">org.testng.reporters.VerboseReporter</xsl:attribute>
                                <xsl:attribute 
name="mode">${testng.mode}</xsl:attribute>
   +                            <xsl:attribute name="verbose">5</xsl:attribute>
                                <xsl:attribute 
name="classfilesetref">test.set</xsl:attribute>
                                <xsl:attribute 
name="workingDir">${work.dir}</xsl:attribute> <!-- #47474: match <java> --> 
                                <xsl:attribute 
name="failureProperty">tests.failed</xsl:attribute>
   @@ -1369,7 +1369,7 @@ is divided into following sections:
                                    <jvmarg value="-ea"/>
                                    <arg line="${{testng.debug.mode}}"/>
                                    <arg line="-d ${{build.test.results.dir}}"/>
   -                                <arg line="-listener 
org.testng.reporters.VerboseReporter"/>
   +                                <arg line="-verbose 5"/>
                                    <arg line="${{testng.cmd.args}}"/>
                                </customizeDebuggee>
                            </j2seproject3:debug>
   diff --git 
a/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-debug-snippet.xml
 
b/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-debug-snippet.xml
   index e5c5a97df7cb..82040b057e23 100644
   --- 
a/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-debug-snippet.xml
   +++ 
b/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-debug-snippet.xml
   @@ -210,7 +210,7 @@
                        </syspropertyset>
                        <arg line="${testng.mode}"/>
                        <arg line="-d ${test.results.dir}"/>
   -                    <arg line="-listener 
org.testng.reporters.VerboseReporter"/>
   +                    <arg line="-verbose 5"/>
                        <arg line="${testng.cmd.args}"/>                        
                                                                                
                                                                                
                                                     
                    </java>
                    <delete dir="${test.results.dir}" quiet="true"/>
   diff --git 
a/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-profile-snippet.xml
 
b/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-profile-snippet.xml
   index 96d3e2097006..03636f5e3e33 100644
   --- 
a/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-profile-snippet.xml
   +++ 
b/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-profile-snippet.xml
   @@ -190,7 +190,7 @@
                        </syspropertyset>
                        <arg line="${testng.mode}"/>
                        <arg line="-d ${test.result.dir}"/>
   -                    <arg line="-listener 
org.testng.reporters.VerboseReporter"/>
   +                    <arg line="-verbose 5"/>
                        <arg line="${testng.cmd.args}"/>
                    </java>
                    <delete dir="${test.result.dir}" quiet="true"/>
   diff --git 
a/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-snippet.xml
 
b/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-snippet.xml
   index 0a50b31b6eb8..2ff989e00f62 100644
   --- 
a/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-snippet.xml
   +++ 
b/java/java.source.ant/src/org/netbeans/modules/java/source/ant/resources/junit-snippet.xml
   @@ -171,7 +171,7 @@
                        </syspropertyset>
                        <arg line="${testng.mode}"/>
                        <arg line="-d ${test.result.dir}"/>
   -                    <arg line="-listener 
org.testng.reporters.VerboseReporter"/>
   +                    <arg line="-verbose 5"/>
                        <arg line="${testng.cmd.args}"/>
                    </java>
                    <delete dir="${test.result.dir}" quiet="true"/>
   ```
   
   @sid-srini I think the hard part will be to find the other places that need 
love


-- 
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

Reply via email to