From 69a4737ea1d5fc3c637c7abc301c5863529c7129 Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 24 Apr 2006 20:26:32 +0000 Subject: [PATCH] --- .classpath | 34 +++++++++++++++---- .project | 32 +++++++++++++++++ crawler/basic/build.xml | 6 ++-- crawler/build.xml | 2 +- crawler/kiss/build.xml | 8 +++-- .../crawler/kiss/main/KissCrawler.java | 22 +++++++++++- 6 files changed, 91 insertions(+), 13 deletions(-) diff --git a/.classpath b/.classpath index 21215708..8c50115a 100644 --- a/.classpath +++ b/.classpath @@ -1,10 +1,12 @@ - - - - - + + + + + + + @@ -17,7 +19,6 @@ - @@ -41,5 +42,24 @@ - + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project index 22e7562d..42411d06 100644 --- a/.project +++ b/.project @@ -5,13 +5,45 @@ + + com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder + + + org.eclipse.jdt.core.javabuilder + + com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator + + + + + com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator + + + + + com.ibm.etools.validation.validationbuilder + + + + + com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder + + + + + com.ibm.sse.model.structuredbuilder + + + + com.genuitec.eclipse.ast.deploy.core.deploymentnature + com.genuitec.eclipse.j2eedt.core.webnature org.eclipse.jdt.core.javanature diff --git a/crawler/basic/build.xml b/crawler/basic/build.xml index 01ecc7bd..99c57682 100644 --- a/crawler/basic/build.xml +++ b/crawler/basic/build.xml @@ -3,6 +3,7 @@ + ]> @@ -15,15 +16,16 @@ &header; + &deps; + depends="crawler.src.d"> - + &trailer; diff --git a/crawler/build.xml b/crawler/build.xml index 1bb0c562..f9f17765 100644 --- a/crawler/build.xml +++ b/crawler/build.xml @@ -10,7 +10,7 @@ &header; - + &delegator; diff --git a/crawler/kiss/build.xml b/crawler/kiss/build.xml index 59ba0ab0..2223c428 100644 --- a/crawler/kiss/build.xml +++ b/crawler/kiss/build.xml @@ -3,6 +3,8 @@ + + ]> @@ -15,15 +17,17 @@ &header; + &crawlerdeps; + &deps; + depends="kisscrawler.src.d"> - + diff --git a/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java b/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java index 73559310..976d7d15 100644 --- a/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java +++ b/crawler/kiss/src/org/wamblee/crawler/kiss/main/KissCrawler.java @@ -86,6 +86,26 @@ public class KissCrawler { String programConfig = new File(aArgs[1]).getCanonicalPath(); new KissCrawler(START_URL, crawlerConfig, programConfig); } + + /** + * Constructs the crawler. This retrieves the TV guide by crawling the KiSS + * EPG guide, filters the guide for interesting programs, tries to record + * them, and sends a summary mail to the user. + * + * @param aCrawlerConfig + * Configuration file for the crawler. + * @param aProgramConfig + * Configuration file describing interesting shows. + * @throws IOException + * In case of problems reading files. + * @throws MessagingException + * In case of problems sending a mail notification. + */ + public KissCrawler(String aCrawlerConfig, + String aProgramConfig) throws IOException, NotificationException { + this(START_URL, aCrawlerConfig, aProgramConfig); + } + /** * Constructs the crawler. This retrieves the TV guide by crawling the KiSS @@ -212,7 +232,7 @@ public class KissCrawler { } return favorites.execute(); } catch (PageException e) { - String msg = "Could not login to electronic programme guide."; + String msg = "Could not complete login to electronic programme guide."; throw new PageException(msg, e); } } -- 2.31.1