Help with accessing resource form Checkstyle plugin

I’m trying to extend the Checkstyle plugin with HTML report generation, see my work-in-progress at [1]. In order to do so, I need to transform the XML report via an XSL to HTML. I’d like to bundle that XSL file as a resource with the gradle-code-quality JAR. But no matter what I do, I’m unable to make the ant.xslt task find the XSL resource [2]. I’ve added the XSL in multiple places, and tried the various attributes to javaresource, still no luck.

Any hint how to achieve that?

Thanks!

[1] https://github.com/sschuberth/gradle/commit/da838c8dbb728665dc4c442e3f4a0731f9fba1c8
[2] https://github.com/sschuberth/gradle/commit/da838c8dbb728665dc4c442e3f4a0731f9fba1c8#diff-acc026f728f1fbc484243c42a182adc2R166

I’ve documented the answer here.

My PR has been pending for more than 2 months now. Would somebody kindly take the time to review it: https://github.com/gradle/gradle/pull/505