From f3f3af6dd949f62d748b4280c5aa5acd5636de21 Mon Sep 17 00:00:00 2001 From: Giovanni van der Schelde Date: Fri, 22 Nov 2024 13:04:01 +0100 Subject: [PATCH] [ARCHETYPE-274] Minor improvements --- .../generator/DefaultFilesetArchetypeGenerator.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } }