[oXygen-user] Print/save report from Diff Directories?
Oxygen XML Editor Support
support at oxygenxml.com
Thu Aug 22 09:50:19 CDT 2013
Hello David,
Currently there are no explicit (by design) means to print or save a
report of the Diff Directories result. I've logged a feature request for
this.
However, I see that our developers left in some debugging info. It's a
little messy and there's some redundant or uneven information, but with
some tinkering and trimming you can obtain a report of sorts.
1. Select the entire Diff Directories table and copy to clipboard
(Ctrl+A, Ctrl+C) to obtain the table debugging info. Each entry from
this info is structured like this (7 columns, tab separated):
(File1:fileLeft File2:fileRight with type:x) (fileSizeLeft)
(dateTimeLeft) (x) (File1:fileLeft File2:fileRight with type:x)
(fileSizeRight) (dateTimeRight)
1st and 5th columns are identical and require some trimming.
x (middle column, also mentioned in 1st and 5th) is the result of the
diff and has the possible values:
- 0 - missing file on one side (one of the fileLeft/fileRight has the
'null' value)
- 1 - different file
- 2 - identical files (existing folders are always considered 'identical')
2. Paste and save this debug info in a text file.
3. Import the text file to XML with Oxygen's import feature: File >
Import > Text File. Use Tab as the field delimiter in the Import dialog
and press the Customize button if you want to change the name of the
elements or make them attributes. Press Import and switch to Grid mode
for better readability.
4. To further trim the redundant info from columns 1 (File2) and 5
(File1) and separate them, you can use Find/Replace in the Text mode in
two steps:
a) For column 1
*Text to find:* 'File1:(.*?) File2:(.*?) with type:\d' (without the quotes)
*Replace with: *'$1*'* (without the quotes)
*XPath**:* //Heading0 (or whatever element name you used for column 1)
*Options:* Regular expression
b) For column 5
*Text to find:* 'File1:(.*?) File2:(.*?) with type:\d' (without the quotes)
*Replace with: *'$2*'* (without the quotes)
*XPath**:* //Heading4 (or whatever element name you used for column 5)
*Options:* Regular expression
Regards,
Adrian
Adrian Buza
oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202
Fax: +40-251-461482
support at oxygenxml.com
http://www.oxygenxml.com
On 21.08.2013 23:38, David Sewell wrote:
> Is there any way to print or save the output of a Diff Directories listing? I
> have a use case where it would be very helpful to do so, but I do not see any
> menu or contextual options with this function.
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20130822/c7394acd/attachment.html
More information about the oXygen-user
mailing list