kwin commented on code in PR #610:
URL:
https://github.com/apache/maven-doxia-sitetools/pull/610#discussion_r2842485597
##########
doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java:
##########
@@ -931,6 +939,58 @@ private static void copyFileFromResource(String name, File
destFile) throws IOEx
}
}
+ private boolean isResourceRelevant(String name, Context velocityContext,
Map<String, String> resourceConditions) {
+ if (resourceConditions == null ||
!resourceConditions.containsKey(name)) {
+ LOGGER.debug("No condition for resource: '{}'", name);
Review Comment:
Removed in
https://github.com/apache/maven-doxia-sitetools/pull/610/commits/58d751c87e3c6048603f7bafec17613cf57272e0.
##########
doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/DefaultSiteRenderer.java:
##########
@@ -931,6 +939,58 @@ private static void copyFileFromResource(String name, File
destFile) throws IOEx
}
}
+ private boolean isResourceRelevant(String name, Context velocityContext,
Map<String, String> resourceConditions) {
+ if (resourceConditions == null ||
!resourceConditions.containsKey(name)) {
+ LOGGER.debug("No condition for resource: '{}'", name);
+ } else {
+ String condition = resourceConditions.get(name);
+ LOGGER.debug(
+ "Evaluating condition for resource: '{}' with condition:
'{}'",
Review Comment:
Removed in
https://github.com/apache/maven-doxia-sitetools/pull/610/commits/58d751c87e3c6048603f7bafec17613cf57272e0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]