[ONOS-5631] YANG tool independent of tool chain
Change-Id: I0858a55c3162a963eb3ba0e1611d0f8071985c25
diff --git a/generator/src/main/java/org/onosproject/yangutils/utils/io/YangPluginConfig.java b/generator/src/main/java/org/onosproject/yangutils/utils/io/YangPluginConfig.java
index 86e4500..f02ed1a 100644
--- a/generator/src/main/java/org/onosproject/yangutils/utils/io/YangPluginConfig.java
+++ b/generator/src/main/java/org/onosproject/yangutils/utils/io/YangPluginConfig.java
@@ -47,6 +47,13 @@
private String codeGenerateForSbi;
/**
+ * Path to generate the resource files, which will be used by the plugin
+ * to add it as part of the resource, implicitly by the path location, or
+ * some explicit way to add to bundle.
+ */
+ private String resourceGenDir;
+
+ /**
* Creates an object for YANG plugin config.
*/
public YangPluginConfig() {
@@ -106,7 +113,18 @@
return conflictResolver;
}
+
+ public String resourceGenDir() {
+ return resourceGenDir;
+ }
+
+ public void resourceGenDir(String resourceGenDir) {
+ this.resourceGenDir = resourceGenDir;
+ }
+
/**
+ * TODO: delete me, it is not part of config, it needs to be updated for
+ * test scripts
* Compiles the generated code for unit tests.
*
* @param dir1 directory path