Skip to content

Commit

Permalink
[ARCHETYPE-274] Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovds committed Nov 22, 2024
1 parent 2f76cef commit f3f3af6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit f3f3af6

Please sign in to comment.