diff --git a/maven-core-it/it0091/pom.xml b/maven-core-it/it0091/pom.xml index 79bf28ded7..bd12a94e14 100644 --- a/maven-core-it/it0091/pom.xml +++ b/maven-core-it/it0091/pom.xml @@ -20,7 +20,17 @@ src/main/resources - ${filter.resources} + true + + + + ${project.build.sourceDirectory} + true + + **/*.properties + diff --git a/maven-core-it/it0091/src/test/java/org/apache/maven/it0091/PomInterpolationTest.java b/maven-core-it/it0091/src/test/java/org/apache/maven/it0091/PomInterpolationTest.java index 886d04da27..d97975017d 100644 --- a/maven-core-it/it0091/src/test/java/org/apache/maven/it0091/PomInterpolationTest.java +++ b/maven-core-it/it0091/src/test/java/org/apache/maven/it0091/PomInterpolationTest.java @@ -32,4 +32,20 @@ public class PomInterpolationTest assertEquals( testProperties.getProperty( "name" ), "jason" ); } + + public void testInterpolatedProjectSourceDirectory() + throws Exception + { + Properties testProperties = new Properties(); + + File testPropertiesFile = new File( basedir, "target/classes/source.properties" ); + + assertTrue( testPropertiesFile.exists() ); + + testProperties.load( new FileInputStream( testPropertiesFile ) ); + + File projectBuildDirectory = new File( basedir, "target" ); + + assertEquals( testProperties.getProperty( "name" ), "jason" ); + } }