You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2008/10/12 13:50:48 UTC

svn commit: r703792 - /maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/it/AbstractEclipsePluginIT.java

Author: hboutemy
Date: Sun Oct 12 04:50:47 2008
New Revision: 703792

URL: http://svn.apache.org/viewvc?rev=703792&view=rev
Log:
restore JDK 1.4 compatibility ( String.replace( CharSequence, CharSequence ) is JDK 1.5+ )

Modified:
    maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/it/AbstractEclipsePluginIT.java

Modified: maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/it/AbstractEclipsePluginIT.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/it/AbstractEclipsePluginIT.java?rev=703792&r1=703791&r2=703792&view=diff
==============================================================================
--- maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/it/AbstractEclipsePluginIT.java (original)
+++ maven/plugins/trunk/maven-eclipse-plugin/src/test/java/org/apache/maven/plugin/eclipse/it/AbstractEclipsePluginIT.java Sun Oct 12 04:50:47 2008
@@ -676,7 +676,7 @@
                 Map.Entry entry = (Entry) iter.next();
                 String variable = (String) entry.getKey();
                 String replacement = (String) entry.getValue();
-                result = result.replace( variable, replacement );
+                result = StringUtils.replace( result, variable, replacement );
             }
         }