builder:CheckstyleWriter: get template location from TemplateProperties

This commit is contained in:
Paul Campbell 2017-01-05 16:20:22 +00:00
parent 2defbd6be3
commit 44603084fa

View file

@ -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());