private void putStorageItem( final String path, final ContentLocator contentLocator ) throws IOException { try { ResourceStoreRequest req = new ResourceStoreRequest( path ); DefaultStorageFileItem mdFile = new DefaultStorageFileItem( repository, req, true, true, contentLocator ); repository.storeItem( false, mdFile ); // TODO: why? storeItem() already does this!!! repository.removeFromNotFoundCache( req ); } catch ( Exception e ) { throw new IOException( e ); } }
private void createVirtualYumConfigFile(final MavenRepository repository) { DefaultStorageFileItem file = new DefaultStorageFileItem( repository, new ResourceStoreRequest(YumConfigContentGenerator.configFilePath(repository.getId())), true, false, new StringContentLocator(YumConfigContentGenerator.ID) ); file.setContentGeneratorId(YumConfigContentGenerator.ID); try { repository.storeItem(false, file); } catch (Exception e) { LOG.warn("Could not install yum.repo file '{}' due to {}/{}", file, e.getClass().getName(), e.getMessage()); } }
getMavenRepository().storeItem( false, item ); getMavenRepository().storeItem( false, new DefaultStorageFileItem( getMavenRepository(), req, true, true, new StringContentLocator( getMavenRepository().storeItem( false, new DefaultStorageFileItem( getMavenRepository(), req, true, true, new StringContentLocator(
getMavenRepository().storeItem( request, is, userAttributes ); getMavenRepository().storeItem( false, new DefaultStorageFileItem( getMavenRepository(), request, true, true, new StringContentLocator( getMavenRepository().storeItem( false, new DefaultStorageFileItem( getMavenRepository(), request, true, true, new StringContentLocator(