bradford 02/02/23 10:01:15
Modified: java/src/org/apache/xindice/core SystemCollection.java Log: Changed parameters of SysConfig Revision Changes Path 1.2 +3 -7 xml-xindice/java/src/org/apache/xindice/core/SystemCollection.java Index: SystemCollection.java =================================================================== RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/core/SystemCollection.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- SystemCollection.java 6 Dec 2001 21:00:11 -0000 1.1 +++ SystemCollection.java 23 Feb 2002 18:01:15 -0000 1.2 @@ -56,7 +56,7 @@ * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * - * $Id: SystemCollection.java,v 1.1 2001/12/06 21:00:11 bradford Exp $ + * $Id: SystemCollection.java,v 1.2 2002/02/23 18:01:15 bradford Exp $ */ import org.apache.xindice.core.*; @@ -99,14 +99,10 @@ void init() throws DBException { // Bootstrap the System Collection - File f = new File(getDatabase().getCollectionRoot(), SYSCOL); File cfgDir = new File(System.getProperty(Xindice.PROP_XINDICE_HOME), "/config"); classGen = getDatabase().getConfig().getAttribute(CLASSGEN, classGen); - if ( !f.exists() ) - f.mkdirs(); - String SysCol = "<collection name=\""+SYSCOL+"\">" @@ -126,7 +122,7 @@ + " </collection>" // System Configuration Collection - + " <collection name=\""+CONFIGS+"\" compressed=\"false\" cache=\"false\" >" + + " <collection name=\""+CONFIGS+"\" compressed=\"true\">" + " <filer class=\"org.apache.xindice.core.filer.BTreeFiler\" />" + " </collection>" @@ -155,7 +151,7 @@ try { Document sysDoc = DOMParser.toDocument(SysCol); - Configuration sysCfg = new Configuration(sysDoc.getDocumentElement(), false); + Configuration sysCfg = new Configuration(sysDoc, false); setConfig(sysCfg); } catch ( Exception e ) {