(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sun, 30 Apr 2006 21:12:28 +0000 (21:12 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Sun, 30 Apr 2006 21:12:28 +0000 (21:12 +0000)
crawler/kiss/build.xml
crawler/kiss/conf/kiss/notification.xml [deleted file]
crawler/kiss/conf/kiss/programs.xml
crawler/kiss/conf/kiss/run.sh
crawler/kiss/docs/content/xdocs/index.xml
crawler/kiss/src/crawler-standalone.xml
crawler/kiss/src/org.wamblee.crawler.notification.xml [moved from crawler/kissweb/src/org.wamblee.crawler.notification.xml with 62% similarity]
crawler/kissweb/src/beanRefContext.xml

index bae9b1e10be6bab8926ab7109f048166356cecde..0b32f188db8e05cedf86a46dcf2df4914de872cc 100644 (file)
@@ -48,7 +48,7 @@
            <fileset dir="conf/kiss">
                  <include name="config.xml.example"/>
                  <include name="programs.xml"/>
-                 <include name="notification.xml"/>
+                 <include name="org.wamblee.crawler.properties"/>
                </fileset>
          </copy>
          
diff --git a/crawler/kiss/conf/kiss/notification.xml b/crawler/kiss/conf/kiss/notification.xml
deleted file mode 100644 (file)
index 29148da..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
-
-<beans>
-    
-  <!-- Mail server configuration --> 
-  <bean id="org.wamblee.crawler.kiss.notification.MailServer"
-      class="org.wamblee.crawler.kiss.notification.MailServer">
-      <constructor-arg><value>falcon</value></constructor-arg>
-      <constructor-arg><value type="int">25</value></constructor-arg>
-      <constructor-arg><null/></constructor-arg> <!-- username -->
-      <constructor-arg><null/></constructor-arg> <!-- password --> 
-  </bean>
-  
-  <bean id="org.wamblee.xml.ClasspathUriResolver"
-      class="org.wamblee.xml.ClasspathUriResolver">
-  </bean>
-  
-  <bean id="org.wamblee.xml.XslTransformer"
-      class="org.wamblee.xml.XslTransformer">
-      <constructor-arg><ref local="org.wamblee.xml.ClasspathUriResolver"/></constructor-arg>
-  </bean>
-  
-  <bean id="org.wamblee.crawler.kiss.notification.Notifier"
-      class="org.wamblee.crawler.kiss.notification.MailNotifier">
-      <constructor-arg><value>kiss@brakkee.org</value></constructor-arg>
-      <constructor-arg><value>erik@brakkee.org</value></constructor-arg>
-      <constructor-arg><value>Recording summary for today</value></constructor-arg>
-      <constructor-arg><value>reportToHtml.xsl</value></constructor-arg>
-      <constructor-arg><value>reportToText.xsl</value></constructor-arg>
-      <constructor-arg><ref local="org.wamblee.crawler.kiss.notification.MailServer"/></constructor-arg>
-      <constructor-arg><ref local="org.wamblee.xml.XslTransformer"/></constructor-arg>
-  </bean>
-</beans> 
\ No newline at end of file
index ac87857b6d362393fe90da8caa26cc1104fd3d7f..6236688cbc2f6d7130efa6b60231b3f76ea3b6d4 100644 (file)
@@ -1,19 +1,5 @@
 <programs>
   
-  <notification>
-    <from>kiss@brakkee.org</from>
-    <to>erik@brakkee.org</to>
-    <subject>Recording summary for today</subject>
-    <smtp>
-      <host>falcon</host>
-      <port>25</port>
-    </smtp>
-    <format>
-      <html>reportToHtml.xsl</html>
-      <text>reportToText.xsl</text>
-    </format>
-  </notification>
-  
   <program>
     <category>horror</category>
     <action>notify</action>
index f04c0742b9521b98ce3bbf19e6727b14334454a9..e6280b4bc32df31036e5d2a824cd396a9aab836e 100755 (executable)
@@ -2,7 +2,7 @@
 
 cd $( dirname $0 )/../conf
 
-CP=""
+CP="."
 for i in ../lib/*.jar
 do
   CP="$i:$CP"
index d2cc2149b0cb73ada6221d38065bc275f67d21cf..18b1d616dda820f63c3ce23192ae5fa83e4af182 100644 (file)
       <title>Configuring the crawler</title>
       
       <p>
-        The crawler comes with two configuration files, namely 
-        <code>crawler.xml</code> and <code>programs.xml</code>. 
+        The crawler comes with three configuration files:
       </p>
+      <ul>
+        <li><code>crawler.xml</code>: basic crawler configuration
+          tailored to the KiSS electronic programme guide.</li>
+        <li><code>programs.xml</code>: containing a description of which 
+          programs must be recorded and which programs are interesting.</li>
+        <li><code>org.wamblee.crawler.properties</code>: Containing a configuration of 
+          how to notify users of results. </li>
+      </ul>
+   
       
       <section>
         <title>Crawler configuration <code>crawler.xml</code></title>
           Programme Guide. 
         </p>
       </section>
-      
-      <section>
-        <title>Program configuration: <code>programs.xml</code></title>
-        
-        <p>
-          The <code>programs.xml</code> file contains the following 
-          configuration items: 
-        </p>
-        <ul>
-          <li>Notification configuration: Describing how to 
-            do notification of the results of crawling the site. </li>
-          <li>Zero or more configurations of interesting programs.  </li>
-        </ul>
-        <section>
-          <title>Notification configuration</title>
-          <p>
-            Notification is configured in the (surprise, surprise!) 
-            <code>notification</code> element. This notification element 
-            is used to configure respectively sender mail address (= reply 
-            address), recipient address, subject of the email, smtp server
-            host and port and optional username and password. 
-            In addition it contains the names of the stylesheets to 
-            generate the HTML and Text reports. These stylesheets 
-            should not be changed. 
-          </p>
-        </section>
-        
+
         <section>
           <title>Program configuration</title>
           <p>
           </p>
           
         </section>
-        
-        
+      
+      <section>
+        <title>Notification configuration</title>
+        <p>
+           Edit the configuration file <code>org.wamblee.crawler.properties</code>. 
+          The properties file is self-explanatory. 
+        </p>
       </section>
     </section>
     
+   
+    
+    
     <section>
       <title>Installing and running the crawler</title>
       
index e19c9248a0e95889ac050e9cdee70d9f8fd519d4..860240bb4398592095b9c60c0fd046a3fcdddfb4 100644 (file)
@@ -7,7 +7,8 @@
          class="org.springframework.context.support.ClassPathXmlApplicationContext">
          <constructor-arg>
              <list>
-                <value>file:notification.xml</value>
+                <value>org.wamblee.crawler.properties.xml</value>        
+                <value>org.wamblee.crawler.notification.xml</value>
              </list>
          </constructor-arg>
      </bean>
similarity index 62%
rename from crawler/kissweb/src/org.wamblee.crawler.notification.xml
rename to crawler/kiss/src/org.wamblee.crawler.notification.xml
index 29148da62dd0ea041badfd6b11f74d04273ff3fe..3b8d58a3aafe80c25e92667e627978a4f2e80fa2 100644 (file)
@@ -6,10 +6,10 @@
   <!-- Mail server configuration --> 
   <bean id="org.wamblee.crawler.kiss.notification.MailServer"
       class="org.wamblee.crawler.kiss.notification.MailServer">
-      <constructor-arg><value>falcon</value></constructor-arg>
-      <constructor-arg><value type="int">25</value></constructor-arg>
-      <constructor-arg><null/></constructor-arg> <!-- username -->
-      <constructor-arg><null/></constructor-arg> <!-- password --> 
+      <constructor-arg><value>${org.wamblee.crawler.smtp.host}</value></constructor-arg>
+      <constructor-arg><value type="int">${org.wamblee.crawler.smtp.port}</value></constructor-arg>
+      <constructor-arg><value>${org.wamblee.crawler.smtp.username}</value></constructor-arg> 
+      <constructor-arg><value>${org.wamblee.crawler.smtp.password}</value></constructor-arg>  
   </bean>
   
   <bean id="org.wamblee.xml.ClasspathUriResolver"
@@ -23,9 +23,9 @@
   
   <bean id="org.wamblee.crawler.kiss.notification.Notifier"
       class="org.wamblee.crawler.kiss.notification.MailNotifier">
-      <constructor-arg><value>kiss@brakkee.org</value></constructor-arg>
-      <constructor-arg><value>erik@brakkee.org</value></constructor-arg>
-      <constructor-arg><value>Recording summary for today</value></constructor-arg>
+      <constructor-arg><value>${org.wamblee.crawler.notification.from}</value></constructor-arg>
+      <constructor-arg><value>${org.wamblee.crawler.notification.to}</value></constructor-arg>
+      <constructor-arg><value>${org.wamblee.crawler.notification.subject}</value></constructor-arg>
       <constructor-arg><value>reportToHtml.xsl</value></constructor-arg>
       <constructor-arg><value>reportToText.xsl</value></constructor-arg>
       <constructor-arg><ref local="org.wamblee.crawler.kiss.notification.MailServer"/></constructor-arg>
index f1a89bd42bbf328ef5b726c2d7e4032ccbd30b34..2e139dbca6898355d6c1b5b6ac7801544075f9af 100644 (file)
@@ -7,6 +7,7 @@
          class="org.springframework.context.support.ClassPathXmlApplicationContext">
          <constructor-arg>
              <list>
+                 <value>org.wamblee.crawler.properties.xml</value>
                  <value>org.wamblee.crawler.notification.xml</value>
                  <value>org.wamblee.crawler.kiss.xml</value>
              </list>