blob: b1a9a7c204d8b8517f094d19ae872d858356c265 [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/**/'
Brian O'Connor85f28d02016-04-05 20:31:18 -07002TEST = 'src/test/java/org/onosproject/**/'
Brian O'Connorb86c9202016-04-05 20:15:04 -07003RESOURCES_ROOT = 'src/main/resources/'
Ray Milkeyf80bbb22016-03-11 10:16:22 -08004
5CURRENT_NAME = 'onos-gui'
6CURRENT_TARGET = ':' + CURRENT_NAME
7
8COMPILE_DEPS = [
9 '//lib:CORE_DEPS',
10 '//lib:javax.ws.rs-api',
11 '//lib:servlet-api',
12 '//lib:jetty-websocket',
13 '//lib:jetty-util',
14 '//lib:jersey-media-multipart',
15 '//incubator/api:onos-incubator-api',
16 '//incubator/net:onos-incubator-net',
17 '//utils/rest:onlab-rest',
18 '//core/store/serializers:onos-core-serializers',
19]
20
21TEST_DEPS = [
22 '//lib:TEST',
23]
24
Brian O'Connore5817c92016-04-06 15:41:48 -070025RESOURCES = [
26 'WEB-INF/classes/index.html=src/main/webapp/index.html',
27 'WEB-INF/classes/login.html=src/main/webapp/login.html',
28 'WEB-INF/classes/error.html=src/main/webapp/error.html',
29 'WEB-INF/classes/not-ready.html=src/main/webapp/not-ready.html',
30 'WEB-INF/classes/onos.js=src/main/webapp/onos.js',
31 'WEB-INF/classes/nav.html=src/main/webapp/nav.html',
32 'WEB-INF/classes/app/view=src/main/webapp/app/view',
33 'WEB-INF/classes/raw=src/main/webapp/raw',
34]
35
Brian O'Connorb86c9202016-04-05 20:15:04 -070036osgi_jar(
Ray Milkeyf80bbb22016-03-11 10:16:22 -080037 name = CURRENT_NAME,
38 srcs = glob([SRC + '/*.java']),
Brian O'Connorb86c9202016-04-05 20:15:04 -070039 resources = glob([RESOURCES_ROOT + '**']),
40 resources_root = RESOURCES_ROOT,
Ray Milkeyf80bbb22016-03-11 10:16:22 -080041 deps = COMPILE_DEPS,
42 visibility = ['PUBLIC'],
Brian O'Connore5817c92016-04-06 15:41:48 -070043 include_resources = ','.join(RESOURCES),
44 web_context = '/onos/ui',
45 debug = False,
Ray Milkeyf80bbb22016-03-11 10:16:22 -080046)
47
48java_test(
49 name = 'tests',
50 srcs = glob([TEST + '/*.java']),
51 deps = COMPILE_DEPS +
52 TEST_DEPS +
53 [CURRENT_TARGET],
54 source_under_test = [CURRENT_TARGET],
55)