You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/10/30 23:27:19 UTC

svn commit: rev 56080 - incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc

Author: gregor
Date: Sat Oct 30 14:27:17 2004
New Revision: 56080

Removed:
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/Configuration.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/conf.properties
Modified:
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/RCML.java
   incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java
Log:
deprecated conf.properties removed from RC

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/RCML.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/RCML.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/RCML.java	Sat Oct 30 14:27:17 2004
@@ -15,7 +15,7 @@
  *
  */
 
-/* $Id: RCML.java,v 1.27 2004/08/15 04:23:03 gregor Exp $  */
+/* $Id$  */
 
 package org.apache.lenya.cms.rc;
 
@@ -65,9 +65,6 @@
      * Creates a new RCML object.
      */
     public RCML() {
-        /*Deprecated
-        maximalNumberOfEntries = new org.apache.lenya.xml.Configuration().maxNumberOfRollbacks;
-        */
         maximalNumberOfEntries = 10;
         maximalNumberOfEntries = (2 * maximalNumberOfEntries) + 1;
     }

Modified: incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java
==============================================================================
--- incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java	(original)
+++ incubator/lenya/trunk/src/java/org/apache/lenya/cms/rc/RevisionController.java	Sat Oct 30 14:27:17 2004
@@ -15,7 +15,7 @@
  *
  */
 
-/* $Id: RevisionController.java,v 1.28 2004/07/16 15:43:59 edith Exp $  */
+/* $Id$  */
 
 package org.apache.lenya.cms.rc;
 
@@ -51,21 +51,6 @@
 
     /**
      * Creates a new RevisionController object.
-     * 
-     */
-    public RevisionController() {
-        Configuration conf = new Configuration();
-        rcmlDir = conf.getRcmlDirectory();
-        if (!new File(rcmlDir).exists())
-            log.error("No such directory: " + rcmlDir);
-        backupDir = conf.getBackupDirectory();
-        if (!new File(backupDir).exists())
-            log.error("No such directory: " + backupDir);
-        rootDir = "conf.rootDirectory";
-    }
-
-    /**
-     * Creates a new RevisionController object.
      *
      * @param rcmlDirectory The directory for the RCML files
      * @param backupDirectory The directory for the backup versions
@@ -75,16 +60,6 @@
         this.rcmlDir = rcmlDirectory;
         this.backupDir = backupDirectory;
         this.rootDir = rootDirectory;
-    }
-
-    /**
-     * Creates a new RevisionController object.
-     *
-     * @param rootDir The publication directory
-     */
-    public RevisionController(String rootDir) {
-        this();
-        this.rootDir = rootDir;
     }
 
     /**

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org