Updating buck to build OSGi JARs

Includes:
  OSGiWrapper to wrap Buck JARs
    - cfgdef file support
    - WAR file generation support
  Adding checkstyle support

Change-Id: Ia25c41f945980e4b94ad5a8bd161328fa5f79c27
diff --git a/tools/build/conf/BUCK b/tools/build/conf/BUCK
new file mode 100644
index 0000000..71f32e6
--- /dev/null
+++ b/tools/build/conf/BUCK
@@ -0,0 +1,20 @@
+checkstyle_source = 'src/main/resources/onos/checkstyle.xml'
+suppression_source = 'src/main/resources/onos/suppressions.xml'
+
+xml = ('<module name="SuppressionFilter">'
+       '<property name="file" value="$(location :suppressions.xml)"/>'
+       '</module>' )
+cmd = "sed 's#<module name=\"Checker\">#<module name=\"Checker\">%s#' %s > $OUT" % ( xml, checkstyle_source )
+
+genrule(
+  name = 'checkstyle-xml',
+  srcs = [ checkstyle_source ],
+  out = 'checkstyle.xml',
+  bash = cmd,
+  visibility = [ 'PUBLIC' ]
+)
+
+export_file(
+  name = 'suppressions.xml',
+  src = suppression_source,
+)