Capture input files in YangToSourcesState 27/104627/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 28 Feb 2023 17:06:44 +0000 (18:06 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 28 Feb 2023 19:07:54 +0000 (20:07 +0100)
commit35c8e1f58576d7a7d65a877434491190e8471eba
treeaf55b3334332e621e26af4abe661f30a726205c1
parent898937700efba6e1f1ff182a58d3167b7b42e4f7
Capture input files in YangToSourcesState

We need to hash the files we use for input into the
EffectiveModelContext, so we can compare them when we next run.

This patch does not completely deal with the dependencies, as they are a
tad more complicated.

JIRA: YANGTOOLS-1165
Change-Id: Id2d3154d564918e2ee37d4de71f336863afc7da1
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/CapturingInputStream.java [new file with mode: 0644]
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/FileState.java
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesProcessor.java
plugin/yang-maven-plugin/src/main/java/org/opendaylight/yangtools/yang2sources/plugin/YangToSourcesState.java