From a9ee0f2fbcbb237303ae900669f306a778e4a114 Mon Sep 17 00:00:00 2001 From: ltheussl Date: Mon, 20 Feb 2006 22:06:34 +0000 Subject: [PATCH] Make sure maven.checkstyle.header.file is set to maven.license.licenseFile by default (m1.0 compatibility). git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@379252 13f79535-47bb-0310-9956-ffa450edef68 --- checkstyle/plugin.jelly | 5 +++++ checkstyle/plugin.properties | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkstyle/plugin.jelly b/checkstyle/plugin.jelly index 965fac6b..4e5dc026 100644 --- a/checkstyle/plugin.jelly +++ b/checkstyle/plugin.jelly @@ -96,6 +96,10 @@ + + + + @@ -104,6 +108,7 @@ ================================================================= = Your project doesn't contain a header file specified as: = = ${maven.checkstyle.header.file} + = (specified by the maven.checkstyle.header.file property) = = Checkstyle needs it to check the existence of the License in = = your source files. If it can't find this file, it throws an = = error. = diff --git a/checkstyle/plugin.properties b/checkstyle/plugin.properties index 16289745..9adb38a1 100644 --- a/checkstyle/plugin.properties +++ b/checkstyle/plugin.properties @@ -26,7 +26,8 @@ maven.checkstyle.excludes = maven.checkstyle.fail.on.violation = false maven.checkstyle.cache.file = ${maven.checkstyle.dir}/checkstyle-cachefile maven.checkstyle.format = sun -maven.checkstyle.header.file = ${maven.license.licenseFile} +# this set to ${maven.license.licenseFile} in plugin.jelly: +# maven.checkstyle.header.file = maven.checkstyle.check.tests=true # If useFile is false then the checkstyle task will display violations