diff --git a/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java b/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java index a8777008..3a32b20c 100644 --- a/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java +++ b/archetype-common/src/main/java/org/apache/maven/archetype/generator/DefaultFilesetArchetypeGenerator.java @@ -772,13 +772,11 @@ private void processTemplates( FileSet fileSet = iterator.next(); count++; - // Evaluate the includeCondition attribute final String includeCondition = fileSet.getIncludeCondition(); if (includeCondition != null && !includeCondition.isEmpty()) { - String evaluatedCondition = evaluateExpression(context, "includeCondition", includeCondition); + final String evaluatedCondition = evaluateExpression(context, "includeCondition", includeCondition); if (!Boolean.parseBoolean(evaluatedCondition)) { - LOGGER.debug("Skipping fileset " + fileSet + " due to includeCondition: " + includeCondition - + " being: " + evaluatedCondition); + LOGGER.debug(String.format("Skipping fileset %s due to includeCondition: %s being: %s", fileSet, includeCondition, evaluatedCondition)); continue; } }