Skip to content

Commit

Permalink
[ARCHETYPE-274] Log different debug message and remove temp test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovds committed Nov 22, 2024
1 parent 72c05af commit 8c2bbd1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ public void createArchetype(ArchetypeCreationRequest request, ArchetypeCreationR
Model pom = pomManager.readPom(project.getFile());

List<String> excludePatterns = configurationProperties.getProperty(Constants.EXCLUDE_PATTERNS) != null
? Arrays.asList(
StringUtils.split(configurationProperties.getProperty(Constants.EXCLUDE_PATTERNS), ","))
? Arrays.asList(configurationProperties
.getProperty(Constants.EXCLUDE_PATTERNS)
.split(","))
: Collections.emptyList();

List<String> fileNames = resolveFileNames(pom, basedir, excludePatterns);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,11 +773,12 @@ private void processTemplates(
count++;

// Evaluate the includeCondition attribute
String includeCondition = fileSet.getIncludeCondition();
final String includeCondition = fileSet.getIncludeCondition();
if (includeCondition != null && !includeCondition.isEmpty()) {
String evaluatedCondition = evaluateExpression(context, "includeCondition", includeCondition);
if (!Boolean.parseBoolean(evaluatedCondition)) {
LOGGER.debug("Skipping fileset " + fileSet + " due to includeCondition: " + includeCondition);
LOGGER.debug("Skipping fileset " + fileSet + " due to includeCondition: " + includeCondition
+ " being: " + evaluatedCondition);
continue;
}
}
Expand Down
23 changes: 0 additions & 23 deletions tmp/test/pom.xml

This file was deleted.

3 changes: 0 additions & 3 deletions tmp/test/src/main/resources/example.json

This file was deleted.

0 comments on commit 8c2bbd1

Please sign in to comment.