Changing the Editable File List in the Admin App

In the Configuration Files section of the Admin Tool a list of files is shown that can be edited. By default these are the main KonaKart properties and logging files.

You can add any files you like to that list so long as they are accessible to the KonaKart server - wherever that's running in your configuration.

There's a simple XML file (called konakart_config_files.xml ) where the files that are shown are defined. It looks like this:


<?xml version="1.0" encoding="ISO-8859-1"?>

<konakart-config-files>
  <file>
    <displayName>
       KonaKart Properties File
    </displayName>
    <fileName>
       ../webapps/konakart/WEB-INF/classes/konakart.properties
    </fileName>
  </file>

  <file>
    <displayName>
       KonaKart Admin Properties File
    </displayName>
    <fileName>
       ../webapps/konakartadmin/WEB-INF/classes/konakartadmin.properties
    </fileName>
  </file>

  <file>
    <displayName>
       KonaKart Logging Configuration File
    </displayName>
    <fileName>
       ../webapps/konakart/WEB-INF/classes/konakart-logging.xml
    </fileName>
  </file>

  <file>
    <displayName>
       KonaKart Admin Logging Configuration File
    </displayName>
    <fileName>
       ../webapps/konakartadmin/WEB-INF/classes/konakart-logging.xml
    </fileName>
  </file>
</konakart-config-files>

You'll find this file under webapps/konakartadmin/WEB-INF/classes . In the default installation on Windows that is: C:\Program Files\KonaKart\webapps\konakartadmin\WEB-INF\classes\konakart_config_files.xml .

You'll see that you define a path to the file and a "display name" which is the name you see in the list in the Admin Tool.

A point to note if no files are listed:

Depending on your configuration (eg. if you are not using the default tomcat container supplied in the download kit) you may find that the default definitions of the relative paths in the supplied konakart_config_files.xml will not work - you will have to amend these to suit your environment.