</target>
<target name="dist-lite" depends="clean,dist-lite-product,dist-lite-test">
+ <if>
+ <isset property="post-dist-lite"/>
+ <then>
+ <antcall target="post-dist-lite"/>
+ </then>
+ </if>
</target>
<target name="dist-javadoc" depends="javadoc,pdfdoc,testjavadoc">
mentioned below again -->
<target name="module.test.deps" depends="wamblee.support.test.d,wamblee.crawler.test.d">
</target>
+
+ <property name="post-dist-lite" value="yes"/>
+
+ <target name="post-dist-lite" depends="init_directory_properties">
+ <property name="module.install.dir" value="${module.build.dir}/kiss-crawler"/>
+
+ <mkdir dir="${module.install.dir}"/>
+ <mkdir dir="${module.install.dir}/bin"/>
+ <copy todir="${module.install.dir}/bin">
+ <fileset dir="conf/kiss">
+ <include name="run.sh"/>
+ </fileset>
+ </copy>
+
+ <mkdir dir="${module.install.dir}/conf"/>
+ <copy todir="${module.install.dir}/conf">
+ <fileset dir="conf/kiss">
+ <include name="config.xml.example"/>
+ <include name="programs.xml"/>
+ </fileset>
+ </copy>
+
+ <mkdir dir="${module.install.dir}/lib"/>
+ <copy todir="${module.install.dir}/lib" flatten="yes">
+ <fileset dir="${external.lib.dir}" includes="*.jar"/>
+ <fileset dir="${module.build.dir}" includes="**/*.jar"/>
+ </copy>
+
+ <zip destfile="${module.build.dir}/kiss-crawler.zip"
+ basedir="${module.install.dir}"/>
+ </target>
&trailer;
<match>star trek</match>
</program>
+ <program>
+ <priority>9</priority>
+ <match>dr.*who</match>
+ </program>
+
+ <program>
+ <priority>9</priority>
+ <match>the.*x.*files</match>
+ </program>
+
<program>
<priority>9</priority>
<match>buffy.*vampire.*slayer</match>
</program>
<program>
+ <action>notify</action>
<match>de.*wereld.*draait.*door</match>
</program>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
<document>
<header>
- <title>Welcome to the KiSS crawler</title>
+ <title>Automatic recording for KiSS hard disk recorders</title>
</header>
<body>
<section id="overview">
*/
private static final String START_URL = "http://epg.kml.kiss-technology.com/login_core.php";
- /**
- * Crawler configuration file.
- */
- private static final String CRAWLER_CONFIG = "config.xml";
-
- /**
- * Configuration file describing interesting programs.
- */
- private static final String PROGRAM_CONFIG = "programs.xml";
-
/**
* Regular expression for matching time interval strings in the retrieved
* pages.
* In case of problems.
*/
public static void main(String[] aArgs) throws Exception {
- new KissCrawler(START_URL, CRAWLER_CONFIG, PROGRAM_CONFIG);
+ String crawlerConfig = new File(aArgs[0]).getCanonicalPath();
+ String programConfig = new File(aArgs[1]).getCanonicalPath();
+ new KissCrawler(START_URL, crawlerConfig, programConfig);
}
/**