diff --git a/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java b/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java index ac8557b070..2666302cb1 100644 --- a/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java +++ b/maven-core/src/test/java/org/apache/maven/plugin/PluginParameterExpressionEvaluatorTest.java @@ -57,6 +57,8 @@ import java.util.Properties; public class PluginParameterExpressionEvaluatorTest extends PlexusTestCase { + private static final String FS = System.getProperty( "file.separator" ); + public void testValueExtractionWithAPomValueContainingAPath() throws Exception { @@ -254,7 +256,7 @@ public class PluginParameterExpressionEvaluatorTest 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( new File( "expected-directory/expected-finalName" ).getCanonicalPath(), value ); }