Skip to content

Commit

Permalink
Make checkstyleXsltFolder a T.source to ensure proper invalidation (
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi authored Sep 12, 2024
1 parent 2e5b649 commit ade2525
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ trait CheckstyleXsltModule extends CheckstyleModule {
*/
final override def checkstyleFormat: T[String] = "xml"

/**
* Folder containing the XSLT transformations. Defaults to `checkstyle-xslt`
* in the workspace root, but can be overriden on a per-module basis
*/
def checkstyleXsltfFolder = T.source(T.workspace / "checkstyle-xslt")

/**
* Set of [[CheckstyleXsltReport]]s.
*
Expand All @@ -69,7 +75,7 @@ trait CheckstyleXsltModule extends CheckstyleModule {
* }}}
*/
def checkstyleXsltReports: T[Set[CheckstyleXsltReport]] = T {
val dir = millSourcePath / "checkstyle-xslt"
val dir = checkstyleXsltfFolder().path

if (os.exists(dir)) {
val dest = T.dest
Expand Down

0 comments on commit ade2525

Please sign in to comment.