[fossology/fossology] 49d901: fix(ojo): Remove call to omitEndingLineFeed on<0.6


Anupam <noreply@...>
 

Branch: refs/heads/master
Home: https://github.com/fossology/fossology
Commit: 49d901c02c0f8a3ef286b1ca351494ad27e1350e
https://github.com/fossology/fossology/commit/49d901c02c0f8a3ef286b1ca351494ad27e1350e
Author: Gaurav Mishra <@gmishx>
Date: 2019-08-16 (Fri, 16 Aug 2019)

Changed paths:
M src/ojo/agent/OjoUtils.cc
M src/ojo/agent/directoryScan.cc
M src/ojo/agent/directoryScan.hpp

Log Message:
-----------
fix(ojo): Remove call to omitEndingLineFeed on<0.6

libjsoncpp prior to 0.7.0 does not support omitEndingLineFeed() which
removes extra '\n' at end. Manually capture the json string and replace
the '\n' at end till version 1.3.x. Since version 1.4.0, use
StreamWriterBuilder.

Also use boost range iterator since recursive_directory_iterator does
not have begin and end on version 1.55 (Debian 8).

Signed-off-by: Gaurav Mishra <@gmishx>


Commit: 6f524720b8b26df19fdbe1fe914cb374098f8c5c
https://github.com/fossology/fossology/commit/6f524720b8b26df19fdbe1fe914cb374098f8c5c
Author: Anupam <ag.4ums@...>
Date: 2019-08-20 (Tue, 20 Aug 2019)

Changed paths:
M src/ojo/agent/OjoUtils.cc
M src/ojo/agent/directoryScan.cc
M src/ojo/agent/directoryScan.hpp

Log Message:
-----------
Merge pull request #1430 from siemens/fix/ojo/useStreamWriterBuilder

fix(ojo): Remove call to omitEndingLineFeed on json cpp < 0.7
Tested by : anupam.ghosh@...
Reviewed by : by : anupam.ghosh@...


Compare: https://github.com/fossology/fossology/compare/afcab9974239...6f524720b8b2

Join fossology-commits@lists.fossology.org to automatically receive all group messages.