Comparing Wars

sometimes it helps to compare the contents of war files, in the case that, for instance, a faccon build from jenknis does not work, or shows some error, and one deployed from the developer directly (through probe) is fine.

 

if you can get the developer to send the war, and then make the jenkins build archive the artifact temporarily, and download the war.

 

unzip both wars in the same directory

unzip war1.war -d war1
unzip war2.war -d war2
 
#compare them
diff -Bbru -x ".*" war1 war2 >> war_linelevel_diff.txt
diff -Bbrqu -x ".*" war1 war2 >> war_filenames_diff.txt