How can I refer to ant's "built-in" stylesheets when migrating to gradle


(Scott Taylor) #1

I’m having an issue migrating one of my ant tasks to gradle. My ant target (xslt) sets the style properties to “${ant.home}/etc/changelog.xsl”. The ant.home property doesn’t seem to be available when running from gradle. Does gradle include the xsl stylesheets that come with ant? If so how can I refer to them? If not, any recommendations where these type of files should be placed in a gradle project?


(Peter Niederwieser) #2

Gradle only ships with the Ant Jar, which doesn’t contain any stylesheet files. If you just need these files at build time, I suggest to copy them into a ‘gradle’ or ‘config’ directory. Both are common places for build resources.