builder:CheckstyleWriter: get template location from TemplateProperties
This commit is contained in:
parent
2defbd6be3
commit
44603084fa
1 changed files with 3 additions and 1 deletions
|
@ -51,6 +51,8 @@ class CheckstyleWriter implements CommandLineRunner {
|
|||
|
||||
private final OutputProperties outputProperties;
|
||||
|
||||
private final TemplateProperties templateProperties;
|
||||
|
||||
private final RulesProperties rulesProperties;
|
||||
|
||||
@Override
|
||||
|
@ -80,7 +82,7 @@ class CheckstyleWriter implements CommandLineRunner {
|
|||
|
||||
|
||||
try {
|
||||
val checkstyleXmlTemplate = outputProperties.getCheckstyleXmlTemplate();
|
||||
val checkstyleXmlTemplate = templateProperties.getCheckstyleXml();
|
||||
if (!checkstyleXmlTemplate.toFile()
|
||||
.exists()) {
|
||||
throw new IOException(checkstyleXmlTemplate.toString());
|
||||
|
|
Loading…
Reference in a new issue