COTTA File System: Installing a fresh copy

From CFTP

Jump to: navigation, search
  1. Download the latest version of the plug-in.
  2. Unzip the downloaded file cottafilesystem-x.xx-bin.zip into a temporary directory of your choice.
  3. Copy all the unzipped JAR files into the lib directory of your FTP server overwriting existing files. Manually remove old versions of duplicate JAR files.
  4. Run the update script in your FTP server directory to update the start-up scripts.


Next you have to update the conf/beans.xml file in your FTP server. Edit the file in you favourite editor, locate the current filesystem bean and replace it with the following:

<bean id="filesystem"
  class="com.coldcore.coloradoftp.plugin.cottafilesystem.CottaFileSystem">
  <constructor-arg index="0" value="conf/cottafilesystem.xml"/>
  <constructor-arg index="1" ref="cottaFileFactory"/>
</bean>

Now add the followint to the bottom of the file:

<bean id="cottaFileFactory" class="net.sf.cotta.TFileFactory">
  <constructor-arg index="0">
    <bean class="net.sf.cotta.memory.InMemoryFileSystem"/>
  </constructor-arg>
</bean>

COTTA File System is now installed and will read configuration from the conf/cottafilesystem.xml file in your FTP server. It will also use an in-memory file system, which can be replaced as described in the plug-in configuration.



Return to Plug-in: COTTA File System

Personal tools