maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krosenv...@apache.org
Subject svn commit: r1417053 - /maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
Date Tue, 04 Dec 2012 17:37:29 GMT
Author: krosenvold
Date: Tue Dec  4 17:37:28 2012
New Revision: 1417053

URL: http://svn.apache.org/viewvc?rev=1417053&view=rev
Log:
o Restored compatibility

Modified:
    maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java

Modified: maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java?rev=1417053&r1=1417052&r2=1417053&view=diff
==============================================================================
--- maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java (original)
+++ maven/shared/trunk/maven-verifier/src/main/java/org/apache/maven/it/Verifier.java Tue
Dec  4 17:37:28 2012
@@ -949,14 +949,15 @@ public class Verifier
      * @throws IOException If the file could not be filtered.
      * @since 1.2
      */
-    public File filterFile( String srcPath, String dstPath, String fileEncoding, Map<String,
Object> filterProperties )
+    public File filterFile( String srcPath, String dstPath, String fileEncoding, Properties
filterProperties )
         throws IOException
     {
         File srcFile = new File( getBasedir(), srcPath );
         String data = FileUtils.fileRead( srcFile, fileEncoding );
 
-        for ( String token : filterProperties.keySet() )
+        for ( Iterator it = filterProperties.keySet().iterator(); it.hasNext(); )
         {
+            String token = (String) it.next();
             String value = String.valueOf( filterProperties.get( token ) );
             data = StringUtils.replace( data, token, value );
         }



Mime
View raw message