Closed rhzg closed 1 year ago
Proposed solution is keep the FOM module files with the ressources along with the helper code, but extract the files into temporary module files.
The standard way to create temp files would be to use the 'File.createTempFile' method. But this method creates file names which including process id, to make the files unique, which normally is a good thing. Unfortunately the MAK RTI has problems with these file names. As a work around the FOM module files are can be stored in a local folder, which may cause issues with with file duplication and the risk of inconsistency between temp files and helper classes.
proposed solution in commit RprBuilder/src/main/java/org/nato/ivct/rpr/FomFiles.java
temp files will be created in the workspace folder, instead of a dedicated os-managed temp area
FOM module files are maintained within the RprBuilder library ressources. However, loading FOM modules with the Java method Class.getResource() is not supported by the MAK RTI. It only supports the 'file' protocol typ.