summaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web
diff options
context:
space:
mode:
authorMaria Odea B. Ching <oching@apache.org>2008-04-17 01:03:01 +0000
committerMaria Odea B. Ching <oching@apache.org>2008-04-17 01:03:01 +0000
commit3ad24bfa3131f8d40cb0ab55632e7b90df9617bd (patch)
treea5296e4ec9b2235b92d588a3faa7a0d1abce4e21 /archiva-modules/archiva-web
parenta43d8e101d0eca0b324ea6b46a195ceeada22503 (diff)
downloadarchiva-3ad24bfa3131f8d40cb0ab55632e7b90df9617bd.tar.gz
archiva-3ad24bfa3131f8d40cb0ab55632e7b90df9617bd.zip
-added check to not generate rss feed if there are no new artifacts
-do not set the link for the feed entries git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@648913 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web')
-rw-r--r--archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java
index 36634af96..0cd5a7459 100644
--- a/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java
+++ b/archiva-modules/archiva-web/archiva-rss/src/main/java/org/apache/archiva/rss/RssFeedGenerator.java
@@ -96,9 +96,9 @@ public class RssFeedGenerator
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 ) );
@@ -136,7 +136,6 @@ public class RssFeedGenerator
{
entry = new SyndEntryImpl();
entry.setTitle( dataEntry.getTitle() );
- entry.setLink( dataEntry.getLink() );
entry.setPublishedDate( Calendar.getInstance().getTime() );
description = new SyndContentImpl();