builder:TemplateProperties: added

This commit is contained in:
Paul Campbell 2017-01-05 16:18:59 +00:00
parent d2a9f6ffa0
commit e7f30c760b
3 changed files with 39 additions and 3 deletions

View file

@ -30,7 +30,5 @@ class OutputProperties {
private Map<RuleLevel, String> rulesetFiles; private Map<RuleLevel, String> rulesetFiles;
/** /**
* Template for Checkstyle XML files.
*/ */
private Path checkstyleXmlTemplate;
} }

View file

@ -0,0 +1,35 @@
package net.kemitix.checkstyle.ruleset.builder;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.nio.file.Path;
/**
* Properties for template files.
*
* @author Paul Campbell (pcampbell@kemitix.net)
*/
@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "template")
class TemplateProperties {
/**
* Template for Checkstyle XML files.
*/
private Path checkstyleXml;
/**
* Template for README.md file.
*/
private Path readmeTemplate;
/**
* The directory containing the README fragments.
*/
private Path readmeFragments;
}

View file

@ -6,7 +6,10 @@ output:
JAVADOC: checkstyle-3-javadoc.xml JAVADOC: checkstyle-3-javadoc.xml
TWEAKS: checkstyle-4-tweaks.xml TWEAKS: checkstyle-4-tweaks.xml
COMPLEXITY: checkstyle-5-complexity.xml COMPLEXITY: checkstyle-5-complexity.xml
checkstyle-xml-template: builder/src/main/resources/checkstyle-template.xml template:
checkstyle-xml: builder/src/main/resources/checkstyle-template.xml
readme-template: builder/src/main/resources/README-template.md
readme-fragments: builder/src/main/resources/rules
rules: rules:
- -
name: AbbreviationAsWordInName name: AbbreviationAsWordInName