- write its log file
- write the changes to its configuration files
- write additional templates
- write scripts used as base of templates
But what if we want to create installers for specific platforms (Windows setup, MacOSX application bundles, Linux .deb and .rpm files)?
In this case:
- it is the operating system that defines in which directory or directories Matrex is installed.
- Matrex cannot write the files it produces (templates, configurations, log...) in the directories in which it is installed, but must use a writable directory, which can be under Documents and Settings in Windows or under the home directory in Linux.
- the new configuration file main.properties, which contains the paths of all other configuration files (which can contain environment variables).
- the new concept of configuration files that contain the locations of other files.
- templates.cld, which contains the paths of the top directories of directory trees containing functions templates.
- plugins.cld, which contains the directories and jar files containing additional java classes used as plugins and their dependencies.
- scrips.cld, which contains the top directories of directory trees containing scripts used by templates.
In this way anyone can change these files, add them or delete them without touching the original installation.
It will be then easy to install Matrex:
- In Windows in a directory under the Program Files directory, with the additional files and the writable configuration files in a directory under Documents and Settings.
- In Linux in the standard directories (/usr/bin, usr/share...), with the additional files and the writable configuration files in a directory (.matrex ?) under the home directory.
- In MacOSX in a directory under the Applications directory, with the additional files and the writable configuration files in a directory under Users
It works fine.
As soon as possible I will release a beta of this version.