You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/11/15 17:02:09 UTC
svn commit: r475280 -
/lenya/trunk/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java
Author: andreas
Date: Wed Nov 15 08:02:08 2006
New Revision: 475280
URL: http://svn.apache.org/viewvc?view=rev&rev=475280
Log:
Fixed DocumentHelper call in Instantiator
Modified:
lenya/trunk/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java
Modified: lenya/trunk/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java?view=diff&rev=475280&r1=475279&r2=475280
==============================================================================
--- lenya/trunk/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java (original)
+++ lenya/trunk/src/pubs/default/java/src/org/apache/lenya/defaultpub/cms/publication/templating/Instantiator.java Wed Nov 15 08:02:08 2006
@@ -23,13 +23,13 @@
import java.net.MalformedURLException;
import java.util.Collection;
import java.util.Iterator;
-import java.text.SimpleDateFormat;
-import java.lang.Boolean;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
+import org.apache.avalon.framework.configuration.Configuration;
+import org.apache.avalon.framework.configuration.ConfigurationException;
import org.apache.avalon.framework.configuration.DefaultConfiguration;
import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder;
import org.apache.avalon.framework.configuration.DefaultConfigurationSerializer;
@@ -37,6 +37,7 @@
import org.apache.avalon.framework.service.ServiceException;
import org.apache.avalon.framework.service.ServiceManager;
import org.apache.avalon.framework.service.Serviceable;
+import org.apache.cocoon.components.search.components.IndexManager;
import org.apache.excalibur.source.ModifiableSource;
import org.apache.excalibur.source.Source;
import org.apache.excalibur.source.SourceNotFoundException;
@@ -49,19 +50,6 @@
import org.w3c.dom.Element;
import org.xml.sax.SAXException;
-import org.apache.cocoon.components.search.Index;
-import org.apache.cocoon.components.search.IndexException;
-import org.apache.cocoon.components.search.IndexStructure;
-import org.apache.cocoon.components.search.components.AnalyzerManager;
-import org.apache.cocoon.components.search.components.IndexManager;
-import org.apache.cocoon.components.search.fieldmodel.DateFieldDefinition;
-import org.apache.cocoon.components.search.fieldmodel.FieldDefinition;
-import org.apache.cocoon.components.search.utils.SourceHelper;
-
-import org.apache.avalon.framework.configuration.Configurable;
-import org.apache.avalon.framework.configuration.Configuration;
-import org.apache.avalon.framework.configuration.ConfigurationException;
-
/**
* Instantiate the publication.
*
@@ -209,7 +197,7 @@
indexSource = (ModifiableSource) resolver.resolveURI(publicationsUri + "/"
+ newPublicationId + "/config/lucene_index.xconf");
Document indexDoc = DocumentHelper.readDocument(indexSource.getInputStream());
- Element[] indexElement = DocumentHelper.getChildren(indexDoc.getDocumentElement(), "index");
+ Element[] indexElement = DocumentHelper.getChildren(indexDoc.getDocumentElement(), null, "index");
for (int i=0; i<indexElement.length; i++) {
String id = indexElement[i].getAttribute("id");
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org