o Fixed inheritance to exclude project name

git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@777237 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-05-21 19:58:13 +00:00
parent e4d52d6c28
commit 3f59f88d86
1 changed files with 13 additions and 0 deletions

View File

@ -76,6 +76,19 @@ public class MavenModelMerger
super.mergeModel( target, source, sourceDominant, context ); super.mergeModel( target, source, sourceDominant, context );
} }
@Override
protected void mergeModel_Name( Model target, Model source, boolean sourceDominant, Map<Object, Object> context )
{
String src = source.getName();
if ( src != null )
{
if ( sourceDominant )
{
target.setName( src );
}
}
}
@Override @Override
protected void mergeModel_Url( Model target, Model source, boolean sourceDominant, Map<Object, Object> context ) protected void mergeModel_Url( Model target, Model source, boolean sourceDominant, Map<Object, Object> context )