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 | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 25 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 26 | name = CURRENT_NAME, |
| 27 | srcs = glob([SRC + '/*.java']), |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 28 | resources = glob([RESOURCES_ROOT + '**']), |
| 29 | resources_root = RESOURCES_ROOT, |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 30 | deps = COMPILE_DEPS, |
| 31 | visibility = ['PUBLIC'], |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 32 | ) |
| 33 | |
| 34 | java_test( |
| 35 | name = 'tests', |
| 36 | srcs = glob([TEST + '/*.java']), |
| 37 | deps = COMPILE_DEPS + |
| 38 | TEST_DEPS + |
| 39 | [CURRENT_TARGET], |
| 40 | source_under_test = [CURRENT_TARGET], |
| 41 | ) |