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 OutputProperties outputProperties;
|
||||||
|
|
||||||
|
private final TemplateProperties templateProperties;
|
||||||
|
|
||||||
private final RulesProperties rulesProperties;
|
private final RulesProperties rulesProperties;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -80,7 +82,7 @@ class CheckstyleWriter implements CommandLineRunner {
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
val checkstyleXmlTemplate = outputProperties.getCheckstyleXmlTemplate();
|
val checkstyleXmlTemplate = templateProperties.getCheckstyleXml();
|
||||||
if (!checkstyleXmlTemplate.toFile()
|
if (!checkstyleXmlTemplate.toFile()
|
||||||
.exists()) {
|
.exists()) {
|
||||||
throw new IOException(checkstyleXmlTemplate.toString());
|
throw new IOException(checkstyleXmlTemplate.toString());
|
||||||
|
|
Loading…
Reference in a new issue