mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-10-16 15:34:17 +00:00
Ignore empty and whitespace rules
This commit is contained in:
@@ -124,7 +124,7 @@ public class SmartBuilder implements Builder {
|
|||||||
|
|
||||||
session.getAllProjects().forEach(p -> {
|
session.getAllProjects().forEach(p -> {
|
||||||
String rule = p.getProperties().getProperty(MVND_BUILDER_RULE);
|
String rule = p.getProperties().getProperty(MVND_BUILDER_RULE);
|
||||||
if (rule != null) {
|
if (rule != null && !rule.trim().isEmpty()) {
|
||||||
list.add(rule + " before " + p.getGroupId() + ":" + p.getArtifactId());
|
list.add(rule + " before " + p.getGroupId() + ":" + p.getArtifactId());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user