B4J Question [jRDC2] Change config.properties restart process instead of rebuild

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

the configuration properties are located in the dirassets folder.
If understanding right, the jRDC2 needs to get recompiled if making changes to the properties because the config.properties is included in the jar (packed under [Files]).

Question
Instead of recompiling after making a change to the configuration file, is there a way to stop the jRDC2 process, make changes to the configuration and start the process again?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The jar file is just a zip file. You can update the configuration file and then add the modified copy to the jar file.
However as you have the source code just change the location and read the configuration file from File.DirApp:
It is loaded here:
B4X:
Private Sub LoadConfigMap As Map
   Return File.ReadMap(File.DirAssets, "config.properties")
End Sub
 
Upvote 0
Top