View Full Version : Ignore file compare garmmar
30-Jun-2009, 02:20 PM
I'm attempting to ignore unimportant file differences, however it's not working for me.
File1 has the following:
ON_FILEWATCH /bi/prod/data/lnd_netprovision/incoming/VLANATMInterworking.csv CREATE
File2 has the following:
ON_FILEWATCH /bi/uat/data/lnd_netprovision/incoming/VLANATMInterworking.csv CREATE
I want the words "prod" and "uat" to ignored in the compare. I have the following defined in the grammar but it's not having the desired effect:
Prod=Text matching prod
UAT=test matching uat
01-Jul-2009, 04:16 PM
Did you define those elements as Unimportant under the Session Settings?
02-Jul-2009, 07:09 AM
I want the words "prod" and "uat" to ignored in the compare.
Wouldn't it be more appropriate to define a replacement?
Right click on the red text on one side and choose "Replacement..." from the context menu. Edit the values if you wish. BC3 will perform a logical replacement and will consider the difference to be unimportant.
02-Jul-2009, 08:28 AM
I'm doing a folder compare, and I don't see an "Importance Tab"
02-Jul-2009, 08:30 AM
This appears to work, however from what I've tested, I need to do this one file at a time, and I can't seem to store it as part of session settings.
02-Jul-2009, 09:05 AM
open a folder compare
compare two of the files in a file compare
Open "Session Settings..." from the Session drop-down menu
Open the Replacements tab
Define your replacement then click OK
At the bottom of the Session Settings dialog is a dropdown that defines the context for your change.
Choose: "Update session defaults" if you want this replacement to be default in all new sessions opened in the future.
Choose: "Use for all files within the parent session" if you want to limit the change to the files in the folder session you already have open.
02-Jul-2009, 09:17 AM
Thanks. That works.
02-Jul-2009, 04:07 PM
Replacements is probably the better solution in this case. It will ignore prod and uat only when they align.
Grammar elements are for when you want to ignore that text, regardless of what it aligns to. Note, if it aligns to Important text, that text will still be Important (so the difference will still be found).
You can perform the same set of steps to ignore grammar elements by opening a child session Text Compare, going to the Importance tab of the Session Settings of the Text Compare, uncheck the grammar element name (turning the text blue:Unimportant, instead of Red:Important), Then use the dropdown to Update session defaults or Update parent session.
02-Jul-2009, 04:08 PM
Once that is set, any files you click on will populate the middle column with the Content Comparison values.
You can then set the Folder Compare to automatically run a Content Comparison under the Folder Compare Session Settings, Comparison tab. Or by selecting files and running the Compare Contents command and picking Rules-based comparison.
vBulletin® v3.7.1, Copyright ©2000-2013, Jelsoft Enterprises Ltd.