summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-05-15 01:46:50 +0200
committerSven Gothel <[email protected]>2019-05-15 01:46:50 +0200
commite5155b34e7e9f99ccb30ee7923ec9c0562cebc55 (patch)
tree5d0ba95177abca8db98d509f6c737dd7260ab224
parent239c5694cb08d72c042b8cfaa2609200e87e94d8 (diff)
Updateing dependencies: rometools 1.12, freemarker 2.3.28, java compiler 1.8
-rw-r--r--pom.xml44
-rw-r--r--src/main/java/com/jogamp/hungryharry/FeedAggregator.java34
2 files changed, 56 insertions, 22 deletions
diff --git a/pom.xml b/pom.xml
index da8790c..0b8a49b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,8 +14,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>1.6</source>
- <target>1.6</target>
+ <source>1.8</source>
+ <target>1.8</target>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
@@ -51,19 +51,47 @@
<scope>test</scope>
</dependency>
<dependency>
- <groupId>net.java.dev.rome</groupId>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>2.12.0</version>
+ <scope>test</scope>
+ </dependency>
+ <!--
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <version>4.5.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient-cache</artifactId>
+ <version>4.5.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpmime</artifactId>
+ <version>4.5.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>fluent-hc</artifactId>
+ <version>4.5.8</version>
+ </dependency>
+ -->
+ <dependency>
+ <groupId>com.rometools</groupId>
<artifactId>rome</artifactId>
- <version>1.0.0</version>
+ <version>1.12.0</version>
</dependency>
<dependency>
- <groupId>net.java.dev.rome</groupId>
+ <groupId>com.rometools</groupId>
<artifactId>rome-fetcher</artifactId>
- <version>1.0.0</version>
+ <version>1.12.0</version>
</dependency>
<dependency>
- <groupId>freemarker</groupId>
+ <groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
- <version>2.3.9</version>
+ <version>2.3.28</version>
</dependency>
</dependencies>
</project>
diff --git a/src/main/java/com/jogamp/hungryharry/FeedAggregator.java b/src/main/java/com/jogamp/hungryharry/FeedAggregator.java
index cc009f2..12f87f8 100644
--- a/src/main/java/com/jogamp/hungryharry/FeedAggregator.java
+++ b/src/main/java/com/jogamp/hungryharry/FeedAggregator.java
@@ -5,10 +5,25 @@ package com.jogamp.hungryharry;
import com.jogamp.hungryharry.Config.Feed;
import com.jogamp.hungryharry.Config.Planet;
-import com.sun.syndication.feed.synd.SyndContent;
-import com.sun.syndication.io.SyndFeedOutput;
-import com.sun.syndication.feed.synd.SyndEntry;
-import com.sun.syndication.io.FeedException;
+
+import com.rometools.rome.feed.synd.SyndContent;
+import com.rometools.rome.feed.synd.SyndEntry;
+import com.rometools.rome.feed.synd.SyndFeed;
+import com.rometools.rome.feed.synd.SyndFeedImpl;
+import com.rometools.rome.io.FeedException;
+import com.rometools.rome.io.SyndFeedInput;
+import com.rometools.rome.io.SyndFeedOutput;
+import com.rometools.rome.io.XmlReader;
+import com.rometools.fetcher.FeedFetcher;
+import com.rometools.fetcher.impl.FeedFetcherCache;
+import com.rometools.fetcher.impl.HashMapFeedInfoCache;
+import com.rometools.fetcher.impl.HttpURLFeedFetcher;
+
+import freemarker.template.Configuration;
+import freemarker.template.ObjectWrapper;
+import freemarker.template.Template;
+import freemarker.template.TemplateException;
+
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
@@ -16,16 +31,6 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.List;
-import com.sun.syndication.feed.synd.SyndFeedImpl;
-import com.sun.syndication.feed.synd.SyndFeed;
-import com.sun.syndication.fetcher.FeedFetcher;
-import com.sun.syndication.fetcher.impl.FeedFetcherCache;
-import com.sun.syndication.fetcher.impl.HashMapFeedInfoCache;
-import com.sun.syndication.fetcher.impl.HttpURLFeedFetcher;
-import freemarker.template.Configuration;
-import freemarker.template.ObjectWrapper;
-import freemarker.template.Template;
-import freemarker.template.TemplateException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
@@ -229,6 +234,7 @@ public class FeedAggregator {
FeedFetcherCache feedInfoCache = HashMapFeedInfoCache.getInstance();
FeedFetcher feedFetcher = new HttpURLFeedFetcher(feedInfoCache);
+ // trust foreign doctype? feedFetcher.setAllowDoctypes(true);
List<SyndEntry> collectedEntries = new ArrayList<SyndEntry>();
Set<String> ids = new HashSet<String>();