This is an automated email from the git hooks/post-receive script. New commit to branch develop in repository observe. See https://gitlab.nuiton.org/codelutin/observe.git commit 1d5788495ecbb014b0ab97412d5b80817eae9f64 Author: Tony CHEMIT <chemit@codelutin.com> Date: Wed Sep 7 13:09:59 2016 +0200 improve logs --- .../fr/ird/observe/maven/plugins/toolbox/CheckApiMojo.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/toolbox-maven-plugin/src/main/java/fr/ird/observe/maven/plugins/toolbox/CheckApiMojo.java b/toolbox-maven-plugin/src/main/java/fr/ird/observe/maven/plugins/toolbox/CheckApiMojo.java index c3a2992..90caadb 100644 --- a/toolbox-maven-plugin/src/main/java/fr/ird/observe/maven/plugins/toolbox/CheckApiMojo.java +++ b/toolbox-maven-plugin/src/main/java/fr/ird/observe/maven/plugins/toolbox/CheckApiMojo.java @@ -169,6 +169,8 @@ public class CheckApiMojo extends AbstractPlugin { this.translationMap = Collections.unmodifiableMap(translationMap); + getLog().info(translationMap.size() + " type(s) detected."); + } @Override @@ -204,6 +206,9 @@ public class CheckApiMojo extends AbstractPlugin { } + getLog().info(translationMap.size() + " class(es) checked."); + getLog().info(methodCount + " method(s) checked."); + } @Override @@ -226,6 +231,8 @@ public class CheckApiMojo extends AbstractPlugin { this.verbose = verbose; } + private int methodCount; + private void checkClass(Class<?> sourceClass, Class<?> targetClass) throws MissingMethodException, MismatchMethodParameterNameException, MissingClassException { Method[] sourceDeclaredMethods = sourceClass.getDeclaredMethods(); @@ -242,6 +249,8 @@ public class CheckApiMojo extends AbstractPlugin { for (Method sourceMethod : sourceDeclaredMethods) { + methodCount++; + Method targetMethod; try { targetMethod = targetClass.getDeclaredMethod(sourceMethod.getName(), (Class<?>[]) sourceMethod.getParameterTypes()); @@ -283,7 +292,9 @@ public class CheckApiMojo extends AbstractPlugin { } - getLog().info(targetClass.getName() + " is conform to #" + sourceClass.getName()); + if (isVerbose()) { + getLog().info(targetClass.getName() + " is conform to #" + sourceClass.getName()); + } } -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.