From 37448483a3751a09a964a1bfa3b2368701586591 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Wed, 12 Apr 2006 05:53:10 +0000 Subject: [PATCH] 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 --- maven-core-it/it0091/pom.xml | 12 +++++++++++- .../maven/it0091/PomInterpolationTest.java | 16 ++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) 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" ); + } }