IVCTool / TS_RPR_FOM

Test Suite for the RPR FOM
2 stars 0 forks source link

FOM module file access protocol #2

Closed rhzg closed 1 year ago

rhzg commented 1 year ago

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.

rhzg commented 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.

rhzg commented 1 year ago

proposed solution in commit RprBuilder/src/main/java/org/nato/ivct/rpr/FomFiles.java

rhzg commented 1 year ago

temp files will be created in the workspace folder, instead of a dedicated os-managed temp area