Make ALL projects depend on odlparent 06/14806/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 4 Feb 2015 02:03:13 +0000 (21:03 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 4 Feb 2015 02:03:21 +0000 (21:03 -0500)
Change-Id: I54202bbfbabf5adae4cd7e81b81d5d80ccb89a2f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
scripts/jjb-init-project.py

index cb2379be7aaf131696c54c7fbc1cb005cccc4fdd..8b3b92797b246bf28646f61c1de2157f4b4b312c 100644 (file)
@@ -91,7 +91,11 @@ else:  # User explicitly set MAVEN_OPTS so create CFG
     make_cfg = True
     cfg_string.append("MAVEN_OPTS: %s" % mvn_opts)
 
+if not dependencies:
+    dependencies = "odlparent"  # All projects depend on odlparent
 if dependencies:
+    if dependencies.find("odlparent") < 0:  # If odlparent is not listed add it
+        dependencies = "odlparent," + dependencies
     make_cfg = True
     disabled = "false"
     email_prefix = (email_prefix + " " +