Some times it is easier to keep track of the third-party libraries in your project with help of the source control system. If the library has too many files it can be little complex to upgrade it. You are going to get some new files, you have to delete some old files and you should replace some existing files with the new one. Doing this while using Perforce as version control system is something that I am forgetting every time. So I am going to register it here.
For example if you have the recommended ”jre” for running your application under Perforce, you should upgrade it as below.
- Open the ”jre” folder under Perforce in Windows File explorer.
- Right click on it and uncheck the read-only check box. Press OK.
- Delete all files and folders under the ”jre” folder.
- Copy files and folders from the new ”jre” folder to the empty ”jre” folder under Perforce.
- Open Perforce (P4V) with your workspace. Run refresh on the ”jre” folder.
- right click on the ”jre” folder in Perforce and choose ”reconcile offline work”.
- You should see a Windows like below. Click on reconcile and submit your changelist.