Standalone execution
It is also possible to run Companion for integration in Standalone mode, outside a STEP environment.
Standalone execution requires a .properties configuration file, which looks a lot like the Composite configuration file.
A line must be added, containing the plugin license file with licenseAssetId, for instance:
pluginId=fr.cantor.c4i.MySQLDelivery
...
licenseAssetId=/Path/to/C4I/License.cat
To run Companion for integration in Standalone mode, prepare your configuration files and then run the following command using Java 11 or above :
java -cp composite-core-<version>-jar-with-dependencies.jar fr.cantor.c4i.C4IStandaloneRunner <properties file> <XML files>
Or, for the composite standalone mode :
java -cp composite-core-<version>-jar-with-dependencies.jar fr.cantor.c4i.CompositeMain <properties file> <XML files>
You can also supply your own logback.xml configuration file using the following command :
java -Dlogback.configurationFile=/path/to/logback.xml ...
Passwords and environment-dependent parameters
Since version 3.19.0, passwords and other environment-dependent parameters are stored in a properties file in your home directory.
In order to configure the parameters, you need to create the following directory : /~/c4i/credentials, then the following file inside this directory: c4i.properties.
This properties file will centralize all the environment-dependent data, with the following format :
myConnection.host=myHost
myConnection.username=username
myConnection.password=password
Then you can reference it through the connection key.
The needed parameters for each extension are listed in the "Configuration" section.
Scripts location
The property scriptsRootPath can be added to your configuration file to indicate where the scripts are located on your local environment. Otherwise, c4i will look for scripts in the directory where the command is executed