Possible to use diff outside of Oxygen gui?
Oxygen general issues.
-
- Posts: 1
- Joined: Mon Dec 09, 2013 1:21 pm
Possible to use diff outside of Oxygen gui?
Post by nouspoetikos »
Hello there-
I'm wondering if you could give me a little help with the command line handling for the diff Files script.
I've currently got the diffFiles.bat being called via Perl.
I need it to diff approximately 1000 file pairs...
While I have a tremendous crush on OxyGen's diff, clicking 'Close' for 1000 file pairs even when there are no differences found between the two files being diff'ed is a little too high maintenance.
Is there a way to launch the diff from a script, test to see if a difference was found and either:
Launch the diff in the Oxygen gui only when differences between the files are found
OR (and perhaps more prefereable):
Write the names of the files with differences to a log for later visual diffing in OxyGen
Thanks in advance.
I'm wondering if you could give me a little help with the command line handling for the diff Files script.
I've currently got the diffFiles.bat being called via Perl.
I need it to diff approximately 1000 file pairs...
While I have a tremendous crush on OxyGen's diff, clicking 'Close' for 1000 file pairs even when there are no differences found between the two files being diff'ed is a little too high maintenance.
Is there a way to launch the diff from a script, test to see if a difference was found and either:
Launch the diff in the Oxygen gui only when differences between the files are found
OR (and perhaps more prefereable):
Write the names of the files with differences to a log for later visual diffing in OxyGen
Thanks in advance.

-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Possible to use diff outside of Oxygen gui?
Hi,
Unfortunately what you want to achieve is not possible with the diffFiles tool/script.
diffFiles and diffDirs are GUI based tools, so they do not return any results to the standard output and they do not output to a log file.
If the filenames of the pair of files you compare are identical (but located in different folders) an alternative solution would be to place them all grouped in two folders (if they aren't already) and use the diffDirs tool to compare the folders (provide the folder paths as arguments). This way at least you get a centralized diff result and you can navigate it, even though it's still GUI based.
Regards,
Adrian
Unfortunately what you want to achieve is not possible with the diffFiles tool/script.
diffFiles and diffDirs are GUI based tools, so they do not return any results to the standard output and they do not output to a log file.
If the filenames of the pair of files you compare are identical (but located in different folders) an alternative solution would be to place them all grouped in two folders (if they aren't already) and use the diffDirs tool to compare the folders (provide the folder paths as arguments). This way at least you get a centralized diff result and you can navigate it, even though it's still GUI based.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service