Allow module to be represented in different formats
[yangtools.git] / yang / yang-maven-plugin / src / main / java / org / opendaylight / yangtools / yang2sources / plugin / YangToSourcesProcessor.java
index ce884c15c49826751ce95cbc8cfe248c8786b207..9cf4412984279df3daff002dcb526abfcf7469e5 100644 (file)
@@ -393,7 +393,7 @@ class YangToSourcesProcessor {
         }
         final Stopwatch watch = Stopwatch.createStarted();
         Collection<File> generated = codeGenerator.generateSources(context.getContext(), outputDir,
-            context.getYangModules(), context::moduleToResourcePath);
+            context.getYangModules(), context);
 
         LOG.debug("{} Sources generated by {}: {}", LOG_PREFIX, codeGeneratorCfg.getCodeGeneratorClass(), generated);
         LOG.info("{} Sources generated by {}: {} in {}", LOG_PREFIX, codeGeneratorCfg.getCodeGeneratorClass(),