o adding some tests for mng-2220 and 2223

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@393391 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2006-04-12 05:53:10 +00:00
parent b22b0cc9e2
commit 37448483a3
2 changed files with 27 additions and 1 deletions

View File

@ -20,7 +20,17 @@
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>${filter.resources}</filtering>
<filtering>true</filtering>
<!--
<filtering>${filtering.resources}</filtering>
-->
</resource>
<resource>
<directory>${project.build.sourceDirectory}</directory>
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</build>

View File

@ -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" );
}
}