I haven't run this through the debugger, but it appears that project.file(stylesheet) returns an absolute filename correctly, but when .parse() is called, stylesheet is passed instead of this.options.stylesheet. I'm not sure why that's getting the filename wrong. Maybe something about how IntelliJ configures Gradle?
But it looks like passing this.options.stylesheet would work more consistently.
I noticed the following bug this morning. When I load a Gradle file in IntelliJ, I see warnings like this one:
The gradle script contains a
SaxonXsltTask
that identifies the stylesheet like this:I believe the warning is from
stylesheet()
:I haven't run this through the debugger, but it appears that
project.file(stylesheet)
returns an absolute filename correctly, but when.parse()
is called,stylesheet
is passed instead ofthis.options.stylesheet
. I'm not sure why that's getting the filename wrong. Maybe something about how IntelliJ configures Gradle?But it looks like passing
this.options.stylesheet
would work more consistently.