mirror of https://github.com/apache/maven.git
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:
parent
b22b0cc9e2
commit
37448483a3
|
@ -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>
|
||||
|
|
|
@ -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" );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue