I have a script that will compare two folders. Some of the folders contain a number of .jar files.
I want the script to copy any differences in the right folder to a new location. If there is a difference in a jar file I want it to copy the whole jar file, not just the differences. Is there any way to achieve this?
The problem is that if I have my default session settings for Archive Handling set to 'As file Always', my jar files are shown as different - even when the contents are the same (I guess something to do with checksums during JAR creation).
So my script will always copy over the Jar files, even though they have not changed in terms of content.
If I have the Archive Handling set to 'As Folders Always' I only get the parts of the .jar file that have changed - but I want the whole jar file.
The same behaviour is shown in the GUI - the setting is 'As File Always', the Jars are highlighted as different, but in 'As Folders Always', they are shown to be the same.
So is there a way around this? Any advice appreciated.
I want the script to copy any differences in the right folder to a new location. If there is a difference in a jar file I want it to copy the whole jar file, not just the differences. Is there any way to achieve this?
The problem is that if I have my default session settings for Archive Handling set to 'As file Always', my jar files are shown as different - even when the contents are the same (I guess something to do with checksums during JAR creation).
So my script will always copy over the Jar files, even though they have not changed in terms of content.
If I have the Archive Handling set to 'As Folders Always' I only get the parts of the .jar file that have changed - but I want the whole jar file.
The same behaviour is shown in the GUI - the setting is 'As File Always', the Jars are highlighted as different, but in 'As Folders Always', they are shown to be the same.
So is there a way around this? Any advice appreciated.
Comment