Adding src/main/webapp resources to WARs

This fixes onos-gui, so now onos-rest and onos-gui work.
We also exclude duplicate resources in the output jar.

Change-Id: I5fef1376a9f7e88cb7248a606e8f568f641ab45b
diff --git a/web/gui/BUCK b/web/gui/BUCK
index 12ffbd0..b1a9a7c 100644
--- a/web/gui/BUCK
+++ b/web/gui/BUCK
@@ -22,6 +22,17 @@
     '//lib:TEST',
 ]
 
+RESOURCES = [
+    'WEB-INF/classes/index.html=src/main/webapp/index.html',
+    'WEB-INF/classes/login.html=src/main/webapp/login.html',
+    'WEB-INF/classes/error.html=src/main/webapp/error.html',
+    'WEB-INF/classes/not-ready.html=src/main/webapp/not-ready.html',
+    'WEB-INF/classes/onos.js=src/main/webapp/onos.js',
+    'WEB-INF/classes/nav.html=src/main/webapp/nav.html',
+    'WEB-INF/classes/app/view=src/main/webapp/app/view',
+    'WEB-INF/classes/raw=src/main/webapp/raw',
+]
+
 osgi_jar(
     name = CURRENT_NAME,
     srcs = glob([SRC + '/*.java']),
@@ -29,6 +40,9 @@
     resources_root = RESOURCES_ROOT,
     deps = COMPILE_DEPS,
     visibility = ['PUBLIC'],
+    include_resources = ','.join(RESOURCES),
+    web_context = '/onos/ui',
+    debug = False,
 )
 
 java_test(