[GRADLE-1582] "XMLResultAggregator was not found" error when instantiating TestNG's junitreport task Created: 01/Jun/11 Updated: 10/Feb/17 Resolved: 10/Feb/17 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0-milestone-3 |
Fix Version/s: | None |
Type: | Bug | ||
Reporter: | Ronald Kurr | Assignee: | Unassigned |
Resolution: | Won't Fix | Votes: | 0 |
Description |
I was trying to use TestNG's junitreport task to convert its test reports into JUnit style reports for use in another system. I am unable to instantiate the taskdef due to a classpath issue. I tried to use the standard mechanism I have used to invoke other Ant tasks but it failed because a symbol in the optional ant-junit.jar was not being loaded. I was trying something like this, but it wouldn't work: dependencies { testngCustom 'testng:testng:6.0.1' testngCustom 'ant-junit4:ant-junit4:1.8.2' testngCustom 'junit:junit:4.8.1' }configurations.testngCustom.each { File jar -> println 'adding ' + jar.toURL() ant.getClass().classLoader.addURL( jar.toURL() ) }ant.taskdef( resource: 'testngtasks',
Adding to the classloader was just an idea I had found during a Google search and it didn't seem to help. As a test, I dropped in the ant-junit.jar obtained from my Ant 1.8.2 distribution into the gradle/lib directory and the problem went away. I don't want to have custom Gradle install for my users so requiring that step is unacceptable. As a workaround, I've got Gradle invoking an Ant script that runs the task but I would really like to be able to remove that in the future. This post seems to indicate that things were working until milestone-1: http://gradle.1045684.n5.nabble.com/ANN-Gradle-1-0-milestone-1-released-td3402072.html |
Comments |
Comment by Benjamin Muschko [ 15/Nov/16 ] |
As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub. We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to. Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:
We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle! |
Comment by Benjamin Muschko [ 10/Feb/17 ] |
Thanks again for reporting this issue. We haven't heard back from you after our inquiry from November 15th. We are closing this issue now. Please create an issue on GitHub if you still feel passionate about getting it resolved. |