fix metadata parsing in mboot

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@280374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-09-12 17:26:41 +00:00
parent 057268bd56
commit db945f1dd0
1 changed files with 12 additions and 6 deletions

View File

@ -234,9 +234,13 @@ public class RepositoryMetadata
{
insideVersioning = false;
}
else if ( insideSnapshot && "snapshot".equals( rawName ) )
else if ( insideSnapshot )
{
if ( "buildNumber".equals( rawName ) )
if ( "snapshot".equals( rawName ) )
{
insideSnapshot = false;
}
else if ( "buildNumber".equals( rawName ) )
{
try
{
@ -255,15 +259,17 @@ public class RepositoryMetadata
{
metadata.setLocalCopy( Boolean.valueOf( getBodyText() ).booleanValue() );
}
insideSnapshot = false;
}
else if ( insideVersions && "versions".equals( rawName ) )
else if ( insideVersions )
{
if ( "version".equals( rawName ) )
if ( "versions".equals( rawName ) )
{
insideVersions = false;
}
else if ( "version".equals( rawName ) )
{
metadata.addVersion( getBodyText() );
}
insideVersions = false;
}
else if ( "latest".equals( rawName ) )
{