summaryrefslogtreecommitdiffstats
path: root/common/common-scripts/src/main/groovy/io/fd
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2017-08-30 14:55:04 +0200
committerMarek Gradzki <mgradzki@cisco.com>2017-09-05 15:39:31 +0000
commitbb9141c63012d0305ac65da763af3fb0c427076f (patch)
tree85b75f316f4c7705d34c6c4c4a7b324d0fe8fc02 /common/common-scripts/src/main/groovy/io/fd
parent0d4a04e1452e19ce96c308cd45a430a3f5b72f04 (diff)
HONEYCOMB-389 - Static yang binding api and impl
Also provides ignore option for default module list generation Change-Id: I9e10215491c964e6e88f90d6a3ad4335c94ec7d2 Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'common/common-scripts/src/main/groovy/io/fd')
-rw-r--r--common/common-scripts/src/main/groovy/io/fd/honeycomb/common/scripts/ModuleYangIndexGenerator.groovy8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/common-scripts/src/main/groovy/io/fd/honeycomb/common/scripts/ModuleYangIndexGenerator.groovy b/common/common-scripts/src/main/groovy/io/fd/honeycomb/common/scripts/ModuleYangIndexGenerator.groovy
index 042ce6132..8e4c38824 100644
--- a/common/common-scripts/src/main/groovy/io/fd/honeycomb/common/scripts/ModuleYangIndexGenerator.groovy
+++ b/common/common-scripts/src/main/groovy/io/fd/honeycomb/common/scripts/ModuleYangIndexGenerator.groovy
@@ -50,6 +50,12 @@ class ModuleYangIndexGenerator {
private static final YANG_MODULES_INDEX_FILE_NAME = "yang-modules-index"
public static void generateIndexForPresentModules(project, log) {
+ String skip = project.getProperties().get("skip.module.list.generation")
+ if (Boolean.parseBoolean(skip)) {
+ log.info "Skipping yang modules list generation for project ${project.getName()}"
+ return
+ }
+
log.info "Checking module providers for project ${project.getName()}"
// checks module provides from dependencies
// folder with extracted libs
@@ -59,7 +65,7 @@ class ModuleYangIndexGenerator {
// therefore it will run also for parent, that does not have any depedencies(just dep management)
// so lib folder wont be created
log.info "Folder ${libsFolder} does not exist - No dependencies to process"
- return;
+ return
}
String yangModules = java.nio.file.Files.walk(libsFolder)