Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
Brian O'Connor | 85f28d0 | 2016-04-05 20:31:18 -0700 | [diff] [blame] | 2 | TEST = 'src/test/java/org/onosproject/**/' |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 3 | RESOURCES_ROOT = 'src/main/resources/' |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 4 | |
| 5 | CURRENT_NAME = 'onos-gui' |
| 6 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 7 | |
| 8 | COMPILE_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 | |
| 21 | TEST_DEPS = [ |
| 22 | '//lib:TEST', |
| 23 | ] |
| 24 | |
Brian O'Connor | e5817c9 | 2016-04-06 15:41:48 -0700 | [diff] [blame] | 25 | RESOURCES = [ |
| 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'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 36 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 37 | name = CURRENT_NAME, |
| 38 | srcs = glob([SRC + '/*.java']), |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 39 | resources = glob([RESOURCES_ROOT + '**']), |
| 40 | resources_root = RESOURCES_ROOT, |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 41 | deps = COMPILE_DEPS, |
| 42 | visibility = ['PUBLIC'], |
Brian O'Connor | e5817c9 | 2016-04-06 15:41:48 -0700 | [diff] [blame] | 43 | include_resources = ','.join(RESOURCES), |
| 44 | web_context = '/onos/ui', |
| 45 | debug = False, |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 46 | ) |
| 47 | |
| 48 | java_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 | ) |