import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
-import java.io.CharArrayWriter;
-import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
-import java.security.MessageDigest;
-import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import org.apache.maven.archiva.configuration.ArchivaConfiguration;
import org.apache.maven.archiva.configuration.RepositoryGroupConfiguration;
import org.apache.maven.archiva.model.ArchivaRepositoryMetadata;
-import org.apache.maven.archiva.model.VersionedReference;
import org.apache.maven.archiva.repository.content.RepositoryRequest;
import org.apache.maven.archiva.repository.metadata.MetadataTools;
import org.apache.maven.archiva.repository.metadata.RepositoryMetadataException;
return null;
}
- private MutableResourceContext getMetadataLogicalPathWithoutChecksum(ResourceContext resourceContext)
- {
- MutableResourceContext context = new MutableResourceContext(resourceContext);
- if (context.getLogicalPath().endsWith(".md5") || context.getLogicalPath().endsWith(".sha1"))
- {
- context.setLogicalPath(context.getLogicalPath().substring(0, context.getLogicalPath().lastIndexOf('.')));
- }
- return context;
- }
-
public boolean read(ResourceContext context, OutputStream os)
{
final RepositoryGroupConfiguration groupConfiguration = getGroupConfiguration(context.getRepositoryId());
}
}
+ private MutableResourceContext getMetadataLogicalPathWithoutChecksum(ResourceContext resourceContext)
+ {
+ MutableResourceContext context = new MutableResourceContext(resourceContext);
+ if (context.getLogicalPath().endsWith(".md5") || context.getLogicalPath().endsWith(".sha1"))
+ {
+ context.setLogicalPath(context.getLogicalPath().substring(0, context.getLogicalPath().lastIndexOf('.')));
+ }
+ return context;
+ }
+
private boolean readFromGroup(final RepositoryGroupConfiguration groupConfiguration, ResourceContext context, OutputStream os)
{
for (final String repositoryId : groupConfiguration.getRepositories())