diff options
author | Milos Kleint | 2011-07-20 05:25:53 +0000 |
---|---|---|
committer | Milos Kleint | 2011-07-20 05:25:53 +0000 |
commit | a45897346656c413f3ea7c1de3da5c2c5a2e9cbc (patch) | |
tree | c99c707ec6bb8881d32d5094195bf60f3f1d51bd | |
parent | c0e3be615997a389f62a64909b5ad3b252a393ca (diff) | |
download | m2e-core-a45897346656c413f3ea7c1de3da5c2c5a2e9cbc.tar.gz m2e-core-a45897346656c413f3ea7c1de3da5c2c5a2e9cbc.tar.xz m2e-core-a45897346656c413f3ea7c1de3da5c2c5a2e9cbc.zip |
352416 when reading text values from raw xml model, we need to trim the value to be on par with maven itself (which also trims values). next to the reported issue of wrong display, this probably fixes many other instances where the value from resolved model was not matched properly against the raw value
-rw-r--r-- | org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java index 8efc3c68..50bae0f4 100644 --- a/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java +++ b/org.eclipse.m2e.core.ui/src/org/eclipse/m2e/core/ui/internal/editing/PomEdits.java @@ -131,7 +131,9 @@ public class PomEdits { Node child = list.item(i); if (child instanceof Text) { Text text = (Text)child; - buff.append(text.getData()); + buff.append(text.getData().trim()); //352416 the value is trimmed because of the multiline values + //that get trimmed by maven itself as well, any comparison to resolved model needs to do the trimming + // or risks false negative results. } } return buff.toString(); |