Now using dependency injection for the XslTransformer instead of
[utils] / crawler / basic / src / org / wamblee / crawler / impl / App.java
index d4ca4709c78a19665736f93cdd4d543582d6942f..f9b9bd45eef23de75507357193d2b4d7c01f6d9f 100644 (file)
@@ -11,6 +11,7 @@ import org.wamblee.crawler.Configuration;
 import org.wamblee.crawler.Crawler;
 import org.wamblee.crawler.Page;
 import org.wamblee.crawler.PageException;
+import org.wamblee.xml.XslTransformer;
 
 /*
  * Copyright 2005 the original author or authors.
@@ -54,7 +55,7 @@ public final class App {
         String configFileName = aArgs[0];
         String starturl = aArgs[1];
 
-        ConfigurationParser parser = new ConfigurationParser();
+        ConfigurationParser parser = new ConfigurationParser(new XslTransformer());
         InputStream configFile = new FileInputStream(new File(configFileName));
         Configuration config = parser.parse(configFile);