stats.setKnownConsumers( gatherIds( knownContentConsumers ) );
stats.setInvalidConsumers( gatherIds( invalidContentConsumers ) );
- // generate RSS feeds
- List<ArchivaArtifact> newArtifacts = getNewArtifacts( scannerInstance.getNewFiles(), repository.getId() );
- rssFeedProcessor.process( newArtifacts );
+ if ( scannerInstance.getNewFiles() != null && scannerInstance.getNewFiles().size() > 0 )
+ {
+ // generate RSS feeds
+ List<ArchivaArtifact> newArtifacts = getNewArtifacts( scannerInstance.getNewFiles(), repository.getId() );
+ rssFeedProcessor.process( newArtifacts );
+ }
return stats;
}
feed.setLink( link );
feed.setDescription( description );
feed.setLanguage( DEFAULT_LANGUAGE );
- feed.setPublishedDate( Calendar.getInstance().getTime() );
}
-
+
+ feed.setPublishedDate( Calendar.getInstance().getTime() );
feed.setFeedType( DEFAULT_FEEDTYPE );
feed.setEntries( getEntries( dataEntries, existingEntries ) );
{
entry = new SyndEntryImpl();
entry.setTitle( dataEntry.getTitle() );
- entry.setLink( dataEntry.getLink() );
entry.setPublishedDate( Calendar.getInstance().getTime() );
description = new SyndContentImpl();