maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r544315 - /maven/components/branches/maven-2.0.x/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java
Date Mon, 04 Jun 2007 22:28:52 GMT
Author: carlos
Date: Mon Jun  4 15:28:51 2007
New Revision: 544315

URL: http://svn.apache.org/viewvc?view=rev&rev=544315
Log:
Merged rev 544314 from trunk. Fix path separator for failing test on windows

Modified:
    maven/components/branches/maven-2.0.x/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java

Modified: maven/components/branches/maven-2.0.x/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java?view=diff&rev=544315&r1=544314&r2=544315
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java
(original)
+++ maven/components/branches/maven-2.0.x/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java
Mon Jun  4 15:28:51 2007
@@ -54,6 +54,8 @@
 public class PluginParameterExpressionEvaluatorTest
     extends PlexusTestCase
 {
+    private static final String FS = System.getProperty( "file.separator" );
+
     public void testValueExtractionWithAPomValueContainingAPath()
         throws Exception
     {
@@ -229,7 +231,7 @@
         ExpressionEvaluator expressionEvaluator = createExpressionEvaluator( new MavenProject(
model ), null,
                                                                              new Properties()
);
 
-        Object value = expressionEvaluator.evaluate( "${project.build.directory}/${project.build.finalName}"
);
+        Object value = expressionEvaluator.evaluate( "${project.build.directory}" + FS +
"${project.build.finalName}" );
 
         assertEquals( "expected-directory/expected-finalName", value );
     }



Mime
View raw message