Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

Any good way to diff/merge properties between project files?

Brian_Francis
Beginner
1,383 Views
Hi,
I am looking for any good way to perform diff and merge operation on any number of project files (Other than multiple select and open proerty panel). I got over 100 fortran project files.
Since the project files are standard XML format, i was wondering if anyone had a good free XML diff and merge utility which would provide an easy way for me to detect property inconsistencies between my vfproj files.
I am also open to any other good suggestion ;)
Thanks
0 Kudos
1 Solution
jeremy_h
New Contributor I
1,383 Views
ClearCase has a multi-way (I think 16) diff viewer. It is not cheap, though.

I suspect what you really want to do is to make sure that every project file has various switches set a certain way. Many switches have unique text that make it easy to find with grep or findstr, otherwise building an app that reads the XML settings is easy these days because of the availability of parser libraries.

View solution in original post

0 Kudos
7 Replies
Steven_L_Intel1
Employee
1,383 Views
Beyond Compare is my favorite file compare tool, and it has an XML mode. It isn't free, but I use this frequently enough that I am happy to pay for it.
0 Kudos
Brian_Francis
Beginner
1,383 Views
I agree that Beyond Compare is great but like many other diff tools, it can not perform a diff on more than 2 files at a time.
Thats why the best would be a diff tool who would really be XML oriented and could list the different values for a specific XML attribute throughout many files at a time.
0 Kudos
jsmt
Beginner
1,383 Views
I dont believe that such a program exist. kdiff3 (http://kdiff3.sourceforge.net/) for example can merge up to three sources.
0 Kudos
jeremy_h
New Contributor I
1,384 Views
ClearCase has a multi-way (I think 16) diff viewer. It is not cheap, though.

I suspect what you really want to do is to make sure that every project file has various switches set a certain way. Many switches have unique text that make it easy to find with grep or findstr, otherwise building an app that reads the XML settings is easy these days because of the availability of parser libraries.
0 Kudos
Brian_Francis
Beginner
1,383 Views
Yup i think the best way is too just lookup the property using grep/sed. Thanks for the suggestion.
0 Kudos
SergeyKostrov
Valued Contributor II
1,383 Views
Hi,
I am looking for any good way to perform diff and merge operation on any number of project files (Other than multiple select and open proerty panel). I got over 100 fortran project files.
Since the project files are standard XML format, i was wondering if anyone had a good free XML diff and merge utility which would provide an easy way for me to detect property inconsistencies between my vfproj files.
I am also open to any other good suggestion ;)
Thanks


Hi Brain,

For a quick review of differences between some filesI use Microsoft's WinDiff utility from a Platform SDK
orVisual Studios.

Formore advanced cases I use WinMerge 2.6.0utility. It is free andworks with any types of files.

I will zip and attach both some time later.

Best regards,
Sergey

0 Kudos
SergeyKostrov
Valued Contributor II
1,383 Views
MS WinDiff and WinMerge 2.6.0 utilities are attached.
0 Kudos
Reply