Author: bentmann Date: Fri Dec 26 09:22:22 2008 New Revision: 729514 URL: http://svn.apache.org/viewvc?rev=729514&view=rev Log: o Created UT from MNG-3944
Added: maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/ (with props) maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml (with props) Modified: maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java Modified: maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java?rev=729514&r1=729513&r2=729514&view=diff ============================================================================== --- maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java (original) +++ maven/components/trunk/maven-project/src/test/java/org/apache/maven/project/builder/PomConstructionTest.java Fri Dec 26 09:22:22 2008 @@ -410,6 +410,16 @@ new File( pom.getValue( "properties/siteOut" ).toString() ) ); } + /* FIXME: cf. MNG-3944 + public void testInterpolationOfBasedirInPomWithUnusualName() + throws Exception + { + PomTestWrapper pom = buildPom( "basedir-interpolation/pom-with-unusual-name.xml" ); + assertEquals( pom.getBasedir(), new File( pom.getValue( "properties/prop0" ).toString() ) ); + assertEquals( pom.getBasedir(), new File( pom.getValue( "properties/prop1" ).toString() ) ); + } + //*/ + private PomArtifactResolver artifactResolver( String basedir ) { return new FileBasedPomArtifactResolver( new File( BASE_POM_DIR, basedir ) ); Propchange: maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/ ------------------------------------------------------------------------------ bugtraq:label = Enter issue ID: Propchange: maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/ ------------------------------------------------------------------------------ bugtraq:message = Issue id: %BUGID% Propchange: maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/ ------------------------------------------------------------------------------ bugtraq:number = false Propchange: maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/ ------------------------------------------------------------------------------ bugtraq:url = http://jira.codehaus.org/browse/%BUGID% Added: maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml?rev=729514&view=auto ============================================================================== --- maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml (added) +++ maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml Fri Dec 26 09:22:22 2008 @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project> + <modelVersion>4.0.0</modelVersion> + + <groupId>org.apache.maven.its.mng3944</groupId> + <artifactId>test1</artifactId> + <version>1.0-SNAPSHOT</version> + + <name>Maven Integration Test :: MNG-3944</name> + <description> + Test that interpolation of ${basedir} works for a POM that is not named "pom.xml" + </description> + + <properties> + <!-- this is where we collect all the interpolated values for the POM dump --> + <prop0>${basedir}</prop0> + <prop1>${project.basedir}</prop1> + </properties> +</project> Propchange: maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/components/trunk/maven-project/src/test/resources-project-builder/basedir-interpolation/pom-with-unusual-name.xml ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision