cd ../conf\r
\r
\r
-set CP=../lib/wamblee-crawler-kiss.jar;../lib/activation.jar;../lib/comons-beanutils-1.7.0.jar;../lib/commons-codec-1.3.jar\r
-set CP=%CP%;../lib/commons-email-1.0.jar;../lib/commons-httpclient-3.0.jar;../lib/commons-logging-1.0.2.jar;\r
-set CP=%CP%;../lib/dom4j-1.6.jar;../lib/jaxen-1.1-beta-4.jar;../lib/jtidy-4aug2000r7-dev.jar;log4j-1.2.9.jar;\r
-set CP=%CP%;../lib/mail.jar;../lib/spring-1.2.5.jar;../lib/wamblee-crawler-basic.jar;../lib/wamblee-crawler-kiss.jar;\r
-set CP=%CP%;../lib/wamblee-support.jar;../lib/xerces-2.4.0.jar\r
+set CP=.;../lib/support-0.2-SNAPSHOT.jar;../lib/crawler-kiss-0.2-SNAPSHOT.jar\r
\r
\r
-java -classpath %CP% org.wamblee.crawler.kiss.main.KissCrawler config.xml programs.xml
-
+java -classpath %CP% org.wamblee.crawler.kiss.main.KissCrawlerBootstrapper ../lib config.xml programs.xml\r
+\r
cd $( dirname $0 )/../conf
-CP="."
-for i in ../lib/*.jar
-do
- CP="$i:$CP"
-done
+CP=.:../lib/support-0.2-SNAPSHOT.jar:../lib/crawler-kiss-0.2-SNAPSHOT.jar
set -x
-java -classpath $CP org.wamblee.crawler.kiss.main.KissCrawler \
- config.xml programs.xml
+java -classpath $CP org.wamblee.crawler.kiss.main.KissCrawlerBootstrapper \
+ ../lib config.xml programs.xml
import org.wamblee.crawler.kiss.notification.NotificationException;
import org.wamblee.crawler.kiss.notification.Notifier;
import org.wamblee.general.BeanFactory;
+import org.wamblee.general.ClassPathHacker;
import org.wamblee.xml.ClasspathUriResolver;
import org.wamblee.xml.XslTransformer;
* Runs the KiSS crawler.
*
* @param aArgs
- * Arguments, currently all ignored because they are hardcoded.
+ * Arguments: First argument is the crawler configuration file,
+ * and second is the program configuration file.
* @throws Exception
* In case of problems.
*/