Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/main/java/org/apache/maven/plugins/antrun/AntRunMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -461,9 +461,13 @@ public void copyProperties(Project antProject, MavenProject mavenProject) {

for (Map.Entry<String, Object> entry : antProps.entrySet()) {
String key = entry.getKey();
if (mavenProperties.getProperty(key) != null) {
getLog().warn("Ant property '" + key + "=" + mavenProperties.getProperty(key)
+ "' clashes with an existing Maven property, SKIPPING this Ant property propagation.");
String mavenValue = mavenProperties.getProperty(key);
if (mavenValue != null) {
if (!mavenValue.equals(entry.getValue())) {
getLog().info("Ant property '" + key + "=" + entry.getValue()
+ "' clashes with an existing Maven property value '" + mavenValue
+ "', SKIPPING this Ant property propagation.");
}
continue;
}
// it is safe to call toString directly since the value cannot be null in Hashtable
Expand Down
Loading