I need to write a perl program to modify the global libraries manually. Basically, it will modify the file: IntelliJ\config\options\applicationLibraries.xml to add/remove some jar files. But the problem I am facing is that, even though I modify this file, whenever IntelliJ is restarted, it overwrites this with the old version somehow. It looks like it is caching this file somewhere, and during the restarts, removes all the modifications.
Is there a way to prevent this from happening and keep the changes that were made? Do I need to delete something from IntelliJs cache directory?