Updating buck plugin to track web resources
Also, renaming onosjar to onos.
Change-Id: Ia726772462b0bc997b92dbcb4bdc477ee7b590b0
diff --git a/web/gui/BUCK b/web/gui/BUCK
index c353c60..88181de 100644
--- a/web/gui/BUCK
+++ b/web/gui/BUCK
@@ -19,21 +19,21 @@
'//core/api:onos-api-tests',
]
-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',
-]
+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_with_tests (
name = 'onos-gui',
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
- include_resources = ','.join(RESOURCES),
+ include_resources = RESOURCES,
web_context = '/onos/ui',
)