Difference between revisions of "What happens with modified files when JReviews is upgraded"

From JReviews Documentation
Jump to: navigation, search
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
When JReviews is re-installed or upgraded, the whole  /components'''/com_jreviews''' folder is replaced with the new version, which is why it is important to make your modifications outside '''/com_jreviews''' as instructed in [[JReviews Code Overrides]]
 
  
When you upgrade JReviews it is important that you also update any modified files with changes in the newer version. This is to ensure your modified files include bug fixes and new features. You will need to compare each modified file with the same unmodified file in the newer version and:
+
When JReviews and Add-ons are re-installed or upgraded, the existing files are replaced with the new version, which is why it is important to make your modifications inside the /jreviews_overrides folder as instructed in [[JReviews Code Overrides]].
*update your modified file with changes in new version
+
*or copy the new version of the file and re-do your modifications
+
  
 +
Your modified files in the jreviews_overrides folder will not be deleted when JReviews is upgraded, but you will need to update those modified files if they are changed in new version of JReviews. When a new JReviews version is released, you should first check if some of the files that you customized have been updated in the latest release by comparing them with the list of updated files that you can find in the Changelogs.
  
 +
If some of the files that you modified have been updated in the new version of JReviews or Add-ons, you have two options:
  
If a file has many changes in the new version, a second option might be better because you are more familiar with your old modifications and re-doing them will be easier than implementing new changes into your modified file.
+
* update your modified file with changes in new version of the file, or
 
+
* copy the new version of the file and re-do your modifications
 
+
Comparing files for differences would be difficult without some tools. You can use [http://www.scootersoftware.com/ Beyond Compare] (commercial) or [http://winmerge.org/ WinMerge] (open source).
+
 
+
 
+
Here is an example of <span style="color: blue">listings_blogview.thtml</span> file comparison between JReviews versions 2.1.23.162 and 2.2.02.168 using WinMerge:
+
 
+
[[File:FileComparison.png]]
+
  
 +
If a file has many changes in the new version, the second option might be better because you are more familiar with your old modifications and re-doing them will be easier than implementing new changes into your modified file.
  
 +
Comparing files for differences would be difficult without some tools. On windows, you can use [http://www.scootersoftware.com/ Beyond Compare] (commercial) or [http://winmerge.org/ WinMerge] (open source). On Mac OS, you can use [https://itunes.apple.com/us/app/comparemerge/id478570084?mt=12 CompareMerge] (commercial) or [http://www.kaleidoscopeapp.com/ Kaleidoscope] (commercial).
  
 +
Here is an example of the detail.thtml file comparison between JReviews versions 2.4.9.1 and 2.4.12.4 using CompareMerge:
  
  
 +
[[File:file-comparison.png]]
  
  

Latest revision as of 21:57, 7 September 2018

When JReviews and Add-ons are re-installed or upgraded, the existing files are replaced with the new version, which is why it is important to make your modifications inside the /jreviews_overrides folder as instructed in JReviews Code Overrides.

Your modified files in the jreviews_overrides folder will not be deleted when JReviews is upgraded, but you will need to update those modified files if they are changed in new version of JReviews. When a new JReviews version is released, you should first check if some of the files that you customized have been updated in the latest release by comparing them with the list of updated files that you can find in the Changelogs.

If some of the files that you modified have been updated in the new version of JReviews or Add-ons, you have two options:

  • update your modified file with changes in new version of the file, or
  • copy the new version of the file and re-do your modifications

If a file has many changes in the new version, the second option might be better because you are more familiar with your old modifications and re-doing them will be easier than implementing new changes into your modified file.

Comparing files for differences would be difficult without some tools. On windows, you can use Beyond Compare (commercial) or WinMerge (open source). On Mac OS, you can use CompareMerge (commercial) or Kaleidoscope (commercial).

Here is an example of the detail.thtml file comparison between JReviews versions 2.4.9.1 and 2.4.12.4 using CompareMerge:


File-comparison.png