Compare existing and generated output 07/104807/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 9 Mar 2023 13:08:20 +0000 (14:08 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 9 Mar 2023 14:12:37 +0000 (15:12 +0100)
commitc8eddb9eaa277775070f725643470131e65fdfb6
tree2c2cbba3bc76abc5dc37bdcea92f02d880ec44bd
parentf32f58f23a561806f0fea1d8cebc8be49b7fe37a
Compare existing and generated output

Before we overwrite a particular file we need to make sure that update
is actually needed. This adds the smarts to suppress such modifications
and notify BuildContext only when things change.

JIRA: YANGTOOLS-745
Change-Id: I17760f3342112343cd67f248d6374fd37710284d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/GeneratorTask.java
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesProcessor.java