for ( String repoId : observableRepos )
{
for ( ArtifactMetadata artifact : metadataRepository.getArtifactsByChecksum( repoId, checksum ) )
{
// TODO: customise XMLRPC to handle non-Maven artifacts
MavenArtifactFacet facet = (MavenArtifactFacet) artifact.getFacet( MavenArtifactFacet.FACET_ID );
results.add( new Artifact( artifact.getRepositoryId(), artifact.getNamespace(),
artifact.getProject(), artifact.getVersion(),
facet != null ? facet.getType() : null ) );
}
}
}
finally
{