log.info(RepositoryStringUtils.getFormattedMessage("Trying to get remote index for repository %s",
repository));
// this will force remote check for newer files
repository.expireCaches(new ResourceStoreRequest(PUBLISHING_PATH_PREFIX));
IndexUpdateRequest updateRequest = new IndexUpdateRequest(context, new ResourceFetcher()
{
public void connect(String id, String url)
throws IOException
{
}
public void disconnect()
throws IOException
{
}
public InputStream retrieve(String name)
throws IOException
{
TaskUtil.checkInterruption();
ResourceStoreRequest req = new ResourceStoreRequest(PUBLISHING_PATH_PREFIX + "/" + name);
try {
StorageFileItem item = null;
// XXX: ensure it goes to remote only and throws FileNotFoundException if nothing found on remote