Integrating external libraries (#667006)
External libraries which are needed for scripts and not part of the ConSol CM core product can now be integrated easily via the data directory.
The following steps are needed:
- Place the library in the subdirectory called
libof the data directory. This can be done on the Data directory page of the Web Admin Suite. - Add an entry for each library to the
cm6-config.propertiesorcm6-domain-config.propertiesfile. The entry has to start withapplication.libs.checksums.and contain the library name and its checksum, e.g.application.libs.checksums.ical4j-4.2.3.jar=3d75128bcc7121d267d2c4daf573eadd2dc2a2be - Restart the ConSol CM server.
- Add an import statement to the script where you want to use the library, e.g.
import net.fortuna.ical4j.model.Calendar
Import and export
External libraries are not included in scene exports.
Updates
Please remember to check the libraries for vulnerabilities regularly and update them if needed.