Rule: Don't inherit parent relativePath

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@718479 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2008-11-18 03:45:09 +00:00
parent 00a0f513b1
commit d9a4b136c4
1 changed files with 3 additions and 1 deletions

View File

@ -407,11 +407,13 @@ public List<ModelProperty> transformToModelProperties(List<DomainModel> domainMo
//Project Name Inheritance Rule
//Packaging Inheritance Rule
//Profiles not inherited rule
//parent.relativePath not inherited rule
for ( ModelProperty mp : tmp )
{
String uri = mp.getUri();
if ( domainModels.indexOf( domainModel ) > 0 && ( uri.equals( ProjectUri.name ) ||
uri.equals( ProjectUri.packaging ) || uri.startsWith( ProjectUri.Profiles.xUri ) ) )
uri.equals( ProjectUri.packaging ) || uri.startsWith( ProjectUri.Profiles.xUri ) )
|| uri.startsWith( ProjectUri.Parent.relativePath ))
{
clearedProperties.add( mp );
}