Committed by
Gerrit Code Review
Initial BUCK build
Change-Id: I64e8a979301989062f4545a4841b06c15a372049
Showing
129 changed files
with
3763 additions
and
6 deletions
.buckconfig
0 → 100644
BUCK
0 → 100644
1 | +DEPS = [ | ||
2 | + '//utils/osgi:onlab-osgi', | ||
3 | + '//utils/junit:onlab-junit', | ||
4 | + '//utils/misc:onlab-misc', | ||
5 | + '//utils/rest:onlab-rest', | ||
6 | + '//core/api:onos-api', | ||
7 | + '//incubator/api:onos-incubator-api', | ||
8 | + '//incubator/net:onos-incubator-net', | ||
9 | + '//core/net:onos-core-net', | ||
10 | + '//core/store/primitives:onos-core-primitives', | ||
11 | + '//core/store/serializers:onos-core-serializers', | ||
12 | + '//core/store/dist:onos-core-dist', | ||
13 | + '//core/security:onos-security', | ||
14 | + '//core/store/persistence:onos-core-persistence', | ||
15 | + '//cli:onos-cli', | ||
16 | + | ||
17 | + '//protocols/rest/api:onos-restsb-api', | ||
18 | + '//protocols/rest/ctl:onos-restsb-ctl', | ||
19 | + '//protocols/bgp/bgpio:onos-bgpio', | ||
20 | + '//protocols/bgp/api:onos-bgp-api', | ||
21 | + '//protocols/bgp/ctl:onos-bgp-ctl', | ||
22 | + '//protocols/netconf/api:onos-netconf-api', | ||
23 | + '//protocols/netconf/ctl:onos-netconf-ctl', | ||
24 | + '//protocols/openflow/api:onos-of-api', | ||
25 | + '//protocols/openflow/ctl:onos-of-ctl', | ||
26 | + '//protocols/ospf/api:onos-ospf-api', | ||
27 | + '//protocols/ospf/protocol:onos-ospf-protocol', | ||
28 | + '//protocols/ospf/ctl:onos-ospf-ctl', | ||
29 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
30 | + '//protocols/ovsdb/api:onos-ovsdb-api', | ||
31 | + '//protocols/ovsdb/ctl:onos-ovsdb-ctl', | ||
32 | + '//protocols/pcep/pcepio:onos-pcep-pcepio', | ||
33 | + '//protocols/pcep/api:onos-pcep-controller-api', | ||
34 | + '//protocols/pcep/ctl:onos-pcep-ctl', | ||
35 | + | ||
36 | + '//drivers/utilities:onos-drivers-utilities', | ||
37 | + '//drivers/ciena:onos-drivers-ciena', | ||
38 | + '//drivers/cisco:onos-drivers-cisco', | ||
39 | + '//drivers/default:onos-drivers-default', | ||
40 | + '//drivers/fujitsu:onos-drivers-fujitsu', | ||
41 | + '//drivers/lumentum:onos-drivers-lumentum', | ||
42 | + '//drivers/netconf:onos-drivers-netconf', | ||
43 | + '//drivers/ovsdb:onos-drivers-ovsdb', | ||
44 | + | ||
45 | + '//providers/bgp/cfg:onos-bgp-provider-cfg', | ||
46 | + '//providers/bgp/flow:onos-bgp-provider-flow', | ||
47 | + '//providers/bgp/topology:onos-bgp-provider-topology', | ||
48 | + '//providers/host:onos-host-provider', | ||
49 | + '//providers/lldpcommon:onos-lldp-provider-common', | ||
50 | + '//providers/netcfglinks:onos-netcfg-links-provider', | ||
51 | + '//providers/lldp:onos-lldp-provider', | ||
52 | + '//providers/netconf/device:onos-netconf-provider-device', | ||
53 | + '//providers/netcfghost:onos-netcfg-links-provider', | ||
54 | + '//providers/null:onos-null-providers', | ||
55 | + '//providers/openflow/device:onos-of-provider-device', | ||
56 | + '//providers/openflow/flow:onos-of-provider-flow', | ||
57 | + '//providers/openflow/group:onos-of-provider-group', | ||
58 | + '//providers/openflow/message:onos-of-provider-message', | ||
59 | + '//providers/openflow/meter:onos-of-provider-meter', | ||
60 | + '//providers/openflow/packet:onos-of-provider-packet', | ||
61 | + '//providers/ovsdb/device:onos-ovsdb-provider-device', | ||
62 | + '//providers/ovsdb/host:onos-ovsdb-provider-host', | ||
63 | + '//providers/ovsdb/tunnel:onos-ovsdb-provider-tunnel', | ||
64 | + '//providers/pcep/topology:onos-pcep-provider-topology', | ||
65 | + '//providers/pcep/tunnel:onos-pcep-provider-tunnel', | ||
66 | + '//providers/rest/device:onos-restsb-provider-device', | ||
67 | + '//providers/snmp/alarm:onos-snmp-provider-alarm', | ||
68 | + '//providers/snmp/device:onos-snmp-provider-device', | ||
69 | + | ||
70 | + '//web/api:onos-rest', | ||
71 | + '//web/gui:onos-gui', | ||
72 | + | ||
73 | + '//apps/cpman/api:onos-app-cpman-api', | ||
74 | + '//apps/cpman/app:onos-app-cpman-app', | ||
75 | + '//apps/aaa:onos-app-aaa', | ||
76 | + '//apps/acl:onos-app-acl', | ||
77 | + '//apps/bgprouter:onos-app-bgprouter', | ||
78 | + '//apps/routing-api:onos-app-routing-api', | ||
79 | + '//apps/cip:onos-app-cip', | ||
80 | + '//apps/cordmcast:onos-app-cord-mcast', | ||
81 | + '//apps/cordvtn:onos-app-cordvtn', | ||
82 | + '//apps/dhcp/api:onos-app-dhcp-api', | ||
83 | + '//apps/dhcp/app:onos-app-dhcp-app', | ||
84 | + '//apps/drivermatrix:onos-app-drivermatrix', | ||
85 | + '//apps/events:onos-app-events', | ||
86 | + '//apps/faultmanagement:onos-app-fm', | ||
87 | + '//apps/flowanalyzer:onos-app-flowanalyzer', | ||
88 | + '//apps/fwd:onos-app-fwd', | ||
89 | + '//apps/igmp:onos-app-igmp', | ||
90 | + '//apps/influxdbmetrics:onos-app-influxdb', | ||
91 | + '//apps/olt:onos-app-olt-api', | ||
92 | + '//apps/olt:onos-app-olt-app', | ||
93 | + '//apps/iptopology-api:onos-app-iptopology-api', | ||
94 | + '//apps/metrics:onos-app-metrics', | ||
95 | + '//apps/metricsreporter:onos-app-metrics-reporter', | ||
96 | + '//apps/mfwd:onos-app-mfwd', | ||
97 | + '//apps/mlb:onos-app-mlb', | ||
98 | + '//apps/mobility:onos-app-mobility', | ||
99 | + '//apps/openstackinterface:onos-app-openstackinterface-api', | ||
100 | + '//apps/openstackinterface:onos-app-openstackinterface-app', | ||
101 | + '//apps/openstacknetworking:onos-app-openstacknetworking', | ||
102 | + '//apps/openstacknode:onos-app-openstacknode', | ||
103 | + '//apps/optical:onos-app-optical', | ||
104 | + '//apps/pathpainter:onos-app-pp', | ||
105 | + '//apps/pim:onos-app-pim', | ||
106 | + '//apps/proxyarp:onos-app-proxyarp', | ||
107 | + '//apps/routing:onos-app-routing', | ||
108 | + '//apps/sdnip:onos-app-sdnip', | ||
109 | + '//apps/segmentrouting:onos-app-segmentrouting', | ||
110 | + '//apps/test:onos-app-test', | ||
111 | + '//apps/vtn:onos-app-vtn', | ||
112 | + '//apps/virtualbng:onos-app-virtualbng', | ||
113 | + '//apps/vpls:onos-app-vpls', | ||
114 | + '//apps/vrouter:onos-app-vrouter', | ||
115 | +] | ||
116 | + | ||
117 | +java_library( | ||
118 | + name = 'onos', | ||
119 | + visibility = ['PUBLIC'], | ||
120 | + deps = DEPS | ||
121 | +) |
apps/aaa/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-aaa' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//cli:onos-cli', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'tests', | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + deps = COMPILE_DEPS + | ||
28 | + TEST_DEPS + | ||
29 | + [CURRENT_TARGET], | ||
30 | + source_under_test = [CURRENT_TARGET], | ||
31 | +) |
apps/acl/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-acl' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:javax.ws.rs-api', | ||
10 | + '//utils/rest:onlab-rest', | ||
11 | + '//core/store/serializers:onos-core-serializers', | ||
12 | +] | ||
13 | + | ||
14 | +TEST_DEPS = [ | ||
15 | + '//lib:TEST', | ||
16 | +] | ||
17 | + | ||
18 | +java_library( | ||
19 | + name = CURRENT_NAME, | ||
20 | + srcs = glob([SRC + '/*.java']), | ||
21 | + deps = COMPILE_DEPS, | ||
22 | + visibility = ['PUBLIC'], | ||
23 | +) | ||
24 | + | ||
25 | +java_test( | ||
26 | + name = 'tests', | ||
27 | + srcs = glob([TEST + '/*.java']), | ||
28 | + deps = COMPILE_DEPS + | ||
29 | + TEST_DEPS + | ||
30 | + [CURRENT_TARGET], | ||
31 | + source_under_test = [CURRENT_TARGET], | ||
32 | +) |
apps/bgprouter/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-bgprouter' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//incubator/api:onos-incubator-api', | ||
10 | + '//apps/routing-api:onos-app-routing-api', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'tests', | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + deps = COMPILE_DEPS + | ||
28 | + TEST_DEPS + | ||
29 | + [CURRENT_TARGET], | ||
30 | + source_under_test = [CURRENT_TARGET], | ||
31 | +) |
apps/cip/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-cip' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/cordmcast/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-cord-mcast' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:javax.ws.rs-api', | ||
10 | + '//lib:jersey-client', | ||
11 | + '//lib:jersey-common', | ||
12 | + '//utils/rest:onlab-rest', | ||
13 | + '//apps/olt:onos-app-olt-api', | ||
14 | +] | ||
15 | + | ||
16 | +TEST_DEPS = [ | ||
17 | + '//lib:TEST', | ||
18 | +] | ||
19 | + | ||
20 | +java_library( | ||
21 | + name = CURRENT_NAME, | ||
22 | + srcs = glob([SRC + '/*.java']), | ||
23 | + deps = COMPILE_DEPS, | ||
24 | + visibility = ['PUBLIC'], | ||
25 | +) | ||
26 | + | ||
27 | +java_test( | ||
28 | + name = 'tests', | ||
29 | + srcs = glob([TEST + '/*.java']), | ||
30 | + deps = COMPILE_DEPS + | ||
31 | + TEST_DEPS + | ||
32 | + [CURRENT_TARGET], | ||
33 | + source_under_test = [CURRENT_TARGET], | ||
34 | +) |
apps/cordvtn/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-cordvtn' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | + '//lib:jsch', | ||
12 | + '//utils/rest:onlab-rest', | ||
13 | + '//cli:onos-cli', | ||
14 | + '//core/store/serializers:onos-core-serializers', | ||
15 | + '//apps/openstackinterface:onos-app-openstackinterface-api', | ||
16 | + '//apps/dhcp/api:onos-app-dhcp-api', | ||
17 | + '//protocols/ovsdb/api:onos-ovsdb-api', | ||
18 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
19 | +] | ||
20 | + | ||
21 | +TEST_DEPS = [ | ||
22 | + '//lib:TEST', | ||
23 | +] | ||
24 | + | ||
25 | +java_library( | ||
26 | + name = CURRENT_NAME, | ||
27 | + srcs = glob([SRC + '/*.java']), | ||
28 | + deps = COMPILE_DEPS, | ||
29 | + visibility = ['PUBLIC'], | ||
30 | + resources_root = 'src/main/resources', | ||
31 | + resources = glob(['src/main/resources/**']), | ||
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 | +) |
apps/cpman/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-cpman-api' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + ] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/cpman/app/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-cpman-app' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | + '//lib:rrd4j', | ||
12 | + '//apps/cpman/api:onos-app-cpman-api', | ||
13 | + '//utils/rest:onlab-rest', | ||
14 | + '//cli:onos-cli', | ||
15 | + ] | ||
16 | + | ||
17 | +TEST_DEPS = [ | ||
18 | + '//lib:TEST', | ||
19 | +] | ||
20 | + | ||
21 | +java_library( | ||
22 | + name = CURRENT_NAME, | ||
23 | + srcs = glob([SRC + '/*.java']), | ||
24 | + deps = COMPILE_DEPS, | ||
25 | + visibility = ['PUBLIC'], | ||
26 | +) | ||
27 | + | ||
28 | +java_test( | ||
29 | + name = 'tests', | ||
30 | + srcs = glob([TEST + '/*.java']), | ||
31 | + deps = COMPILE_DEPS + | ||
32 | + TEST_DEPS + | ||
33 | + [CURRENT_TARGET], | ||
34 | + source_under_test = [CURRENT_TARGET], | ||
35 | +) |
apps/dhcp/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-dhcp-api' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/dhcp/app/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-dhcp-app' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:javax.ws.rs-api', | ||
10 | + '//lib:org.apache.karaf.shell.console', | ||
11 | + '//apps/dhcp/api:onos-app-dhcp-api', | ||
12 | + '//utils/rest:onlab-rest', | ||
13 | + '//core/store/serializers:onos-core-serializers', | ||
14 | + '//cli:onos-cli', | ||
15 | +] | ||
16 | + | ||
17 | +TEST_DEPS = [ | ||
18 | + '//lib:TEST', | ||
19 | +] | ||
20 | + | ||
21 | +java_library( | ||
22 | + name = CURRENT_NAME, | ||
23 | + srcs = glob([SRC + '/*.java']), | ||
24 | + deps = COMPILE_DEPS, | ||
25 | + visibility = ['PUBLIC'], | ||
26 | +) | ||
27 | + | ||
28 | +java_test( | ||
29 | + name = 'tests', | ||
30 | + srcs = glob([TEST + '/*.java']), | ||
31 | + deps = COMPILE_DEPS + | ||
32 | + TEST_DEPS + | ||
33 | + [CURRENT_TARGET], | ||
34 | + source_under_test = [CURRENT_TARGET], | ||
35 | +) |
apps/drivermatrix/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-drivermatrix' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//cli:onos-cli', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | + resources_root = 'src/main/resources', | ||
23 | + resources = glob(['src/main/resources/**']), | ||
24 | +) | ||
25 | + | ||
26 | +java_test( | ||
27 | + name = 'tests', | ||
28 | + srcs = glob([TEST + '/*.java']), | ||
29 | + deps = COMPILE_DEPS + | ||
30 | + TEST_DEPS + | ||
31 | + [CURRENT_TARGET], | ||
32 | + source_under_test = [CURRENT_TARGET], | ||
33 | +) |
apps/events/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-events' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//cli:onos-cli', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | + resources_root = 'src/main/resources', | ||
23 | + resources = glob(['src/main/resources/**']), | ||
24 | +) | ||
25 | + | ||
26 | +java_test( | ||
27 | + name = 'tests', | ||
28 | + srcs = glob([TEST + '/*.java']), | ||
29 | + deps = COMPILE_DEPS + | ||
30 | + TEST_DEPS + | ||
31 | + [CURRENT_TARGET], | ||
32 | + source_under_test = [CURRENT_TARGET], | ||
33 | +) |
apps/faultmanagement/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +COMPILE_DEPS = [ | ||
5 | + '//lib:CORE_DEPS', | ||
6 | + '//lib:org.apache.karaf.shell.console', | ||
7 | + '//incubator/api:onos-incubator-api', | ||
8 | + '//cli:onos-cli', | ||
9 | + '//utils/rest:onlab-rest', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = 'onos-app-fm', | ||
19 | + visibility = ['PUBLIC'], | ||
20 | + deps = [':fmcli', ':fmgui', ':fmmgr', ':fmweb'], | ||
21 | +) | ||
22 | + | ||
23 | +java_library( | ||
24 | + name = 'fmcli', | ||
25 | + srcs = glob(['fmcli/' + SRC + '*.java']), | ||
26 | + deps = COMPILE_DEPS, | ||
27 | + visibility = ['PUBLIC'], | ||
28 | + resources_root = 'fmcli/src/main/resources', | ||
29 | + resources = glob(['fmcli/src/main/resources/**']), | ||
30 | +) | ||
31 | + | ||
32 | +java_test( | ||
33 | + name = 'fmcli-tests', | ||
34 | + srcs = glob(['fmcli/' + TEST + '*.java']), | ||
35 | + deps = COMPILE_DEPS + | ||
36 | + TEST_DEPS + | ||
37 | + [':fmcli'], | ||
38 | + source_under_test = [':fmcli'], | ||
39 | +) | ||
40 | + | ||
41 | +java_library( | ||
42 | + name = 'fmgui', | ||
43 | + srcs = glob(['fmgui/' + SRC + '*.java']), | ||
44 | + deps = COMPILE_DEPS, | ||
45 | + visibility = ['PUBLIC'], | ||
46 | + resources_root = 'fmgui/src/main/resources', | ||
47 | + resources = glob(['fmgui/src/main/resources/**']), | ||
48 | +) | ||
49 | + | ||
50 | +java_test( | ||
51 | + name = 'fmgui-tests', | ||
52 | + srcs = glob(['fmgui/' + TEST + '*.java']), | ||
53 | + deps = COMPILE_DEPS + | ||
54 | + TEST_DEPS + | ||
55 | + [':fmgui'], | ||
56 | + source_under_test = [':fmgui'], | ||
57 | +) | ||
58 | + | ||
59 | +java_library( | ||
60 | + name = 'fmmgr', | ||
61 | + srcs = glob(['fmmgr/' + SRC + '*.java']), | ||
62 | + deps = COMPILE_DEPS, | ||
63 | + visibility = ['PUBLIC'], | ||
64 | +) | ||
65 | + | ||
66 | +java_test( | ||
67 | + name = 'fmmgr-tests', | ||
68 | + srcs = glob(['fmmgr/' + TEST + '*.java']), | ||
69 | + deps = COMPILE_DEPS + | ||
70 | + TEST_DEPS + | ||
71 | + [':fmmgr'], | ||
72 | + source_under_test = [':fmmgr'], | ||
73 | +) | ||
74 | + | ||
75 | +java_library( | ||
76 | + name = 'fmweb', | ||
77 | + srcs = glob(['fmweb/' + SRC + '*.java']), | ||
78 | + deps = COMPILE_DEPS, | ||
79 | + visibility = ['PUBLIC'], | ||
80 | +) | ||
81 | + | ||
82 | +java_test( | ||
83 | + name = 'fmweb-tests', | ||
84 | + srcs = glob(['fmweb/' + TEST + '*.java']), | ||
85 | + deps = COMPILE_DEPS + | ||
86 | + TEST_DEPS + | ||
87 | + [':fmweb'], | ||
88 | + source_under_test = [':fmweb'], | ||
89 | + resources_root = 'fmweb/src/test/resources', | ||
90 | + resources = glob(['fmweb/src/test/resources/**']), | ||
91 | +) |
apps/flowanalyzer/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-flowanalyzer' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//cli:onos-cli', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | + resources_root = 'src/main/resources', | ||
23 | + resources = glob(['src/main/resources/**']), | ||
24 | +) | ||
25 | + | ||
26 | +java_test( | ||
27 | + name = 'tests', | ||
28 | + srcs = glob([TEST + '/*.java']), | ||
29 | + deps = COMPILE_DEPS + | ||
30 | + TEST_DEPS + | ||
31 | + [CURRENT_TARGET], | ||
32 | + source_under_test = [CURRENT_TARGET], | ||
33 | +) |
apps/fwd/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-fwd' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//cli:onos-cli', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'tests', | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + deps = COMPILE_DEPS + | ||
28 | + TEST_DEPS + | ||
29 | + [CURRENT_TARGET], | ||
30 | + source_under_test = [CURRENT_TARGET], | ||
31 | +) |
apps/igmp/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-igmp' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//cli:onos-cli', | ||
11 | + '//apps/olt:onos-app-olt-api', | ||
12 | +] | ||
13 | + | ||
14 | +TEST_DEPS = [ | ||
15 | + '//lib:TEST', | ||
16 | +] | ||
17 | + | ||
18 | +java_library( | ||
19 | + name = CURRENT_NAME, | ||
20 | + srcs = glob([SRC + '/*.java']), | ||
21 | + deps = COMPILE_DEPS, | ||
22 | + visibility = ['PUBLIC'], | ||
23 | +) | ||
24 | + | ||
25 | +java_test( | ||
26 | + name = 'tests', | ||
27 | + srcs = glob([TEST + '/*.java']), | ||
28 | + deps = COMPILE_DEPS + | ||
29 | + TEST_DEPS + | ||
30 | + [CURRENT_TARGET], | ||
31 | + source_under_test = [CURRENT_TARGET], | ||
32 | +) |
apps/influxdbmetrics/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-influxdb' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//lib:metrics-influxdb', | ||
11 | + '//lib:influxdb-java', | ||
12 | + '//cli:onos-cli', | ||
13 | +] | ||
14 | + | ||
15 | +TEST_DEPS = [ | ||
16 | + '//lib:TEST', | ||
17 | +] | ||
18 | + | ||
19 | +java_library( | ||
20 | + name = CURRENT_NAME, | ||
21 | + srcs = glob([SRC + '/*.java']), | ||
22 | + deps = COMPILE_DEPS, | ||
23 | + visibility = ['PUBLIC'], | ||
24 | +) | ||
25 | + | ||
26 | +java_test( | ||
27 | + name = 'tests', | ||
28 | + srcs = glob([TEST + '/*.java']), | ||
29 | + deps = COMPILE_DEPS + | ||
30 | + TEST_DEPS + | ||
31 | + [CURRENT_TARGET], | ||
32 | + source_under_test = [CURRENT_TARGET], | ||
33 | +) |
apps/iptopology-api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-iptopology-api' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/metrics/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-metrics' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | + '//utils/rest:onlab-rest', | ||
12 | + '//cli:onos-cli', | ||
13 | +] | ||
14 | + | ||
15 | +TEST_DEPS = [ | ||
16 | + '//lib:TEST', | ||
17 | +] | ||
18 | + | ||
19 | +java_library( | ||
20 | + name = CURRENT_NAME, | ||
21 | + srcs = glob([SRC + '/*.java']), | ||
22 | + deps = COMPILE_DEPS, | ||
23 | + visibility = ['PUBLIC'], | ||
24 | + resources_root = 'src/main/resources', | ||
25 | + resources = glob(['src/main/resources/**']), | ||
26 | +) | ||
27 | + | ||
28 | +java_test( | ||
29 | + name = 'tests', | ||
30 | + srcs = glob([TEST + '/*.java']), | ||
31 | + deps = COMPILE_DEPS + | ||
32 | + TEST_DEPS + | ||
33 | + [CURRENT_TARGET], | ||
34 | + source_under_test = [CURRENT_TARGET], | ||
35 | +) |
apps/metricsreporter/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-metrics-reporter' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:gmetric4j', | ||
10 | + '//lib:metrics-ganglia', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'tests', | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + deps = COMPILE_DEPS + | ||
28 | + TEST_DEPS + | ||
29 | + [CURRENT_TARGET], | ||
30 | + source_under_test = [CURRENT_TARGET], | ||
31 | +) |
apps/mfwd/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-mfwd' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/mlb/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-mlb' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/mobility/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-mobility' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/olt/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +COMPILE_DEPS = [ | ||
5 | + '//lib:CORE_DEPS', | ||
6 | + '//lib:javax.ws.rs-api', | ||
7 | + '//lib:jersey-client', | ||
8 | + '//lib:org.apache.karaf.shell.console', | ||
9 | + '//utils/rest:onlab-rest', | ||
10 | + '//cli:onos-cli', | ||
11 | + '//core/store/serializers:onos-core-serializers', | ||
12 | +] | ||
13 | + | ||
14 | +TEST_DEPS = [ | ||
15 | + '//lib:TEST', | ||
16 | +] | ||
17 | + | ||
18 | +java_library( | ||
19 | + name = 'onos-app-olt-api', | ||
20 | + srcs = glob(['api/' + SRC + '*.java']), | ||
21 | + deps = COMPILE_DEPS, | ||
22 | + visibility = ['PUBLIC'], | ||
23 | +) | ||
24 | + | ||
25 | +java_test( | ||
26 | + name = 'onos-app-olt-api-tests', | ||
27 | + srcs = glob([TEST + 'api/*.java']), | ||
28 | + deps = COMPILE_DEPS + | ||
29 | + TEST_DEPS + | ||
30 | + [':onos-app-olt-api'], | ||
31 | + source_under_test = [':onos-app-olt-api'], | ||
32 | +) | ||
33 | + | ||
34 | +java_library( | ||
35 | + name = 'onos-app-olt-app', | ||
36 | + srcs = glob(['app/' + SRC + '*.java']), | ||
37 | + deps = COMPILE_DEPS + [':onos-app-olt-api'], | ||
38 | + visibility = ['PUBLIC'], | ||
39 | +) | ||
40 | + | ||
41 | +java_test( | ||
42 | + name = 'onos-app-olt-app-tests', | ||
43 | + srcs = glob([TEST + 'app/*.java']), | ||
44 | + deps = COMPILE_DEPS + | ||
45 | + TEST_DEPS + | ||
46 | + [':onos-app-olt-api', ':onos-app-olt-app'], | ||
47 | + source_under_test = [':onos-app-olt-app'], | ||
48 | +) |
apps/openstackinterface/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +COMPILE_DEPS = [ | ||
5 | + '//lib:CORE_DEPS', | ||
6 | + '//lib:jersey-client', | ||
7 | + '//lib:javax.ws.rs-api', | ||
8 | +] | ||
9 | + | ||
10 | +TEST_DEPS = [ | ||
11 | + '//lib:TEST', | ||
12 | +] | ||
13 | + | ||
14 | +java_library( | ||
15 | + name = 'onos-app-openstackinterface-api', | ||
16 | + srcs = glob(['api/' + SRC + '*.java']), | ||
17 | + deps = COMPILE_DEPS, | ||
18 | + visibility = ['PUBLIC'], | ||
19 | +) | ||
20 | + | ||
21 | +java_test( | ||
22 | + name = 'onos-app-openstackinterface-api-tests', | ||
23 | + srcs = glob([TEST + '/*.java']), | ||
24 | + deps = COMPILE_DEPS + | ||
25 | + TEST_DEPS + | ||
26 | + [':onos-app-openstackinterface-api'], | ||
27 | + source_under_test = [':onos-app-openstackinterface-api'], | ||
28 | +) | ||
29 | + | ||
30 | +java_library( | ||
31 | + name = 'onos-app-openstackinterface-app', | ||
32 | + srcs = glob(['app/' + SRC + '*.java']), | ||
33 | + deps = COMPILE_DEPS + [':onos-app-openstackinterface-api'], | ||
34 | + visibility = ['PUBLIC'], | ||
35 | +) | ||
36 | + | ||
37 | +java_test( | ||
38 | + name = 'onos-app-openstackinterface-app-tests', | ||
39 | + srcs = glob([TEST + '/*.java']), | ||
40 | + deps = COMPILE_DEPS + | ||
41 | + TEST_DEPS + | ||
42 | + [':onos-app-openstackinterface-api', ':onos-app-openstackinterface-app'], | ||
43 | + source_under_test = [':onos-app-openstackinterface-app'], | ||
44 | +) |
apps/openstacknetworking/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +COMPILE_DEPS = [ | ||
5 | + '//lib:CORE_DEPS', | ||
6 | + '//lib:jersey-client', | ||
7 | + '//lib:javax.ws.rs-api', | ||
8 | + '//apps/openstackinterface:onos-app-openstackinterface-api', | ||
9 | + '//core/store/serializers:onos-core-serializers', | ||
10 | +] | ||
11 | + | ||
12 | +java_library( | ||
13 | + name = 'onos-app-openstacknetworking', | ||
14 | + visibility = ['PUBLIC'], | ||
15 | + deps = [ | ||
16 | + ':onos-app-openstacknetworking-api', | ||
17 | + ':onos-app-openstacknetworking-app', | ||
18 | + ':onos-app-openstackrouting', | ||
19 | + ':onos-app-openstackswitching', | ||
20 | + ':onos-app-openstacknetworking-web', | ||
21 | + ] | ||
22 | +) | ||
23 | + | ||
24 | +TEST_DEPS = [ | ||
25 | + '//lib:TEST', | ||
26 | + ':onos-app-openstacknetworking', | ||
27 | +] | ||
28 | + | ||
29 | +java_library( | ||
30 | + name = 'onos-app-openstacknetworking-api', | ||
31 | + srcs = glob(['api/' + SRC + '*.java']), | ||
32 | + deps = COMPILE_DEPS, | ||
33 | + visibility = ['PUBLIC'], | ||
34 | +) | ||
35 | + | ||
36 | +java_test( | ||
37 | + name = 'onos-app-openstacknetworking-api-tests', | ||
38 | + srcs = glob([TEST + 'api/*.java']), | ||
39 | + deps = COMPILE_DEPS + | ||
40 | + TEST_DEPS, | ||
41 | + source_under_test = [':onos-app-openstacknetworking-api'], | ||
42 | +) | ||
43 | + | ||
44 | +java_library( | ||
45 | + name = 'onos-app-openstacknetworking-app', | ||
46 | + srcs = glob(['app/' + SRC + '*.java']), | ||
47 | + deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'], | ||
48 | + visibility = ['PUBLIC'], | ||
49 | +) | ||
50 | + | ||
51 | +java_test( | ||
52 | + name = 'onos-app-openstacknetworking-app-tests', | ||
53 | + srcs = glob([TEST + 'app/*.java']), | ||
54 | + deps = COMPILE_DEPS + | ||
55 | + TEST_DEPS, | ||
56 | + source_under_test = [':onos-app-openstacknetworking-app'], | ||
57 | +) | ||
58 | + | ||
59 | +java_library( | ||
60 | + name = 'onos-app-openstackrouting', | ||
61 | + srcs = glob(['openstackrouting/' + SRC + '*.java']), | ||
62 | + deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'], | ||
63 | + visibility = ['PUBLIC'], | ||
64 | +) | ||
65 | + | ||
66 | +java_test( | ||
67 | + name = 'onos-app-openstackrouting-tests', | ||
68 | + srcs = glob([TEST + 'openstackrouting/*.java']), | ||
69 | + deps = COMPILE_DEPS + | ||
70 | + TEST_DEPS, | ||
71 | + source_under_test = [':onos-app-openstackrouting'], | ||
72 | +) | ||
73 | + | ||
74 | +java_library( | ||
75 | + name = 'onos-app-openstackswitching', | ||
76 | + srcs = glob(['openstgackswitching/' + SRC + '*.java']), | ||
77 | + deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'], | ||
78 | + visibility = ['PUBLIC'], | ||
79 | +) | ||
80 | + | ||
81 | +java_test( | ||
82 | + name = 'onos-app-openstackswitching-tests', | ||
83 | + srcs = glob([TEST + 'openstackswitching/*.java']), | ||
84 | + deps = COMPILE_DEPS + | ||
85 | + TEST_DEPS, | ||
86 | + source_under_test = [':onos-app-openstackswitching'], | ||
87 | +) | ||
88 | + | ||
89 | +java_library( | ||
90 | + name = 'onos-app-openstacknetworking-web', | ||
91 | + srcs = glob(['openstgacknetworking/' + SRC + '*.java']), | ||
92 | + deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'], | ||
93 | + visibility = ['PUBLIC'], | ||
94 | +) | ||
95 | + | ||
96 | +java_test( | ||
97 | + name = 'onos-app-openstacknetworking-web-tests', | ||
98 | + srcs = glob([TEST + 'openstackswitching/*.java']), | ||
99 | + deps = COMPILE_DEPS + | ||
100 | + TEST_DEPS, | ||
101 | + source_under_test = [':onos-app-openstacknetworking-web'], | ||
102 | +) |
apps/openstacknode/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-openstacknode' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//protocols/ovsdb/api:onos-ovsdb-api', | ||
10 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
11 | + '//core/store/serializers:onos-core-serializers', | ||
12 | +] | ||
13 | + | ||
14 | +TEST_DEPS = [ | ||
15 | + '//lib:TEST', | ||
16 | +] | ||
17 | + | ||
18 | +java_library( | ||
19 | + name = CURRENT_NAME, | ||
20 | + srcs = glob([SRC + '/*.java']), | ||
21 | + deps = COMPILE_DEPS, | ||
22 | + visibility = ['PUBLIC'], | ||
23 | +) | ||
24 | + | ||
25 | +java_test( | ||
26 | + name = 'tests', | ||
27 | + srcs = glob([TEST + '/*.java']), | ||
28 | + deps = COMPILE_DEPS + | ||
29 | + TEST_DEPS + | ||
30 | + [CURRENT_TARGET], | ||
31 | + source_under_test = [CURRENT_TARGET], | ||
32 | +) |
apps/optical/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-optical' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/pathpainter/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-pp' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | + resources_root = 'src/main/resources', | ||
21 | + resources = glob(['src/main/resources/**']), | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'tests', | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + deps = COMPILE_DEPS + | ||
28 | + TEST_DEPS + | ||
29 | + [CURRENT_TARGET], | ||
30 | + source_under_test = [CURRENT_TARGET], | ||
31 | +) |
apps/pcep-api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-pcep-api' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//protocols/ovsdb/api:onos-ovsdb-api', | ||
10 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'tests', | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + deps = COMPILE_DEPS + | ||
28 | + TEST_DEPS + | ||
29 | + [CURRENT_TARGET], | ||
30 | + source_under_test = [CURRENT_TARGET], | ||
31 | +) |
apps/pim/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-pim' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//cli:onos-cli', | ||
11 | + '//incubator/api:onos-incubator-api', | ||
12 | + '//apps/routing-api:onos-app-routing-api', | ||
13 | +] | ||
14 | + | ||
15 | +TEST_DEPS = [ | ||
16 | + '//lib:TEST', | ||
17 | +] | ||
18 | + | ||
19 | +java_library( | ||
20 | + name = CURRENT_NAME, | ||
21 | + srcs = glob([SRC + '/*.java']), | ||
22 | + deps = COMPILE_DEPS, | ||
23 | + visibility = ['PUBLIC'], | ||
24 | + resources_root = 'src/main/resources', | ||
25 | + resources = glob(['src/main/resources/**']), | ||
26 | +) | ||
27 | + | ||
28 | +java_test( | ||
29 | + name = 'tests', | ||
30 | + srcs = glob([TEST + '/*.java']), | ||
31 | + deps = COMPILE_DEPS + | ||
32 | + TEST_DEPS + | ||
33 | + [CURRENT_TARGET], | ||
34 | + source_under_test = [CURRENT_TARGET], | ||
35 | +) |
apps/proxyarp/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-proxyarp' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/routing-api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-routing-api' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
apps/routing/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-routing' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//lib:concurrent-trees', | ||
11 | + '//cli:onos-cli', | ||
12 | + '//incubator/api:onos-incubator-api', | ||
13 | + '//apps/routing-api:onos-app-routing-api', | ||
14 | + '//core/common:onos-core-common', | ||
15 | +] | ||
16 | + | ||
17 | +TEST_DEPS = [ | ||
18 | + '//lib:TEST', | ||
19 | +] | ||
20 | + | ||
21 | +java_library( | ||
22 | + name = CURRENT_NAME, | ||
23 | + srcs = glob([SRC + '/*.java']), | ||
24 | + deps = COMPILE_DEPS, | ||
25 | + visibility = ['PUBLIC'], | ||
26 | + resources_root = 'src/main/resources', | ||
27 | + resources = glob(['src/main/resources/**']), | ||
28 | +) | ||
29 | + | ||
30 | +java_test( | ||
31 | + name = 'tests', | ||
32 | + srcs = glob([TEST + '/*.java']), | ||
33 | + deps = COMPILE_DEPS + | ||
34 | + TEST_DEPS + | ||
35 | + [CURRENT_TARGET], | ||
36 | + source_under_test = [CURRENT_TARGET], | ||
37 | +) |
apps/sdnip/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-sdnip' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//incubator/api:onos-incubator-api', | ||
10 | + '//apps/routing-api:onos-app-routing-api', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'tests', | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + deps = COMPILE_DEPS + | ||
28 | + TEST_DEPS + | ||
29 | + [CURRENT_TARGET], | ||
30 | + source_under_test = [CURRENT_TARGET], | ||
31 | +) |
apps/segmentrouting/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-segmentrouting' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.karaf.shell.console', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | + '//cli:onos-cli', | ||
12 | + '//incubator/api:onos-incubator-api', | ||
13 | + '//apps/routing-api:onos-app-routing-api', | ||
14 | + '//utils/rest:onlab-rest', | ||
15 | + | ||
16 | +] | ||
17 | + | ||
18 | +TEST_DEPS = [ | ||
19 | + '//lib:TEST', | ||
20 | +] | ||
21 | + | ||
22 | +java_library( | ||
23 | + name = CURRENT_NAME, | ||
24 | + srcs = glob([SRC + '/*.java']), | ||
25 | + deps = COMPILE_DEPS, | ||
26 | + visibility = ['PUBLIC'], | ||
27 | + resources_root = 'src/main/resources', | ||
28 | + resources = glob(['src/main/resources/**']), | ||
29 | +) | ||
30 | + | ||
31 | +java_test( | ||
32 | + name = 'tests', | ||
33 | + srcs = glob([TEST + '/*.java']), | ||
34 | + deps = COMPILE_DEPS + | ||
35 | + TEST_DEPS + | ||
36 | + [CURRENT_TARGET], | ||
37 | + source_under_test = [CURRENT_TARGET], | ||
38 | +) |
apps/test/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +COMPILE_DEPS = [ | ||
5 | + '//lib:CORE_DEPS', | ||
6 | + '//lib:org.apache.karaf.shell.console', | ||
7 | + '//cli:onos-cli', | ||
8 | + '//utils/rest:onlab-rest', | ||
9 | + '//lib:javax.ws.rs-api', | ||
10 | + '//core/store/serializers:onos-core-serializers', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = 'onos-app-test', | ||
19 | + visibility = ['PUBLIC'], | ||
20 | + deps = [':onos-app-demo', | ||
21 | + ':onos-app-distributed-primitives', | ||
22 | + ':onos-app-election', | ||
23 | + ':onos-app-intent-perf', | ||
24 | + ':onos-app-loadtest', | ||
25 | + ':onos-app-messaging-perf', | ||
26 | + ], | ||
27 | +) | ||
28 | + | ||
29 | +# demo | ||
30 | + | ||
31 | +java_library( | ||
32 | + name = 'onos-app-demo', | ||
33 | + srcs = glob(['demo/' + SRC + '*.java']), | ||
34 | + deps = COMPILE_DEPS, | ||
35 | + visibility = ['PUBLIC'], | ||
36 | +) | ||
37 | + | ||
38 | +java_test( | ||
39 | + name = 'onos-app-demo-tests', | ||
40 | + srcs = glob(['demo/' + TEST + '*.java']), | ||
41 | + deps = COMPILE_DEPS + | ||
42 | + TEST_DEPS + | ||
43 | + [':onos-app-demo'], | ||
44 | + source_under_test = [':onos-app-demo'], | ||
45 | +) | ||
46 | + | ||
47 | +# distributed-primitives | ||
48 | + | ||
49 | +java_library( | ||
50 | + name = 'onos-app-distributed-primitives', | ||
51 | + srcs = glob(['distributed-primitives/' + SRC + '*.java']), | ||
52 | + deps = COMPILE_DEPS, | ||
53 | + visibility = ['PUBLIC'], | ||
54 | +) | ||
55 | + | ||
56 | +java_test( | ||
57 | + name = 'onos-app-distributed-primitives-tests', | ||
58 | + srcs = glob(['distributed-primitives/' + TEST + '*.java']), | ||
59 | + deps = COMPILE_DEPS + | ||
60 | + TEST_DEPS + | ||
61 | + [':onos-app-distributed-primitives'], | ||
62 | + source_under_test = [':onos-app-distributed-primitives'], | ||
63 | +) | ||
64 | + | ||
65 | +# election | ||
66 | + | ||
67 | +java_library( | ||
68 | + name = 'onos-app-election', | ||
69 | + srcs = glob(['election/' + SRC + '*.java']), | ||
70 | + deps = COMPILE_DEPS, | ||
71 | + visibility = ['PUBLIC'], | ||
72 | +) | ||
73 | + | ||
74 | +java_test( | ||
75 | + name = 'onos-app-election-tests', | ||
76 | + srcs = glob(['election/' + TEST + '*.java']), | ||
77 | + deps = COMPILE_DEPS + | ||
78 | + TEST_DEPS + | ||
79 | + [':onos-app-election'], | ||
80 | + source_under_test = [':onos-app-election'], | ||
81 | +) | ||
82 | + | ||
83 | +# intent-perf | ||
84 | + | ||
85 | +java_library( | ||
86 | + name = 'onos-app-intent-perf', | ||
87 | + srcs = glob(['intent-perf/' + SRC + '*.java']), | ||
88 | + deps = COMPILE_DEPS, | ||
89 | + visibility = ['PUBLIC'], | ||
90 | +) | ||
91 | + | ||
92 | +java_test( | ||
93 | + name = 'onos-app-intent-perf-tests', | ||
94 | + srcs = glob(['intent-perf/' + TEST + '*.java']), | ||
95 | + deps = COMPILE_DEPS + | ||
96 | + TEST_DEPS + | ||
97 | + [':onos-app-intent-perf'], | ||
98 | + source_under_test = [':onos-app-intent-perf'], | ||
99 | +) | ||
100 | + | ||
101 | +# loadtest | ||
102 | + | ||
103 | +java_library( | ||
104 | + name = 'onos-app-loadtest', | ||
105 | + srcs = glob(['loadtest/' + SRC + '*.java']), | ||
106 | + deps = COMPILE_DEPS, | ||
107 | + visibility = ['PUBLIC'], | ||
108 | +) | ||
109 | + | ||
110 | +java_test( | ||
111 | + name = 'onos-app-loadtest-tests', | ||
112 | + srcs = glob(['loadtest/' + TEST + '*.java']), | ||
113 | + deps = COMPILE_DEPS + | ||
114 | + TEST_DEPS + | ||
115 | + [':onos-app-loadtest'], | ||
116 | + source_under_test = [':onos-app-loadtest'], | ||
117 | +) | ||
118 | + | ||
119 | +# messaging-perf | ||
120 | + | ||
121 | +java_library( | ||
122 | + name = 'onos-app-messaging-perf', | ||
123 | + srcs = glob(['messaging-perf/' + SRC + '*.java']), | ||
124 | + deps = COMPILE_DEPS, | ||
125 | + visibility = ['PUBLIC'], | ||
126 | +) | ||
127 | + | ||
128 | +java_test( | ||
129 | + name = 'onos-app-messaging-perf-tests', | ||
130 | + srcs = glob(['messaging-perf/' + TEST + '*.java']), | ||
131 | + deps = COMPILE_DEPS + | ||
132 | + TEST_DEPS + | ||
133 | + [':onos-app-messaging-perf'], | ||
134 | + source_under_test = [':onos-app-messaging-perf'], | ||
135 | +) | ||
136 | + |
apps/virtualbng/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-virtualbng' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:jersey-client', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | + '//lib:org.apache.karaf.shell.console', | ||
12 | + '//cli:onos-cli', | ||
13 | + '//utils/rest:onlab-rest', | ||
14 | +] | ||
15 | + | ||
16 | +TEST_DEPS = [ | ||
17 | + '//lib:TEST', | ||
18 | +] | ||
19 | + | ||
20 | +java_library( | ||
21 | + name = CURRENT_NAME, | ||
22 | + srcs = glob([SRC + '/*.java']), | ||
23 | + deps = COMPILE_DEPS, | ||
24 | + visibility = ['PUBLIC'], | ||
25 | + resources_root = 'src/main/resources', | ||
26 | + resources = glob(['src/main/resources/**']), | ||
27 | +) | ||
28 | + | ||
29 | +java_test( | ||
30 | + name = 'tests', | ||
31 | + srcs = glob([TEST + '/*.java']), | ||
32 | + deps = COMPILE_DEPS + | ||
33 | + TEST_DEPS + | ||
34 | + [CURRENT_TARGET], | ||
35 | + source_under_test = [CURRENT_TARGET], | ||
36 | +) |
apps/vpls/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-vpls' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:jersey-client', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | + '//lib:org.apache.karaf.shell.console', | ||
12 | + '//cli:onos-cli', | ||
13 | + '//utils/rest:onlab-rest', | ||
14 | + '//incubator/api:onos-incubator-api', | ||
15 | + '//apps/routing-api:onos-app-routing-api', | ||
16 | +] | ||
17 | + | ||
18 | +TEST_DEPS = [ | ||
19 | + '//lib:TEST', | ||
20 | +] | ||
21 | + | ||
22 | +java_library( | ||
23 | + name = CURRENT_NAME, | ||
24 | + srcs = glob([SRC + '/*.java']), | ||
25 | + deps = COMPILE_DEPS, | ||
26 | + visibility = ['PUBLIC'], | ||
27 | +) | ||
28 | + | ||
29 | +java_test( | ||
30 | + name = 'tests', | ||
31 | + srcs = glob([TEST + '/*.java']), | ||
32 | + deps = COMPILE_DEPS + | ||
33 | + TEST_DEPS + | ||
34 | + [CURRENT_TARGET], | ||
35 | + source_under_test = [CURRENT_TARGET], | ||
36 | +) |
apps/vrouter/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-vrouter' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//incubator/api:onos-incubator-api', | ||
10 | +] | ||
11 | + | ||
12 | +TEST_DEPS = [ | ||
13 | + '//lib:TEST', | ||
14 | +] | ||
15 | + | ||
16 | +java_library( | ||
17 | + name = CURRENT_NAME, | ||
18 | + srcs = glob([SRC + '/*.java']), | ||
19 | + deps = COMPILE_DEPS, | ||
20 | + visibility = ['PUBLIC'], | ||
21 | +) | ||
22 | + | ||
23 | +java_test( | ||
24 | + name = 'tests', | ||
25 | + srcs = glob([TEST + '/*.java']), | ||
26 | + deps = COMPILE_DEPS + | ||
27 | + TEST_DEPS + | ||
28 | + [CURRENT_TARGET], | ||
29 | + source_under_test = [CURRENT_TARGET], | ||
30 | +) |
apps/vtn/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +COMPILE_DEPS = [ | ||
5 | + '//lib:CORE_DEPS', | ||
6 | + '//lib:org.apache.karaf.shell.console', | ||
7 | + '//cli:onos-cli', | ||
8 | + '//utils/rest:onlab-rest', | ||
9 | + '//lib:javax.ws.rs-api', | ||
10 | + '//core/store/serializers:onos-core-serializers', | ||
11 | + '//incubator/api:onos-incubator-api', | ||
12 | +] | ||
13 | + | ||
14 | +TEST_DEPS = [ | ||
15 | + '//lib:TEST', | ||
16 | +] | ||
17 | + | ||
18 | +java_library( | ||
19 | + name = 'onos-app-vtn', | ||
20 | + visibility = ['PUBLIC'], | ||
21 | + deps = [':onos-app-sfc-mgr', | ||
22 | + ':onos-app-vtn-mgr', | ||
23 | + ':onos-app-vtn-rsc', | ||
24 | + ':onos-app-vtn-web', | ||
25 | + ], | ||
26 | +) | ||
27 | + | ||
28 | +# sfcmgr | ||
29 | + | ||
30 | +java_library( | ||
31 | + name = 'onos-app-sfc-mgr', | ||
32 | + srcs = glob(['sfcmgr/' + SRC + '*.java']), | ||
33 | + deps = COMPILE_DEPS + [':onos-app-vtn-rsc'], | ||
34 | + visibility = ['PUBLIC'], | ||
35 | +) | ||
36 | + | ||
37 | +java_test( | ||
38 | + name = 'onos-app-sfc-mgr-tests', | ||
39 | + srcs = glob(['sfcmgr/' + TEST + '*.java']), | ||
40 | + deps = COMPILE_DEPS + | ||
41 | + TEST_DEPS + | ||
42 | + [':onos-app-sfc-mgr', ':onos-app-vtn-rsc'], | ||
43 | + source_under_test = [':onos-app-sfc-mgr'], | ||
44 | +) | ||
45 | + | ||
46 | +# vtnmgr | ||
47 | + | ||
48 | +java_library( | ||
49 | + name = 'onos-app-vtn-mgr', | ||
50 | + srcs = glob(['vtnmgr/' + SRC + '*.java']), | ||
51 | + deps = COMPILE_DEPS + [':onos-app-vtn-rsc'], | ||
52 | + visibility = ['PUBLIC'], | ||
53 | + resources_root = 'vtnmgr/src/main/resources', | ||
54 | + resources = glob(['vtnmgr/src/main/resources/**']), | ||
55 | +) | ||
56 | + | ||
57 | +java_test( | ||
58 | + name = 'onos-app-vtn-mgr-tests', | ||
59 | + srcs = glob(['vtnmgr/' + TEST + '*.java']), | ||
60 | + deps = COMPILE_DEPS + | ||
61 | + TEST_DEPS + | ||
62 | + [':onos-app-vtn-mgr', ':onos-app-vtn-rsc'], | ||
63 | + source_under_test = [':onos-app-vtn-mgr'], | ||
64 | +) | ||
65 | + | ||
66 | +# vtnrsc | ||
67 | + | ||
68 | +java_library( | ||
69 | + name = 'onos-app-vtn-rsc', | ||
70 | + srcs = glob(['vtnrsc/' + SRC + '*.java']), | ||
71 | + deps = COMPILE_DEPS, | ||
72 | + visibility = ['PUBLIC'], | ||
73 | + resources_root = 'vtnrsc/src/main/resources', | ||
74 | + resources = glob(['vtnrsc/src/main/resources/**']), | ||
75 | +) | ||
76 | + | ||
77 | +java_test( | ||
78 | + name = 'onos-app-vtn-rsc-tests', | ||
79 | + srcs = glob(['vtnrsc/' + TEST + '*.java']), | ||
80 | + deps = COMPILE_DEPS + | ||
81 | + TEST_DEPS + | ||
82 | + [':onos-app-vtn-rsc'], | ||
83 | + source_under_test = [':onos-app-vtn-rsc'], | ||
84 | +) | ||
85 | + | ||
86 | +# vtnweb | ||
87 | + | ||
88 | +java_library( | ||
89 | + name = 'onos-app-vtn-web', | ||
90 | + srcs = glob(['vtnweb/' + SRC + '*.java']), | ||
91 | + deps = COMPILE_DEPS + [':onos-app-vtn-rsc'], | ||
92 | + visibility = ['PUBLIC'], | ||
93 | +) | ||
94 | + | ||
95 | +java_test( | ||
96 | + name = 'onos-app-vtn-web-tests', | ||
97 | + srcs = glob(['vtnweb/' + TEST + '*.java']), | ||
98 | + deps = COMPILE_DEPS + | ||
99 | + TEST_DEPS + | ||
100 | + [':onos-app-vtn-web', ':onos-app-vtn-rsc'], | ||
101 | + source_under_test = [':onos-app-vtn-web'], | ||
102 | + resources_root = 'vtnweb/src/test/resources', | ||
103 | + resources = glob(['vtnweb/src/test/resources/**']), | ||
104 | +) |
apps/xos-integration/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-app-xos-integration' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:jersey-client', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | + '//lib:org.apache.karaf.shell.console', | ||
12 | + '//cli:onos-cli', | ||
13 | + '//utils/rest:onlab-rest', | ||
14 | +] | ||
15 | + | ||
16 | +TEST_DEPS = [ | ||
17 | + '//lib:TEST', | ||
18 | +] | ||
19 | + | ||
20 | +java_library( | ||
21 | + name = CURRENT_NAME, | ||
22 | + srcs = glob([SRC + '/*.java']), | ||
23 | + deps = COMPILE_DEPS, | ||
24 | + visibility = ['PUBLIC'], | ||
25 | + resources_root = 'src/main/resources', | ||
26 | + resources = glob(['src/main/resources/**']), | ||
27 | +) | ||
28 | + | ||
29 | +java_test( | ||
30 | + name = 'tests', | ||
31 | + srcs = glob([TEST + '/*.java']), | ||
32 | + deps = COMPILE_DEPS + | ||
33 | + TEST_DEPS + | ||
34 | + [CURRENT_TARGET], | ||
35 | + source_under_test = [CURRENT_TARGET], | ||
36 | +) |
buck-tools/BUCK
0 → 100644
1 | +python_binary( | ||
2 | + name = 'download_file', | ||
3 | + main = 'download_file.py', | ||
4 | + deps = [':util'], | ||
5 | + visibility = ['PUBLIC'], | ||
6 | +) | ||
7 | + | ||
8 | +python_binary( | ||
9 | + name = 'pack_war', | ||
10 | + main = 'pack_war.py', | ||
11 | + deps = [':util'], | ||
12 | + visibility = ['PUBLIC'], | ||
13 | +) | ||
14 | + | ||
15 | +python_library( | ||
16 | + name = 'util', | ||
17 | + srcs = [ | ||
18 | + 'util.py', | ||
19 | + '__init__.py' | ||
20 | + ], | ||
21 | + visibility = ['PUBLIC'], | ||
22 | +) | ||
23 | + | ||
24 | +def shquote(s): | ||
25 | + return s.replace("'", "'\\''") | ||
26 | + | ||
27 | +def os_path(): | ||
28 | + from os import environ | ||
29 | + return environ.get('PATH') | ||
30 | + | ||
31 | +genrule( | ||
32 | + name = 'buck', | ||
33 | + cmd = 'echo buck=`which buck`>$OUT;' + | ||
34 | + ("echo PATH=\''%s'\' >>$OUT;" % shquote(os_path())), | ||
35 | + out = 'buck.properties', | ||
36 | + visibility = ['PUBLIC'], | ||
37 | +) | ||
38 | + |
buck-tools/GoogleFormat.xml
0 → 100644
This diff is collapsed. Click to expand it.
buck-tools/__init__.py
0 → 100644
File mode changed
buck-tools/build.defs
0 → 100644
1 | +# Copyright (C) 2013 The Android Open Source Project | ||
2 | +# | ||
3 | +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
4 | +# you may not use this file except in compliance with the License. | ||
5 | +# You may obtain a copy of the License at | ||
6 | +# | ||
7 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
8 | +# | ||
9 | +# Unless required by applicable law or agreed to in writing, software | ||
10 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
12 | +# See the License for the specific language governing permissions and | ||
13 | +# limitations under the License. | ||
14 | + | ||
15 | +# These definitions support building a runnable version of Gerrit. | ||
16 | + | ||
17 | +DOCS_HTML = '//Documentation:html' | ||
18 | +DOCS_LIB = '//Documentation:index_lib' | ||
19 | +LIBS = [ | ||
20 | + '//gerrit-war:log4j-config', | ||
21 | + '//gerrit-war:init', | ||
22 | + '//lib:postgresql', | ||
23 | + '//lib/log:impl_log4j', | ||
24 | +] | ||
25 | +PGMLIBS = ['//gerrit-pgm:pgm'] | ||
26 | + | ||
27 | +def scan_plugins(): | ||
28 | + import os | ||
29 | + deps = [] | ||
30 | + for n in os.listdir('plugins'): | ||
31 | + if os.path.exists(os.path.join('plugins', n, 'BUCK')): | ||
32 | + deps.append('//plugins/%s:%s__plugin' % (n, n)) | ||
33 | + return deps | ||
34 | + | ||
35 | +def war( | ||
36 | + name, | ||
37 | + libs = [], | ||
38 | + pgmlibs = [], | ||
39 | + context = [], | ||
40 | + visibility = [], | ||
41 | + docs = False | ||
42 | + ): | ||
43 | + cmd = ['$(exe //tools:pack_war)', '-o', '$OUT', '--tmp', '$TMP'] | ||
44 | + for l in libs: | ||
45 | + cmd.extend(['--lib', '$(classpath %s)' % l]) | ||
46 | + for l in pgmlibs: | ||
47 | + cmd.extend(['--pgmlib', '$(classpath %s)' % l]) | ||
48 | + | ||
49 | + if docs: | ||
50 | + cmd.append('$(location %s)' % DOCS_HTML) | ||
51 | + cmd.extend(['--lib', '$(classpath %s)' % DOCS_LIB]) | ||
52 | + if context: | ||
53 | + for t in context: | ||
54 | + cmd.append('$(location %s)' % t) | ||
55 | + | ||
56 | + genrule( | ||
57 | + name = name, | ||
58 | + cmd = ' '.join(cmd), | ||
59 | + out = name + '.war', | ||
60 | + visibility = visibility, | ||
61 | + ) | ||
62 | + | ||
63 | +def gerrit_war(name, ui = 'ui_optdbg', context = [], docs = False, visibility = []): | ||
64 | + ui_deps = [] | ||
65 | + if ui: | ||
66 | + if ui == 'polygerrit' or ui == 'ui_optdbg' or ui == 'ui_optdbg_r': | ||
67 | + ui_deps.append('//polygerrit-ui/app:polygerrit_ui') | ||
68 | + if ui != 'polygerrit': | ||
69 | + ui_deps.append('//gerrit-gwtui:%s' % ui) | ||
70 | + war( | ||
71 | + name = name, | ||
72 | + libs = LIBS + ['//gerrit-war:version'], | ||
73 | + pgmlibs = PGMLIBS, | ||
74 | + context = ui_deps + context + [ | ||
75 | + '//gerrit-main:main_bin', | ||
76 | + '//gerrit-war:webapp_assets', | ||
77 | + ], | ||
78 | + docs = docs, | ||
79 | + visibility = visibility, | ||
80 | + ) |
buck-tools/checkstyle.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | ||
3 | + | ||
4 | +<!-- | ||
5 | + This configuration file was written by the eclipse-cs plugin configuration editor | ||
6 | +--> | ||
7 | +<!-- | ||
8 | + Checkstyle-Configuration: Google Checks for Gerrit | ||
9 | + Description: | ||
10 | +Checkstyle configuration based on the Google coding conventions (https://google-styleguide.googlecode.com/svn-history/r130/trunk/javaguide.html), | ||
11 | +edited to remove noisy warnings. | ||
12 | +--> | ||
13 | +<module name="Checker"> | ||
14 | + <property name="severity" value="warning"/> | ||
15 | + <property name="charset" value="UTF-8"/> | ||
16 | + <module name="TreeWalker"> | ||
17 | + <module name="FileContentsHolder"/> | ||
18 | + <module name="OuterTypeFilename"/> | ||
19 | + <module name="LineLength"> | ||
20 | + <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/> | ||
21 | + <property name="max" value="150"/> | ||
22 | + <property name="tabWidth" value="2"/> | ||
23 | + </module> | ||
24 | + <module name="OneTopLevelClass"/> | ||
25 | + <module name="NoLineWrap"/> | ||
26 | + <module name="EmptyBlock"> | ||
27 | + <property name="option" value="TEXT"/> | ||
28 | + <property name="tokens" value="LITERAL_TRY, LITERAL_CATCH, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/> | ||
29 | + </module> | ||
30 | + <module name="NeedBraces"/> | ||
31 | + <module name="LeftCurly"> | ||
32 | + <property name="maxLineLength" value="150"/> | ||
33 | + </module> | ||
34 | + <module name="RightCurly"> | ||
35 | + <property name="option" value="alone"/> | ||
36 | + <property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/> | ||
37 | + </module> | ||
38 | + <module name="WhitespaceAround"> | ||
39 | + <property name="severity" value="ignore"/> | ||
40 | + <property name="allowEmptyConstructors" value="true"/> | ||
41 | + <property name="allowEmptyMethods" value="true"/> | ||
42 | + <property name="allowEmptyTypes" value="true"/> | ||
43 | + <property name="allowEmptyLoops" value="true"/> | ||
44 | + <message key="ws.notFollowed" value="WhitespaceAround: ''{0}'' is not followed by whitespace."/> | ||
45 | + <message key="ws.notPreceded" value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/> | ||
46 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
47 | + </module> | ||
48 | + <module name="OneStatementPerLine"/> | ||
49 | + <module name="MultipleVariableDeclarations"/> | ||
50 | + <module name="ArrayTypeStyle"/> | ||
51 | + <module name="UpperEll"/> | ||
52 | + <module name="ModifierOrder"/> | ||
53 | + <module name="EmptyLineSeparator"> | ||
54 | + <property name="severity" value="ignore"/> | ||
55 | + <property name="allowNoEmptyLineBetweenFields" value="true"/> | ||
56 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
57 | + </module> | ||
58 | + <module name="SeparatorWrap"> | ||
59 | + <property name="severity" value="ignore"/> | ||
60 | + <property name="option" value="nl"/> | ||
61 | + <property name="tokens" value="DOT"/> | ||
62 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
63 | + </module> | ||
64 | + <module name="SeparatorWrap"> | ||
65 | + <property name="severity" value="ignore"/> | ||
66 | + <property name="option" value="EOL"/> | ||
67 | + <property name="tokens" value="COMMA"/> | ||
68 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
69 | + </module> | ||
70 | + <module name="NoFinalizer"/> | ||
71 | + <module name="GenericWhitespace"> | ||
72 | + <property name="severity" value="ignore"/> | ||
73 | + <message key="ws.followed" value="GenericWhitespace ''{0}'' is followed by whitespace."/> | ||
74 | + <message key="ws.illegalFollow" value="GenericWhitespace ''{0}'' should followed by whitespace."/> | ||
75 | + <message key="ws.preceded" value="GenericWhitespace ''{0}'' is preceded with whitespace."/> | ||
76 | + <message key="ws.notPreceded" value="GenericWhitespace ''{0}'' is not preceded with whitespace."/> | ||
77 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
78 | + </module> | ||
79 | + <module name="Indentation"> | ||
80 | + <property name="severity" value="ignore"/> | ||
81 | + <property name="basicOffset" value="2"/> | ||
82 | + <property name="caseIndent" value="2"/> | ||
83 | + <property name="arrayInitIndent" value="2"/> | ||
84 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
85 | + </module> | ||
86 | + <module name="MethodParamPad"> | ||
87 | + <property name="severity" value="ignore"/> | ||
88 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
89 | + </module> | ||
90 | + <module name="OperatorWrap"> | ||
91 | + <property name="severity" value="ignore"/> | ||
92 | + <property name="option" value="NL"/> | ||
93 | + <property name="tokens" value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR "/> | ||
94 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
95 | + </module> | ||
96 | + </module> | ||
97 | + <module name="FileTabCharacter"> | ||
98 | + <property name="severity" value="ignore"/> | ||
99 | + <property name="eachLine" value="true"/> | ||
100 | + <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/> | ||
101 | + </module> | ||
102 | + <module name="SuppressWithNearbyCommentFilter"> | ||
103 | + <property name="commentFormat" value="CS IGNORE (\w+) FOR NEXT (\d+) LINES\. REASON\: \w+"/> | ||
104 | + <property name="checkFormat" value="$1"/> | ||
105 | + <property name="influenceFormat" value="$2"/> | ||
106 | + </module> | ||
107 | + <module name="SuppressionFilter"> | ||
108 | + <property name="file" value="${samedir}/checkstyle_suppressions.xml"/> | ||
109 | + </module> | ||
110 | +</module> |
buck-tools/checkstyle_suppressions.xml
0 → 100644
buck-tools/default.defs
0 → 100644
buck-tools/download_all.py
0 → 100755
1 | +#!/usr/bin/env python | ||
2 | +# Copyright (C) 2013 The Android Open Source Project | ||
3 | +# | ||
4 | +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | +# you may not use this file except in compliance with the License. | ||
6 | +# You may obtain a copy of the License at | ||
7 | +# | ||
8 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | +# | ||
10 | +# Unless required by applicable law or agreed to in writing, software | ||
11 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | +# See the License for the specific language governing permissions and | ||
14 | +# limitations under the License. | ||
15 | + | ||
16 | +from optparse import OptionParser | ||
17 | +import re | ||
18 | +from subprocess import check_call, CalledProcessError, Popen, PIPE | ||
19 | + | ||
20 | +MAIN = ['//buck-tools/eclipse:classpath'] | ||
21 | +PAT = re.compile(r'"(//.*?)" -> "//buck-tools:download_file"') | ||
22 | +# TODO(davido): Remove this hack when Buck bugs are fixed: | ||
23 | +# https://github.com/facebook/buck/issues/656 | ||
24 | +# https://github.com/facebook/buck/issues/658 | ||
25 | +JGIT = re.compile(r'//org.eclipse.jgit.*') | ||
26 | +CELL = '//lib/jgit' | ||
27 | + | ||
28 | +opts = OptionParser() | ||
29 | +opts.add_option('--src', action='store_true') | ||
30 | +args, _ = opts.parse_args() | ||
31 | + | ||
32 | +targets = set() | ||
33 | + | ||
34 | +p = Popen(['buck', 'audit', 'classpath', '--dot'] + MAIN, stdout = PIPE) | ||
35 | +for line in p.stdout: | ||
36 | + m = PAT.search(line) | ||
37 | + if m: | ||
38 | + n = m.group(1) | ||
39 | + if JGIT.match(n): | ||
40 | + n = CELL + n[1:] | ||
41 | + if args.src and n.endswith('__download_bin'): | ||
42 | + n = n[:-13] + 'src' | ||
43 | + targets.add(n) | ||
44 | +r = p.wait() | ||
45 | +if r != 0: | ||
46 | + exit(r) | ||
47 | + | ||
48 | +try: | ||
49 | + check_call(['buck', 'build'] + sorted(targets)) | ||
50 | +except CalledProcessError as err: | ||
51 | + exit(1) |
buck-tools/download_file.py
0 → 100755
1 | +#!/usr/bin/env python | ||
2 | +# Copyright (C) 2013 The Android Open Source Project | ||
3 | +# | ||
4 | +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | +# you may not use this file except in compliance with the License. | ||
6 | +# You may obtain a copy of the License at | ||
7 | +# | ||
8 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | +# | ||
10 | +# Unless required by applicable law or agreed to in writing, software | ||
11 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | +# See the License for the specific language governing permissions and | ||
14 | +# limitations under the License. | ||
15 | + | ||
16 | +from __future__ import print_function | ||
17 | + | ||
18 | +from hashlib import sha1 | ||
19 | +from optparse import OptionParser | ||
20 | +from os import link, makedirs, path, remove | ||
21 | +import shutil | ||
22 | +from subprocess import check_call, CalledProcessError | ||
23 | +from sys import stderr | ||
24 | +from util import hash_file, resolve_url | ||
25 | +from zipfile import ZipFile, BadZipfile, LargeZipFile | ||
26 | + | ||
27 | +GERRIT_HOME = path.expanduser('~/.gerritcodereview') | ||
28 | +CACHE_DIR = path.join(GERRIT_HOME, 'buck-cache', 'downloaded-artifacts') | ||
29 | +# LEGACY_CACHE_DIR is only used to allow existing workspaces to move already | ||
30 | +# downloaded files to the new cache directory. | ||
31 | +# Please remove after 3 months (2015-10-07). | ||
32 | +LEGACY_CACHE_DIR = path.join(GERRIT_HOME, 'buck-cache') | ||
33 | +LOCAL_PROPERTIES = 'local.properties' | ||
34 | + | ||
35 | + | ||
36 | +def safe_mkdirs(d): | ||
37 | + if path.isdir(d): | ||
38 | + return | ||
39 | + try: | ||
40 | + makedirs(d) | ||
41 | + except OSError as err: | ||
42 | + if not path.isdir(d): | ||
43 | + raise err | ||
44 | + | ||
45 | + | ||
46 | +def download_properties(root_dir): | ||
47 | + """ Get the download properties. | ||
48 | + | ||
49 | + First tries to find the properties file in the given root directory, | ||
50 | + and if not found there, tries in the Gerrit settings folder in the | ||
51 | + user's home directory. | ||
52 | + | ||
53 | + Returns a set of download properties, which may be empty. | ||
54 | + | ||
55 | + """ | ||
56 | + p = {} | ||
57 | + local_prop = path.join(root_dir, LOCAL_PROPERTIES) | ||
58 | + if not path.isfile(local_prop): | ||
59 | + local_prop = path.join(GERRIT_HOME, LOCAL_PROPERTIES) | ||
60 | + if path.isfile(local_prop): | ||
61 | + try: | ||
62 | + with open(local_prop) as fd: | ||
63 | + for line in fd: | ||
64 | + if line.startswith('download.'): | ||
65 | + d = [e.strip() for e in line.split('=', 1)] | ||
66 | + name, url = d[0], d[1] | ||
67 | + p[name[len('download.'):]] = url | ||
68 | + except OSError: | ||
69 | + pass | ||
70 | + return p | ||
71 | + | ||
72 | + | ||
73 | +def cache_entry(args): | ||
74 | + if args.v: | ||
75 | + h = args.v | ||
76 | + else: | ||
77 | + h = sha1(args.u.encode('utf-8')).hexdigest() | ||
78 | + name = '%s-%s' % (path.basename(args.o), h) | ||
79 | + return path.join(CACHE_DIR, name) | ||
80 | + | ||
81 | +# Please remove after 3 months (2015-10-07). See LEGACY_CACHE_DIR above. | ||
82 | +def legacy_cache_entry(args): | ||
83 | + if args.v: | ||
84 | + h = args.v | ||
85 | + else: | ||
86 | + h = sha1(args.u.encode('utf-8')).hexdigest() | ||
87 | + name = '%s-%s' % (path.basename(args.o), h) | ||
88 | + return path.join(LEGACY_CACHE_DIR, name) | ||
89 | + | ||
90 | + | ||
91 | +opts = OptionParser() | ||
92 | +opts.add_option('-o', help='local output file') | ||
93 | +opts.add_option('-u', help='URL to download') | ||
94 | +opts.add_option('-v', help='expected content SHA-1') | ||
95 | +opts.add_option('-x', action='append', help='file to delete from ZIP') | ||
96 | +opts.add_option('--exclude_java_sources', action='store_true') | ||
97 | +opts.add_option('--unsign', action='store_true') | ||
98 | +args, _ = opts.parse_args() | ||
99 | + | ||
100 | +root_dir = args.o | ||
101 | +while root_dir: | ||
102 | + root_dir, n = path.split(root_dir) | ||
103 | + if n == 'buck-out': | ||
104 | + break | ||
105 | + | ||
106 | +redirects = download_properties(root_dir) | ||
107 | +cache_ent = cache_entry(args) | ||
108 | +legacy_cache_ent = legacy_cache_entry(args) | ||
109 | +src_url = resolve_url(args.u, redirects) | ||
110 | + | ||
111 | +# Please remove after 3 months (2015-10-07). See LEGACY_CACHE_DIR above. | ||
112 | +if not path.exists(cache_ent) and path.exists(legacy_cache_ent): | ||
113 | + try: | ||
114 | + safe_mkdirs(path.dirname(cache_ent)) | ||
115 | + except OSError as err: | ||
116 | + print('error creating directory %s: %s' % | ||
117 | + (path.dirname(cache_ent), err), file=stderr) | ||
118 | + exit(1) | ||
119 | + shutil.move(legacy_cache_ent, cache_ent) | ||
120 | + | ||
121 | +if not path.exists(cache_ent): | ||
122 | + try: | ||
123 | + safe_mkdirs(path.dirname(cache_ent)) | ||
124 | + except OSError as err: | ||
125 | + print('error creating directory %s: %s' % | ||
126 | + (path.dirname(cache_ent), err), file=stderr) | ||
127 | + exit(1) | ||
128 | + | ||
129 | + print('Download %s' % src_url, file=stderr) | ||
130 | + try: | ||
131 | + check_call(['curl', '--proxy-anyauth', '-ksfo', cache_ent, src_url]) | ||
132 | + except OSError as err: | ||
133 | + print('could not invoke curl: %s\nis curl installed?' % err, file=stderr) | ||
134 | + exit(1) | ||
135 | + except CalledProcessError as err: | ||
136 | + print('error using curl: %s' % err, file=stderr) | ||
137 | + exit(1) | ||
138 | + | ||
139 | +if args.v: | ||
140 | + have = hash_file(sha1(), cache_ent).hexdigest() | ||
141 | + if args.v != have: | ||
142 | + print(( | ||
143 | + '%s:\n' + | ||
144 | + 'expected %s\n' + | ||
145 | + 'received %s\n') % (src_url, args.v, have), file=stderr) | ||
146 | + try: | ||
147 | + remove(cache_ent) | ||
148 | + except OSError as err: | ||
149 | + if path.exists(cache_ent): | ||
150 | + print('error removing %s: %s' % (cache_ent, err), file=stderr) | ||
151 | + exit(1) | ||
152 | + | ||
153 | +exclude = [] | ||
154 | +if args.x: | ||
155 | + exclude += args.x | ||
156 | +if args.exclude_java_sources: | ||
157 | + try: | ||
158 | + with ZipFile(cache_ent, 'r') as zf: | ||
159 | + for n in zf.namelist(): | ||
160 | + if n.endswith('.java'): | ||
161 | + exclude.append(n) | ||
162 | + except (BadZipfile, LargeZipFile) as err: | ||
163 | + print('error opening %s: %s' % (cache_ent, err), file=stderr) | ||
164 | + exit(1) | ||
165 | + | ||
166 | +if args.unsign: | ||
167 | + try: | ||
168 | + with ZipFile(cache_ent, 'r') as zf: | ||
169 | + for n in zf.namelist(): | ||
170 | + if (n.endswith('.RSA') | ||
171 | + or n.endswith('.SF') | ||
172 | + or n.endswith('.LIST')): | ||
173 | + exclude.append(n) | ||
174 | + except (BadZipfile, LargeZipFile) as err: | ||
175 | + print('error opening %s: %s' % (cache_ent, err), file=stderr) | ||
176 | + exit(1) | ||
177 | + | ||
178 | +safe_mkdirs(path.dirname(args.o)) | ||
179 | +if exclude: | ||
180 | + try: | ||
181 | + shutil.copyfile(cache_ent, args.o) | ||
182 | + except (shutil.Error, IOError) as err: | ||
183 | + print('error copying to %s: %s' % (args.o, err), file=stderr) | ||
184 | + exit(1) | ||
185 | + try: | ||
186 | + check_call(['zip', '-d', args.o] + exclude) | ||
187 | + except CalledProcessError as err: | ||
188 | + print('error removing files from zip: %s' % err, file=stderr) | ||
189 | + exit(1) | ||
190 | +else: | ||
191 | + try: | ||
192 | + link(cache_ent, args.o) | ||
193 | + except OSError as err: | ||
194 | + try: | ||
195 | + shutil.copyfile(cache_ent, args.o) | ||
196 | + except (shutil.Error, IOError) as err: | ||
197 | + print('error copying to %s: %s' % (args.o, err), file=stderr) | ||
198 | + exit(1) |
buck-tools/java_doc.defs
0 → 100644
1 | +def java_doc( | ||
2 | + name, | ||
3 | + title, | ||
4 | + pkgs, | ||
5 | + paths, | ||
6 | + srcs = [], | ||
7 | + deps = [], | ||
8 | + visibility = [], | ||
9 | + do_it_wrong = False, | ||
10 | + ): | ||
11 | + if do_it_wrong: | ||
12 | + sourcepath = paths | ||
13 | + else: | ||
14 | + sourcepath = ['$SRCDIR/' + n for n in paths] | ||
15 | + genrule( | ||
16 | + name = name, | ||
17 | + cmd = ' '.join([ | ||
18 | + 'while ! test -f .buckconfig; do cd ..; done;', | ||
19 | + 'javadoc', | ||
20 | + '-quiet', | ||
21 | + '-protected', | ||
22 | + '-encoding UTF-8', | ||
23 | + '-charset UTF-8', | ||
24 | + '-notimestamp', | ||
25 | + '-windowtitle "' + title + '"', | ||
26 | + '-link http://docs.oracle.com/javase/7/docs/api', | ||
27 | + '-subpackages ', | ||
28 | + ':'.join(pkgs), | ||
29 | + '-sourcepath ', | ||
30 | + ':'.join(sourcepath), | ||
31 | + ' -classpath ', | ||
32 | + ':'.join(['$(classpath %s)' % n for n in deps]), | ||
33 | + '-d $TMP', | ||
34 | + ]) + ';jar cf $OUT -C $TMP .', | ||
35 | + srcs = srcs, | ||
36 | + out = name + '.jar', | ||
37 | + visibility = visibility, | ||
38 | +) |
buck-tools/java_sources.defs
0 → 100644
buck-tools/pack_war.py
0 → 100755
1 | +#!/usr/bin/env python | ||
2 | +# Copyright (C) 2013 The Android Open Source Project | ||
3 | +# | ||
4 | +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | +# you may not use this file except in compliance with the License. | ||
6 | +# You may obtain a copy of the License at | ||
7 | +# | ||
8 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | +# | ||
10 | +# Unless required by applicable law or agreed to in writing, software | ||
11 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | +# See the License for the specific language governing permissions and | ||
14 | +# limitations under the License. | ||
15 | + | ||
16 | +from __future__ import print_function | ||
17 | +from optparse import OptionParser | ||
18 | +from os import makedirs, path, symlink | ||
19 | +from subprocess import check_call | ||
20 | +import sys | ||
21 | + | ||
22 | +opts = OptionParser() | ||
23 | +opts.add_option('-o', help='path to write WAR to') | ||
24 | +opts.add_option('--lib', action='append', help='target for WEB-INF/lib') | ||
25 | +opts.add_option('--pgmlib', action='append', help='target for WEB-INF/pgm-lib') | ||
26 | +opts.add_option('--tmp', help='temporary directory') | ||
27 | +args, ctx = opts.parse_args() | ||
28 | + | ||
29 | +war = args.tmp | ||
30 | +jars = set() | ||
31 | +basenames = set() | ||
32 | + | ||
33 | +def prune(l): | ||
34 | + return [j for e in l for j in e.split(':')] | ||
35 | + | ||
36 | +def link_jars(libs, directory): | ||
37 | + makedirs(directory) | ||
38 | + for j in libs: | ||
39 | + if j not in jars: | ||
40 | + # When jgit is consumed from its own cell, | ||
41 | + # potential duplicates should be filtered. | ||
42 | + # e.g. jsch.jar will be reached through: | ||
43 | + # 1. /home/username/projects/gerrit/buck-out/gen/lib/jsch.jar | ||
44 | + # 2. /home/username/projects/jgit/buck-out/gen/lib/jsch.jar | ||
45 | + if (j.find('jgit/buck-out/gen/lib') > 0 | ||
46 | + and path.basename(j) in basenames): | ||
47 | + continue | ||
48 | + jars.add(j) | ||
49 | + n = path.basename(j) | ||
50 | + if j.find('buck-out/gen/gerrit-') > 0: | ||
51 | + n = j[j.find('buck-out'):].split('/')[2] + '-' + n | ||
52 | + basenames.add(n) | ||
53 | + symlink(j, path.join(directory, n)) | ||
54 | + | ||
55 | +if args.lib: | ||
56 | + link_jars(prune(args.lib), path.join(war, 'WEB-INF', 'lib')) | ||
57 | +if args.pgmlib: | ||
58 | + link_jars(prune(args.pgmlib), path.join(war, 'WEB-INF', 'pgm-lib')) | ||
59 | +try: | ||
60 | + for s in ctx: | ||
61 | + check_call(['unzip', '-q', '-d', war, s]) | ||
62 | + check_call(['zip', '-9qr', args.o, '.'], cwd=war) | ||
63 | +except KeyboardInterrupt: | ||
64 | + print('Interrupted by user', file=sys.stderr) | ||
65 | + exit(1) |
buck-tools/util.py
0 → 100644
1 | +# Copyright (C) 2013 The Android Open Source Project | ||
2 | +# | ||
3 | +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
4 | +# you may not use this file except in compliance with the License. | ||
5 | +# You may obtain a copy of the License at | ||
6 | +# | ||
7 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
8 | +# | ||
9 | +# Unless required by applicable law or agreed to in writing, software | ||
10 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
12 | +# See the License for the specific language governing permissions and | ||
13 | +# limitations under the License. | ||
14 | + | ||
15 | +import os | ||
16 | +from os import path | ||
17 | + | ||
18 | +REPO_ROOTS = { | ||
19 | + 'GERRIT': 'http://gerrit-maven.storage.googleapis.com', | ||
20 | + 'GERRIT_API': 'https://gerrit-api.commondatastorage.googleapis.com/release', | ||
21 | + 'MAVEN_CENTRAL': 'http://repo1.maven.org/maven2', | ||
22 | + 'MAVEN_LOCAL': 'file://' + path.expanduser('~/.m2/repository'), | ||
23 | +} | ||
24 | + | ||
25 | + | ||
26 | +def resolve_url(url, redirects): | ||
27 | + """ Resolve URL of a Maven artifact. | ||
28 | + | ||
29 | + prefix:path is passed as URL. prefix identifies known or custom | ||
30 | + repositories that can be rewritten in redirects set, passed as | ||
31 | + second arguments. | ||
32 | + | ||
33 | + A special case is supported, when prefix neither exists in | ||
34 | + REPO_ROOTS, no in redirects set: the url is returned as is. | ||
35 | + This enables plugins to pass custom maven_repository URL as is | ||
36 | + directly to maven_jar(). | ||
37 | + | ||
38 | + Returns a resolved path for Maven artifact. | ||
39 | + """ | ||
40 | + s = url.find(':') | ||
41 | + if s < 0: | ||
42 | + return url | ||
43 | + scheme, rest = url[:s], url[s+1:] | ||
44 | + if scheme in redirects: | ||
45 | + root = redirects[scheme] | ||
46 | + elif scheme in REPO_ROOTS: | ||
47 | + root = REPO_ROOTS[scheme] | ||
48 | + else: | ||
49 | + return url | ||
50 | + root = root.rstrip('/') | ||
51 | + rest = rest.lstrip('/') | ||
52 | + return '/'.join([root, rest]) | ||
53 | + | ||
54 | + | ||
55 | +def hash_file(hash_obj, path): | ||
56 | + """Hash the contents of a file. | ||
57 | + | ||
58 | + Args: | ||
59 | + hash_obj: an open hash object, e.g. hashlib.sha1(). | ||
60 | + path: path to the file to hash. | ||
61 | + | ||
62 | + Returns: | ||
63 | + The passed-in hash_obj. | ||
64 | + """ | ||
65 | + with open(path, 'rb') as f: | ||
66 | + while True: | ||
67 | + b = f.read(8192) | ||
68 | + if not b: | ||
69 | + break | ||
70 | + hash_obj.update(b) | ||
71 | + return hash_obj | ||
72 | + | ||
73 | + | ||
74 | +def hash_bower_component(hash_obj, path): | ||
75 | + """Hash the contents of a bower component directory. | ||
76 | + | ||
77 | + This is a stable hash of a directory downloaded with `bower install`, minus | ||
78 | + the .bower.json file, which is autogenerated each time by bower. Used in lieu | ||
79 | + of hashing a zipfile of the contents, since zipfiles are difficult to hash in | ||
80 | + a stable manner. | ||
81 | + | ||
82 | + Args: | ||
83 | + hash_obj: an open hash object, e.g. hashlib.sha1(). | ||
84 | + path: path to the directory to hash. | ||
85 | + | ||
86 | + Returns: | ||
87 | + The passed-in hash_obj. | ||
88 | + """ | ||
89 | + if not os.path.isdir(path): | ||
90 | + raise ValueError('Not a directory: %s' % path) | ||
91 | + | ||
92 | + path = os.path.abspath(path) | ||
93 | + for root, dirs, files in os.walk(path): | ||
94 | + dirs.sort() | ||
95 | + for f in sorted(files): | ||
96 | + if f == '.bower.json': | ||
97 | + continue | ||
98 | + p = os.path.join(root, f) | ||
99 | + hash_obj.update(p[len(path)+1:]) | ||
100 | + hash_file(hash_obj, p) | ||
101 | + | ||
102 | + return hash_obj |
bucklets/maven_jar.bucklet
0 → 100644
1 | +# Copyright (C) 2013 The Android Open Source Project | ||
2 | +# | ||
3 | +# Licensed under the Apache License, Version 2.0 (the "License"); | ||
4 | +# you may not use this file except in compliance with the License. | ||
5 | +# You may obtain a copy of the License at | ||
6 | +# | ||
7 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
8 | +# | ||
9 | +# Unless required by applicable law or agreed to in writing, software | ||
10 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
12 | +# See the License for the specific language governing permissions and | ||
13 | +# limitations under the License. | ||
14 | + | ||
15 | +GERRIT = 'GERRIT:' | ||
16 | +GERRIT_API = 'GERRIT_API:' | ||
17 | +MAVEN_CENTRAL = 'MAVEN_CENTRAL:' | ||
18 | +MAVEN_LOCAL = 'MAVEN_LOCAL:' | ||
19 | + | ||
20 | +def define_license(name): | ||
21 | + n = 'LICENSE-' + name | ||
22 | + genrule( | ||
23 | + name = n, | ||
24 | + cmd = 'ln -s $SRCS $OUT', | ||
25 | + srcs = [n], | ||
26 | + out = n, | ||
27 | + visibility = ['PUBLIC'], | ||
28 | + ) | ||
29 | + | ||
30 | +def maven_jar( | ||
31 | + name, | ||
32 | + id, | ||
33 | + license, | ||
34 | + exclude = [], | ||
35 | + exclude_java_sources = False, | ||
36 | + unsign = False, | ||
37 | + deps = [], | ||
38 | + exported_deps = [], | ||
39 | + sha1 = '', bin_sha1 = '', src_sha1 = '', | ||
40 | + repository = MAVEN_CENTRAL, | ||
41 | + attach_source = True, | ||
42 | + visibility = ['PUBLIC'], | ||
43 | + local_license = False, | ||
44 | + full_url = ''): | ||
45 | + from os import path | ||
46 | + | ||
47 | + parts = id.split(':') | ||
48 | + if len(parts) not in [3, 4]: | ||
49 | + raise NameError('%s:\nexpected id="groupId:artifactId:version[:classifier]"' | ||
50 | + % id) | ||
51 | + if len(parts) == 4: | ||
52 | + group, artifact, version, classifier = parts | ||
53 | + else: | ||
54 | + group, artifact, version = parts | ||
55 | + classifier = None | ||
56 | + | ||
57 | + # SNAPSHOT artifacts are handled differently on Google storage bucket: | ||
58 | + # 'SNAPSHOT' is discarded from the directory name. However on other | ||
59 | + # Maven repositories, most notable local repository located in | ||
60 | + # ~/.m2/repository (and is supported through MAVEN_LOCAL repository) | ||
61 | + # it must be preserved, otherwise the artifact wouldn't be found. | ||
62 | + # Atm the SNAPSHOT part is only discarded for Google storage bucket. | ||
63 | + if 'SNAPSHOT' in version and repository.startswith(GERRIT): | ||
64 | + file_version = version.replace('-SNAPSHOT', '') | ||
65 | + version = version.split('-SNAPSHOT')[0] + '-SNAPSHOT' | ||
66 | + else: | ||
67 | + file_version = version | ||
68 | + | ||
69 | + if classifier is not None: | ||
70 | + file_version += '-' + classifier | ||
71 | + | ||
72 | + jar = path.join(name, artifact.lower() + '-' + file_version) | ||
73 | + | ||
74 | + url = '/'.join([ | ||
75 | + repository, | ||
76 | + group.replace('.', '/'), artifact, version, | ||
77 | + artifact + '-' + file_version]) | ||
78 | + | ||
79 | + if full_url != '': | ||
80 | + url = full_url | ||
81 | + | ||
82 | + binjar = jar + '.jar' | ||
83 | + binurl = url + '.jar' | ||
84 | + | ||
85 | + srcjar = jar + '-src.jar' | ||
86 | + srcurl = url + '-sources.jar' | ||
87 | + | ||
88 | + cmd = ['$(exe //buck-tools:download_file)', '-o', '$OUT', '-u', binurl] | ||
89 | + if sha1: | ||
90 | + cmd.extend(['-v', sha1]) | ||
91 | + elif bin_sha1: | ||
92 | + cmd.extend(['-v', bin_sha1]) | ||
93 | + for x in exclude: | ||
94 | + cmd.extend(['-x', x]) | ||
95 | + if exclude_java_sources: | ||
96 | + cmd.append('--exclude_java_sources') | ||
97 | + if unsign: | ||
98 | + cmd.append('--unsign') | ||
99 | + | ||
100 | + genrule( | ||
101 | + name = '%s__download_bin' % name, | ||
102 | + cmd = ' '.join(cmd), | ||
103 | + out = binjar, | ||
104 | + ) | ||
105 | + license = ':LICENSE-' + license | ||
106 | + if not local_license: | ||
107 | + license = '//lib' + license | ||
108 | + license = [license] | ||
109 | + | ||
110 | + if src_sha1 or attach_source: | ||
111 | + cmd = ['$(exe //buck-tools:download_file)', '-o', '$OUT', '-u', srcurl] | ||
112 | + if src_sha1: | ||
113 | + cmd.extend(['-v', src_sha1]) | ||
114 | + genrule( | ||
115 | + name = '%s__download_src' % name, | ||
116 | + cmd = ' '.join(cmd), | ||
117 | + out = srcjar, | ||
118 | + ) | ||
119 | + prebuilt_jar( | ||
120 | + name = '%s_src' % name, | ||
121 | + binary_jar = ':%s__download_src' % name, | ||
122 | + deps = license, | ||
123 | + visibility = visibility, | ||
124 | + ) | ||
125 | + else: | ||
126 | + srcjar = None | ||
127 | + genrule( | ||
128 | + name = '%s_src' % name, | ||
129 | + cmd = ':>$OUT', | ||
130 | + out = '__%s__no_src' % name, | ||
131 | + ) | ||
132 | + | ||
133 | + if exported_deps: | ||
134 | + prebuilt_jar( | ||
135 | + name = '%s__jar' % name, | ||
136 | + deps = deps + license, | ||
137 | + binary_jar = ':%s__download_bin' % name, | ||
138 | + source_jar = ':%s__download_src' % name if srcjar else None, | ||
139 | + ) | ||
140 | + java_library( | ||
141 | + name = name, | ||
142 | + exported_deps = exported_deps + [':' + name + '__jar'], | ||
143 | + visibility = visibility, | ||
144 | + ) | ||
145 | + else: | ||
146 | + prebuilt_jar( | ||
147 | + name = name, | ||
148 | + deps = deps + license, | ||
149 | + binary_jar = ':%s__download_bin' % name, | ||
150 | + source_jar = ':%s__download_src' % name if srcjar else None, | ||
151 | + visibility = visibility, | ||
152 | + ) | ||
153 | + | ||
154 | + | ||
155 | +def merge_maven_jars( | ||
156 | + name, | ||
157 | + srcs, | ||
158 | + visibility = []): | ||
159 | + | ||
160 | + def cmd(jars): | ||
161 | + return ('$(location //buck-tools:merge_jars) $OUT ' | ||
162 | + + ' '.join(['$(location %s)' % j for j in jars])) | ||
163 | + | ||
164 | + genrule( | ||
165 | + name = '%s__merged_bin' % name, | ||
166 | + cmd = cmd(['%s__download_bin' % s for s in srcs]), | ||
167 | + out = '%s__merged.jar' % name, | ||
168 | + ) | ||
169 | + genrule( | ||
170 | + name = '%s__merged_src' % name, | ||
171 | + cmd = cmd(['%s__download_src' % s for s in srcs]), | ||
172 | + # buck-tools/eclipse/project.py requires -src.jar suffix. | ||
173 | + out = '%s__merged-src.jar' % name, | ||
174 | + ) | ||
175 | + prebuilt_jar( | ||
176 | + name = name, | ||
177 | + binary_jar = ':%s__merged_bin' % name, | ||
178 | + source_jar = ':%s__merged_src' % name, | ||
179 | + visibility = visibility, | ||
180 | + ) |
cli/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-cli' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:org.apache.karaf.shell.console', | ||
9 | + '//incubator/api:onos-incubator-api', | ||
10 | + '//utils/rest:onlab-rest', | ||
11 | + '//core/common:onos-core-common', | ||
12 | +] | ||
13 | + | ||
14 | +java_library( | ||
15 | + name = CURRENT_NAME, | ||
16 | + srcs = glob([SRC + '/*.java']), | ||
17 | + deps = COMPILE_DEPS, | ||
18 | + visibility = ['PUBLIC'], | ||
19 | + resources_root = 'src/main/resources', | ||
20 | + resources = glob(['src/main/resources/**']), | ||
21 | +) | ||
22 | + |
core/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:COMPILE', | ||
8 | + '//utils/misc:onlab-misc', | ||
9 | + '//utils/osgi:onlab-osgi', | ||
10 | + '//utils/rest:onlab-rest', | ||
11 | +] | ||
12 | + | ||
13 | +TEST_DEPS = [ | ||
14 | + '//lib:TEST', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + resources_root = 'src/test/resources', | ||
22 | + resources = glob(['src/test/resources/**']), | ||
23 | + visibility = ['PUBLIC'], | ||
24 | +) | ||
25 | + | ||
26 | +java_test( | ||
27 | + name = 'onos-api-tests', | ||
28 | + visibility = ['PUBLIC'], | ||
29 | + srcs = glob([TEST + '/*.java']), | ||
30 | + deps = COMPILE_DEPS + | ||
31 | + TEST_DEPS + | ||
32 | + [CURRENT_TARGET], | ||
33 | + source_under_test = [CURRENT_TARGET], | ||
34 | +) |
core/common/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-core-common' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +SRC_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//incubator/api:onos-incubator-api', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | + '//core/api:onos-api-tests', | ||
14 | +] | ||
15 | + | ||
16 | +java_library( | ||
17 | + name = CURRENT_NAME, | ||
18 | + srcs = glob([SRC + '/*.java']), | ||
19 | + deps = SRC_DEPS, | ||
20 | + visibility = ['PUBLIC'], | ||
21 | +) | ||
22 | + | ||
23 | +java_test( | ||
24 | + name = 'onos-core-common-tests', | ||
25 | + visibility = ['PUBLIC'], | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + resources_root = 'src/test/resources', | ||
28 | + resources = glob(['src/test/resources/**']), | ||
29 | + deps = SRC_DEPS + | ||
30 | + TEST_DEPS + | ||
31 | + [CURRENT_TARGET], | ||
32 | + source_under_test = [CURRENT_TARGET], | ||
33 | +) |
core/net/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-core-net' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//incubator/api:onos-incubator-api', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
... | @@ -25,9 +25,10 @@ import org.apache.felix.scr.annotations.Deactivate; | ... | @@ -25,9 +25,10 @@ import org.apache.felix.scr.annotations.Deactivate; |
25 | import org.apache.felix.scr.annotations.Reference; | 25 | import org.apache.felix.scr.annotations.Reference; |
26 | import org.apache.felix.scr.annotations.ReferenceCardinality; | 26 | import org.apache.felix.scr.annotations.ReferenceCardinality; |
27 | import org.apache.felix.scr.annotations.Service; | 27 | import org.apache.felix.scr.annotations.Service; |
28 | -import org.onosproject.utils.Comparators; | 28 | + |
29 | import org.onosproject.net.ConnectPoint; | 29 | import org.onosproject.net.ConnectPoint; |
30 | import org.onosproject.net.Device; | 30 | import org.onosproject.net.Device; |
31 | +import org.onosproject.net.ElementId; | ||
31 | import org.onosproject.net.Port; | 32 | import org.onosproject.net.Port; |
32 | import org.onosproject.net.PortNumber; | 33 | import org.onosproject.net.PortNumber; |
33 | import org.onosproject.net.device.DeviceService; | 34 | import org.onosproject.net.device.DeviceService; |
... | @@ -49,6 +50,7 @@ import org.onosproject.net.statistic.TypedFlowEntryWithLoad; | ... | @@ -49,6 +50,7 @@ import org.onosproject.net.statistic.TypedFlowEntryWithLoad; |
49 | import org.slf4j.Logger; | 50 | import org.slf4j.Logger; |
50 | 51 | ||
51 | import java.util.ArrayList; | 52 | import java.util.ArrayList; |
53 | +import java.util.Comparator; | ||
52 | import java.util.HashMap; | 54 | import java.util.HashMap; |
53 | import java.util.List; | 55 | import java.util.List; |
54 | import java.util.Map; | 56 | import java.util.Map; |
... | @@ -81,6 +83,33 @@ public class FlowStatisticManager implements FlowStatisticService { | ... | @@ -81,6 +83,33 @@ public class FlowStatisticManager implements FlowStatisticService { |
81 | 83 | ||
82 | private final InternalFlowRuleStatsListener frListener = new InternalFlowRuleStatsListener(); | 84 | private final InternalFlowRuleStatsListener frListener = new InternalFlowRuleStatsListener(); |
83 | 85 | ||
86 | + // FIXME: refactor these comparators to be shared with the CLI implmentations | ||
87 | + public static final Comparator<ElementId> ELEMENT_ID_COMPARATOR = new Comparator<ElementId>() { | ||
88 | + @Override | ||
89 | + public int compare(ElementId id1, ElementId id2) { | ||
90 | + return id1.toString().compareTo(id2.toString()); | ||
91 | + } | ||
92 | + }; | ||
93 | + | ||
94 | + public static final Comparator<ConnectPoint> CONNECT_POINT_COMPARATOR = new Comparator<ConnectPoint>() { | ||
95 | + @Override | ||
96 | + public int compare(ConnectPoint o1, ConnectPoint o2) { | ||
97 | + int compareId = ELEMENT_ID_COMPARATOR.compare(o1.elementId(), o2.elementId()); | ||
98 | + return (compareId != 0) ? | ||
99 | + compareId : | ||
100 | + Long.signum(o1.port().toLong() - o2.port().toLong()); | ||
101 | + } | ||
102 | + }; | ||
103 | + | ||
104 | + public static final Comparator<TypedFlowEntryWithLoad> TYPEFLOWENTRY_WITHLOAD_COMPARATOR = | ||
105 | + new Comparator<TypedFlowEntryWithLoad>() { | ||
106 | + @Override | ||
107 | + public int compare(TypedFlowEntryWithLoad fe1, TypedFlowEntryWithLoad fe2) { | ||
108 | + long delta = fe1.load().rate() - fe2.load().rate(); | ||
109 | + return delta == 0 ? 0 : (delta > 0 ? -1 : +1); | ||
110 | + } | ||
111 | + }; | ||
112 | + | ||
84 | @Activate | 113 | @Activate |
85 | public void activate() { | 114 | public void activate() { |
86 | flowRuleService.addListener(frListener); | 115 | flowRuleService.addListener(frListener); |
... | @@ -97,7 +126,7 @@ public class FlowStatisticManager implements FlowStatisticService { | ... | @@ -97,7 +126,7 @@ public class FlowStatisticManager implements FlowStatisticService { |
97 | public Map<ConnectPoint, SummaryFlowEntryWithLoad> loadSummary(Device device) { | 126 | public Map<ConnectPoint, SummaryFlowEntryWithLoad> loadSummary(Device device) { |
98 | checkPermission(STATISTIC_READ); | 127 | checkPermission(STATISTIC_READ); |
99 | 128 | ||
100 | - Map<ConnectPoint, SummaryFlowEntryWithLoad> summaryLoad = new TreeMap<>(Comparators.CONNECT_POINT_COMPARATOR); | 129 | + Map<ConnectPoint, SummaryFlowEntryWithLoad> summaryLoad = new TreeMap<>(CONNECT_POINT_COMPARATOR); |
101 | 130 | ||
102 | if (device == null) { | 131 | if (device == null) { |
103 | return summaryLoad; | 132 | return summaryLoad; |
... | @@ -128,7 +157,7 @@ public class FlowStatisticManager implements FlowStatisticService { | ... | @@ -128,7 +157,7 @@ public class FlowStatisticManager implements FlowStatisticService { |
128 | Instruction.Type instType) { | 157 | Instruction.Type instType) { |
129 | checkPermission(STATISTIC_READ); | 158 | checkPermission(STATISTIC_READ); |
130 | 159 | ||
131 | - Map<ConnectPoint, List<TypedFlowEntryWithLoad>> allLoad = new TreeMap<>(Comparators.CONNECT_POINT_COMPARATOR); | 160 | + Map<ConnectPoint, List<TypedFlowEntryWithLoad>> allLoad = new TreeMap<>(CONNECT_POINT_COMPARATOR); |
132 | 161 | ||
133 | if (device == null) { | 162 | if (device == null) { |
134 | return allLoad; | 163 | return allLoad; |
... | @@ -162,7 +191,7 @@ public class FlowStatisticManager implements FlowStatisticService { | ... | @@ -162,7 +191,7 @@ public class FlowStatisticManager implements FlowStatisticService { |
162 | int topn) { | 191 | int topn) { |
163 | checkPermission(STATISTIC_READ); | 192 | checkPermission(STATISTIC_READ); |
164 | 193 | ||
165 | - Map<ConnectPoint, List<TypedFlowEntryWithLoad>> allLoad = new TreeMap<>(Comparators.CONNECT_POINT_COMPARATOR); | 194 | + Map<ConnectPoint, List<TypedFlowEntryWithLoad>> allLoad = new TreeMap<>(CONNECT_POINT_COMPARATOR); |
166 | 195 | ||
167 | if (device == null) { | 196 | if (device == null) { |
168 | return allLoad; | 197 | return allLoad; |
... | @@ -373,7 +402,7 @@ public class FlowStatisticManager implements FlowStatisticService { | ... | @@ -373,7 +402,7 @@ public class FlowStatisticManager implements FlowStatisticService { |
373 | 402 | ||
374 | // Sort with descending order of load | 403 | // Sort with descending order of load |
375 | List<TypedFlowEntryWithLoad> tfel = | 404 | List<TypedFlowEntryWithLoad> tfel = |
376 | - fel.stream().sorted(Comparators.TYPEFLOWENTRY_WITHLOAD_COMPARATOR). | 405 | + fel.stream().sorted(TYPEFLOWENTRY_WITHLOAD_COMPARATOR). |
377 | limit(topn).collect(Collectors.toList()); | 406 | limit(topn).collect(Collectors.toList()); |
378 | 407 | ||
379 | return tfel; | 408 | return tfel; | ... | ... |
core/security/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/security/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/security/**/' | ||
3 | +CURRENT_NAME = 'onos-security' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//core/store/serializers:onos-core-serializers', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
core/store/dist/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-core-dist' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//core/common:onos-core-common', | ||
9 | + '//utils/rest:onlab-rest', | ||
10 | + '//core/store/serializers:onos-core-serializers', | ||
11 | + '//lib:netty-transport', | ||
12 | + '//lib:netty-codec', | ||
13 | + '//lib:netty-buffer', | ||
14 | + '//lib:netty-handler', | ||
15 | + '//lib:netty-transport-native-epoll', | ||
16 | + '//lib:commons-math3', | ||
17 | +] | ||
18 | + | ||
19 | +TEST_DEPS = [ | ||
20 | + '//lib:TEST', | ||
21 | + '//core/api:onos-api-tests', | ||
22 | + '//core/common:onos-core-common-tests', | ||
23 | +] | ||
24 | + | ||
25 | +java_library( | ||
26 | + name = CURRENT_NAME, | ||
27 | + srcs = glob([SRC + '/*.java']), | ||
28 | + deps = COMPILE_DEPS, | ||
29 | + visibility = ['PUBLIC'], | ||
30 | +) | ||
31 | + | ||
32 | +java_test( | ||
33 | + name= 'tests', | ||
34 | + srcs = glob([TEST + '/*.java']), | ||
35 | + deps = COMPILE_DEPS + | ||
36 | + TEST_DEPS + | ||
37 | + [CURRENT_TARGET], | ||
38 | + source_under_test = [CURRENT_TARGET], | ||
39 | +) |
core/store/persistence/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-core-persistence' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:catalyst-serializer', | ||
9 | + '//lib:mapdb', | ||
10 | +] | ||
11 | + | ||
12 | +TEST_DEPS = [ | ||
13 | + '//lib:TEST', | ||
14 | +] | ||
15 | + | ||
16 | +java_library( | ||
17 | + name = CURRENT_NAME, | ||
18 | + srcs = glob([SRC + '/*.java']), | ||
19 | + deps = COMPILE_DEPS, | ||
20 | + visibility = ['PUBLIC'], | ||
21 | +) | ||
22 | + | ||
23 | +java_test( | ||
24 | + name = 'tests', | ||
25 | + srcs = glob([TEST + '/*.java']), | ||
26 | + deps = COMPILE_DEPS + | ||
27 | + TEST_DEPS + | ||
28 | + [CURRENT_TARGET], | ||
29 | + source_under_test = [CURRENT_TARGET], | ||
30 | +) |
core/store/primitives/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-core-primitives' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//core/common:onos-core-common', | ||
9 | + '//incubator/api:onos-incubator-api', | ||
10 | + '//core/store/serializers:onos-core-serializers', | ||
11 | + '//lib:copycat-client', | ||
12 | + '//lib:copycat-server', | ||
13 | + '//lib:copycat-protocol', | ||
14 | + '//lib:copycat-core', | ||
15 | + '//lib:typesafe-config', | ||
16 | + '//lib:copycat-api', | ||
17 | + '//lib:copycat-state-machine', | ||
18 | + '//lib:copycat-state-log', | ||
19 | + '//lib:catalyst-transport', | ||
20 | + '//lib:catalyst-buffer', | ||
21 | + '//lib:catalyst-common', | ||
22 | + '//lib:catalyst-local', | ||
23 | + '//lib:catalyst-serializer', | ||
24 | + '//lib:atomix', | ||
25 | + '//lib:atomix-resource', | ||
26 | + '//lib:atomix-variables', | ||
27 | + '//lib:atomix-resource-manager', | ||
28 | +] | ||
29 | + | ||
30 | +TEST_DEPS = [ | ||
31 | + '//lib:TEST', | ||
32 | + '//core/api:onos-api-tests', | ||
33 | +] | ||
34 | + | ||
35 | +java_library( | ||
36 | + name = CURRENT_NAME, | ||
37 | + srcs = glob([SRC + '/*.java']), | ||
38 | + deps = COMPILE_DEPS, | ||
39 | + visibility = ['PUBLIC'], | ||
40 | +) | ||
41 | + | ||
42 | +java_test( | ||
43 | + name = 'tests', | ||
44 | + srcs = glob([TEST + '/*.java']), | ||
45 | + deps = COMPILE_DEPS + | ||
46 | + TEST_DEPS + | ||
47 | + [CURRENT_TARGET], | ||
48 | + source_under_test = [CURRENT_TARGET], | ||
49 | +) |
core/store/serializers/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-core-serializers' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//incubator/api:onos-incubator-api', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
drivers/ciena/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-drivers-ciena' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//incubator/api:onos-incubator-api', | ||
9 | + '//utils/rest:onlab-rest', | ||
10 | + '//drivers/utilities:onos-drivers-utilities', | ||
11 | + '//protocols/rest/api:onos-restsb-api', | ||
12 | +] | ||
13 | + | ||
14 | +java_library( | ||
15 | + name = CURRENT_NAME, | ||
16 | + srcs = glob([SRC + '/*.java']), | ||
17 | + deps = COMPILE_DEPS, | ||
18 | + visibility = ['PUBLIC'], | ||
19 | + resources_root = 'src/main/resources', | ||
20 | + resources = glob(['src/main/resources/**']), | ||
21 | +) |
drivers/cisco/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-drivers-cisco' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//drivers/utilities:onos-drivers-utilities', | ||
9 | + '//protocols/netconf/api:onos-netconf-api', | ||
10 | +] | ||
11 | + | ||
12 | +java_library( | ||
13 | + name = CURRENT_NAME, | ||
14 | + srcs = glob([SRC + '/*.java']), | ||
15 | + deps = COMPILE_DEPS, | ||
16 | + visibility = ['PUBLIC'], | ||
17 | + resources_root = 'src/main/resources', | ||
18 | + resources = glob(['src/main/resources/**']), | ||
19 | +) |
drivers/default/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-drivers-default' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:openflowj', | ||
10 | + '//drivers/utilities:onos-drivers-utilities', | ||
11 | + '//protocols/openflow/api:onos-of-api', | ||
12 | + '//core/store/serializers:onos-core-serializers', | ||
13 | +] | ||
14 | + | ||
15 | +TEST_DEPS = [ | ||
16 | + '//lib:TEST', | ||
17 | +] | ||
18 | + | ||
19 | +java_library( | ||
20 | + name = CURRENT_NAME, | ||
21 | + srcs = glob([SRC + '/*.java']), | ||
22 | + deps = COMPILE_DEPS, | ||
23 | + visibility = ['PUBLIC'], | ||
24 | + resources_root = 'src/main/resources', | ||
25 | + resources = glob(['src/main/resources/**']), | ||
26 | +) | ||
27 | + | ||
28 | +java_test( | ||
29 | + name = 'tests', | ||
30 | + srcs = glob([TEST + '/*.java']), | ||
31 | + deps = COMPILE_DEPS + | ||
32 | + TEST_DEPS + | ||
33 | + [CURRENT_TARGET], | ||
34 | + source_under_test = [CURRENT_TARGET], | ||
35 | +) |
drivers/fujitsu/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-drivers-fujitsu' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//drivers/utilities:onos-drivers-utilities', | ||
9 | + '//protocols/netconf/api:onos-netconf-api', | ||
10 | +] | ||
11 | + | ||
12 | +java_library( | ||
13 | + name = CURRENT_NAME, | ||
14 | + srcs = glob([SRC + '/*.java']), | ||
15 | + deps = COMPILE_DEPS, | ||
16 | + visibility = ['PUBLIC'], | ||
17 | + resources_root = 'src/main/resources', | ||
18 | + resources = glob(['src/main/resources/**']), | ||
19 | +) |
drivers/lumentum/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-drivers-lumentum' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:org.apache.servicemix.bundles.snmp4j', | ||
9 | + '//drivers/utilities:onos-drivers-utilities', | ||
10 | +] | ||
11 | + | ||
12 | +java_library( | ||
13 | + name = CURRENT_NAME, | ||
14 | + srcs = glob([SRC + '/*.java']), | ||
15 | + deps = COMPILE_DEPS, | ||
16 | + visibility = ['PUBLIC'], | ||
17 | + resources_root = 'src/main/resources', | ||
18 | + resources = glob(['src/main/resources/**']), | ||
19 | +) |
drivers/netconf/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-drivers-netconf' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//drivers/utilities:onos-drivers-utilities', | ||
9 | + '//protocols/netconf/api:onos-netconf-api', | ||
10 | +] | ||
11 | + | ||
12 | +java_library( | ||
13 | + name = CURRENT_NAME, | ||
14 | + srcs = glob([SRC + '/*.java']), | ||
15 | + deps = COMPILE_DEPS, | ||
16 | + visibility = ['PUBLIC'], | ||
17 | + resources_root = 'src/main/resources', | ||
18 | + resources = glob(['src/main/resources/**']), | ||
19 | +) |
drivers/ovsdb/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-drivers-ovsdb' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//drivers/utilities:onos-drivers-utilities', | ||
9 | + '//protocols/ovsdb/api:onos-ovsdb-api', | ||
10 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
11 | +] | ||
12 | + | ||
13 | +java_library( | ||
14 | + name = CURRENT_NAME, | ||
15 | + srcs = glob([SRC + '/*.java']), | ||
16 | + deps = COMPILE_DEPS, | ||
17 | + visibility = ['PUBLIC'], | ||
18 | + resources_root = 'src/main/resources', | ||
19 | + resources = glob(['src/main/resources/**']), | ||
20 | +) |
drivers/utilities/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-drivers-utilities' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//core/net:onos-core-net', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | + resources_root = 'src/main/resources', | ||
21 | + resources = glob(['src/main/resources/**']), | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'onos-drivers-utilities-tests', | ||
26 | + visibility = ['PUBLIC'], | ||
27 | + resources_root = 'src/test/resources', | ||
28 | + resources = glob(['src/test/resources/**']), | ||
29 | + srcs = glob([TEST + '/*.java']), | ||
30 | + deps = COMPILE_DEPS + | ||
31 | + TEST_DEPS + | ||
32 | + [CURRENT_TARGET], | ||
33 | + source_under_test = [CURRENT_TARGET], | ||
34 | +) |
incubator/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/incubator/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/incubator/**/' | ||
3 | +CURRENT_NAME = 'onos-incubator-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | +] | ||
9 | + | ||
10 | +TEST_DEPS = [ | ||
11 | + '//lib:TEST', | ||
12 | +] | ||
13 | + | ||
14 | +java_library( | ||
15 | + name = CURRENT_NAME, | ||
16 | + srcs = glob([SRC + '/*.java']), | ||
17 | + deps = COMPILE_DEPS, | ||
18 | + visibility = ['PUBLIC'], | ||
19 | +) | ||
20 | + | ||
21 | +java_test( | ||
22 | + name = 'tests', | ||
23 | + srcs = glob([TEST + '/*.java']), | ||
24 | + deps = COMPILE_DEPS + | ||
25 | + TEST_DEPS + | ||
26 | + [CURRENT_TARGET], | ||
27 | + source_under_test = [CURRENT_TARGET], | ||
28 | +) |
incubator/net/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/incubator/net/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/incubator/net/**/' | ||
3 | +CURRENT_NAME = 'onos-incubator-net' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//incubator/api:onos-incubator-api', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
lib/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
lib/LICENSE-Apache2.0
0 → 100644
File mode changed
protocols/bgp/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-bgp-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//protocols/bgp/bgpio:onos-bgpio', | ||
9 | +] | ||
10 | + | ||
11 | +java_library( | ||
12 | + name = CURRENT_NAME, | ||
13 | + srcs = glob([SRC + '/*.java']), | ||
14 | + deps = COMPILE_DEPS, | ||
15 | + visibility = ['PUBLIC'], | ||
16 | +) |
protocols/bgp/bgpio/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-bgpio' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | +] | ||
9 | + | ||
10 | +TEST_DEPS = [ | ||
11 | + '//lib:TEST', | ||
12 | +] | ||
13 | + | ||
14 | +java_library( | ||
15 | + name = CURRENT_NAME, | ||
16 | + srcs = glob([SRC + '/*.java']), | ||
17 | + deps = COMPILE_DEPS, | ||
18 | + visibility = ['PUBLIC'], | ||
19 | +) | ||
20 | + | ||
21 | +java_test( | ||
22 | + name = 'tests', | ||
23 | + srcs = glob([TEST + '/*.java']), | ||
24 | + deps = COMPILE_DEPS + | ||
25 | + TEST_DEPS + | ||
26 | + [CURRENT_TARGET], | ||
27 | + source_under_test = [CURRENT_TARGET], | ||
28 | +) |
protocols/bgp/ctl/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-bgp-ctl' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:jersey-client', | ||
9 | + '//lib:httpclient-osgi', | ||
10 | + '//lib:httpcore-osgi', | ||
11 | + '//lib:javax.ws.rs-api', | ||
12 | + '//protocols/bgp/api:onos-bgp-api', | ||
13 | + '//protocols/bgp/bgpio:onos-bgpio', | ||
14 | +] | ||
15 | + | ||
16 | +TEST_DEPS = [ | ||
17 | + '//lib:TEST', | ||
18 | +] | ||
19 | + | ||
20 | +java_library( | ||
21 | + name = CURRENT_NAME, | ||
22 | + srcs = glob([SRC + '/*.java']), | ||
23 | + deps = COMPILE_DEPS, | ||
24 | + visibility = ['PUBLIC'], | ||
25 | +) | ||
26 | + | ||
27 | +java_test( | ||
28 | + name = 'tests', | ||
29 | + srcs = glob([TEST + '/*.java']), | ||
30 | + deps = COMPILE_DEPS + | ||
31 | + TEST_DEPS + | ||
32 | + [CURRENT_TARGET], | ||
33 | + source_under_test = [CURRENT_TARGET], | ||
34 | +) |
protocols/netconf/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-netconf-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | +] | ||
9 | + | ||
10 | +java_library( | ||
11 | + name = CURRENT_NAME, | ||
12 | + srcs = glob([SRC + '/*.java']), | ||
13 | + deps = COMPILE_DEPS, | ||
14 | + visibility = ['PUBLIC'], | ||
15 | +) |
protocols/netconf/ctl/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-netconf-ctl' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:ganymed-ssh2', | ||
9 | + '//protocols/netconf/api:onos-netconf-api' | ||
10 | +] | ||
11 | + | ||
12 | +TEST_DEPS = [ | ||
13 | + '//lib:TEST', | ||
14 | +] | ||
15 | + | ||
16 | +java_library( | ||
17 | + name = CURRENT_NAME, | ||
18 | + srcs = glob([SRC + '/*.java']), | ||
19 | + deps = COMPILE_DEPS, | ||
20 | + visibility = ['PUBLIC'], | ||
21 | +) | ||
22 | + | ||
23 | +java_test( | ||
24 | + name = 'tests', | ||
25 | + srcs = glob([TEST + '/*.java']), | ||
26 | + deps = COMPILE_DEPS + | ||
27 | + TEST_DEPS + | ||
28 | + [CURRENT_TARGET], | ||
29 | + source_under_test = [CURRENT_TARGET], | ||
30 | +) |
protocols/openflow/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-of-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:openflowj', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | + '//core/api:onos-api-tests', | ||
14 | +] | ||
15 | + | ||
16 | +java_library( | ||
17 | + name = CURRENT_NAME, | ||
18 | + srcs = glob([SRC + '/*.java']), | ||
19 | + deps = COMPILE_DEPS, | ||
20 | + visibility = ['PUBLIC'], | ||
21 | +) | ||
22 | + | ||
23 | +java_test( | ||
24 | + name = 'tests', | ||
25 | + srcs = glob([TEST + '/*.java']), | ||
26 | + deps = COMPILE_DEPS + | ||
27 | + TEST_DEPS + | ||
28 | + [CURRENT_TARGET], | ||
29 | + source_under_test = [CURRENT_TARGET], | ||
30 | +) |
protocols/openflow/ctl/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-of-ctl' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:openflowj', | ||
9 | + '//protocols/openflow/api:onos-of-api' | ||
10 | +] | ||
11 | + | ||
12 | +TEST_DEPS = [ | ||
13 | + '//lib:TEST', | ||
14 | + '//core/api:onos-api-tests', | ||
15 | +] | ||
16 | + | ||
17 | +java_library( | ||
18 | + name = CURRENT_NAME, | ||
19 | + srcs = glob([SRC + '/*.java']), | ||
20 | + deps = COMPILE_DEPS, | ||
21 | + visibility = ['PUBLIC'], | ||
22 | +) | ||
23 | + | ||
24 | +java_test( | ||
25 | + name = 'tests', | ||
26 | + srcs = glob([TEST + '/*.java']), | ||
27 | + deps = COMPILE_DEPS + | ||
28 | + TEST_DEPS + | ||
29 | + [CURRENT_TARGET], | ||
30 | + source_under_test = [CURRENT_TARGET], | ||
31 | +) |
... | @@ -144,7 +144,7 @@ public class OpenFlowControllerImplTest { | ... | @@ -144,7 +144,7 @@ public class OpenFlowControllerImplTest { |
144 | replay(mockConfigService); | 144 | replay(mockConfigService); |
145 | 145 | ||
146 | ComponentContext mockContext = EasyMock.createMock(ComponentContext.class); | 146 | ComponentContext mockContext = EasyMock.createMock(ComponentContext.class); |
147 | - Dictionary<String, String> properties = new Hashtable<>(); | 147 | + Dictionary<String, Object> properties = new Hashtable<>(); |
148 | properties.put("openflowPorts", | 148 | properties.put("openflowPorts", |
149 | Integer.toString(TestTools.findAvailablePort(0))); | 149 | Integer.toString(TestTools.findAvailablePort(0))); |
150 | expect(mockContext.getProperties()).andReturn(properties); | 150 | expect(mockContext.getProperties()).andReturn(properties); | ... | ... |
protocols/ospf/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-ospf-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | +] | ||
9 | + | ||
10 | +TEST_DEPS = [ | ||
11 | + '//lib:TEST', | ||
12 | +] | ||
13 | + | ||
14 | +java_library( | ||
15 | + name = CURRENT_NAME, | ||
16 | + srcs = glob([SRC + '/*.java']), | ||
17 | + deps = COMPILE_DEPS, | ||
18 | + visibility = ['PUBLIC'], | ||
19 | +) | ||
20 | + | ||
21 | +java_test( | ||
22 | + name = 'tests', | ||
23 | + srcs = glob([TEST + '/*.java']), | ||
24 | + deps = COMPILE_DEPS + | ||
25 | + TEST_DEPS + | ||
26 | + [CURRENT_TARGET], | ||
27 | + source_under_test = [CURRENT_TARGET], | ||
28 | +) |
protocols/ospf/ctl/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-ospf-ctl' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//protocols/ospf/api:onos-ospf-api', | ||
9 | + '//protocols/ospf/protocol:onos-ospf-protocol', | ||
10 | +] | ||
11 | + | ||
12 | +TEST_DEPS = [ | ||
13 | + '//lib:TEST', | ||
14 | +] | ||
15 | + | ||
16 | +java_library( | ||
17 | + name = CURRENT_NAME, | ||
18 | + srcs = glob([SRC + '/*.java']), | ||
19 | + deps = COMPILE_DEPS, | ||
20 | + visibility = ['PUBLIC'], | ||
21 | +) | ||
22 | + | ||
23 | +java_test( | ||
24 | + name = 'tests', | ||
25 | + srcs = glob([TEST + '/*.java']), | ||
26 | + deps = COMPILE_DEPS + | ||
27 | + TEST_DEPS + | ||
28 | + [CURRENT_TARGET], | ||
29 | + source_under_test = [CURRENT_TARGET], | ||
30 | +) |
protocols/ospf/protocol/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-ospf-protocol' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//protocols/ospf/api:onos-ospf-api', | ||
9 | +] | ||
10 | + | ||
11 | +TEST_DEPS = [ | ||
12 | + '//lib:TEST', | ||
13 | +] | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = CURRENT_NAME, | ||
17 | + srcs = glob([SRC + '/*.java']), | ||
18 | + deps = COMPILE_DEPS, | ||
19 | + visibility = ['PUBLIC'], | ||
20 | +) | ||
21 | + | ||
22 | +java_test( | ||
23 | + name = 'tests', | ||
24 | + srcs = glob([TEST + '/*.java']), | ||
25 | + deps = COMPILE_DEPS + | ||
26 | + TEST_DEPS + | ||
27 | + [CURRENT_TARGET], | ||
28 | + source_under_test = [CURRENT_TARGET], | ||
29 | +) |
protocols/ovsdb/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-ovsdb-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:netty-transport', | ||
9 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
10 | +] | ||
11 | + | ||
12 | +TEST_DEPS = [ | ||
13 | + '//lib:TEST', | ||
14 | +] | ||
15 | + | ||
16 | +java_library( | ||
17 | + name = CURRENT_NAME, | ||
18 | + srcs = glob([SRC + '/*.java']), | ||
19 | + deps = COMPILE_DEPS, | ||
20 | + visibility = ['PUBLIC'], | ||
21 | +) | ||
22 | + | ||
23 | +java_test( | ||
24 | + name = 'tests', | ||
25 | + srcs = glob([TEST + '/*.java']), | ||
26 | + deps = COMPILE_DEPS + | ||
27 | + TEST_DEPS + | ||
28 | + [CURRENT_TARGET], | ||
29 | + source_under_test = [CURRENT_TARGET], | ||
30 | +) |
protocols/ovsdb/ctl/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-ovsdb-ctl' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:netty-transport', | ||
9 | + '//lib:netty-buffer', | ||
10 | + '//lib:netty-codec', | ||
11 | + '//lib:netty-handler', | ||
12 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
13 | + '//protocols/ovsdb/api:onos-ovsdb-api', | ||
14 | +] | ||
15 | + | ||
16 | +TEST_DEPS = [ | ||
17 | + '//lib:TEST', | ||
18 | +] | ||
19 | + | ||
20 | +java_library( | ||
21 | + name = CURRENT_NAME, | ||
22 | + srcs = glob([SRC + '/*.java']), | ||
23 | + deps = COMPILE_DEPS, | ||
24 | + visibility = ['PUBLIC'], | ||
25 | +) | ||
26 | + | ||
27 | +java_test( | ||
28 | + name = 'tests', | ||
29 | + srcs = glob([TEST + '/*.java']), | ||
30 | + deps = COMPILE_DEPS + | ||
31 | + TEST_DEPS + | ||
32 | + [CURRENT_TARGET], | ||
33 | + source_under_test = [CURRENT_TARGET], | ||
34 | +) |
protocols/ovsdb/rfc/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-ovsdb-rfc' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:netty-buffer', | ||
9 | + '//lib:netty-codec', | ||
10 | +] | ||
11 | + | ||
12 | +java_library( | ||
13 | + name = CURRENT_NAME, | ||
14 | + srcs = glob([SRC + '/*.java']), | ||
15 | + deps = COMPILE_DEPS, | ||
16 | + visibility = ['PUBLIC'], | ||
17 | +) | ||
18 | + |
protocols/pcep/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-pcep-controller-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//protocols/pcep/pcepio:onos-pcep-pcepio', | ||
9 | +] | ||
10 | + | ||
11 | +java_library( | ||
12 | + name = CURRENT_NAME, | ||
13 | + srcs = glob([SRC + '/*.java']), | ||
14 | + deps = COMPILE_DEPS, | ||
15 | + visibility = ['PUBLIC'], | ||
16 | +) | ||
17 | + |
protocols/pcep/ctl/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-pcep-ctl' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//protocols/pcep/pcepio:onos-pcep-pcepio', | ||
9 | + '//protocols/pcep/api:onos-pcep-controller-api', | ||
10 | +] | ||
11 | + | ||
12 | +java_library( | ||
13 | + name = CURRENT_NAME, | ||
14 | + srcs = glob([SRC + '/*.java']), | ||
15 | + deps = COMPILE_DEPS, | ||
16 | + visibility = ['PUBLIC'], | ||
17 | +) | ||
18 | + |
protocols/pcep/pcepio/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-pcep-pcepio' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | +] | ||
9 | + | ||
10 | +TEST_DEPS = [ | ||
11 | + '//lib:TEST', | ||
12 | +] | ||
13 | + | ||
14 | +java_library( | ||
15 | + name = CURRENT_NAME, | ||
16 | + srcs = glob([SRC + '/*.java']), | ||
17 | + deps = COMPILE_DEPS, | ||
18 | + visibility = ['PUBLIC'], | ||
19 | +) | ||
20 | + | ||
21 | +java_test( | ||
22 | + name = 'tests', | ||
23 | + srcs = glob([TEST + '/*.java']), | ||
24 | + deps = COMPILE_DEPS + | ||
25 | + TEST_DEPS + | ||
26 | + [CURRENT_TARGET], | ||
27 | + source_under_test = [CURRENT_TARGET], | ||
28 | +) |
protocols/rest/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-restsb-api' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//incubator/api:onos-incubator-api', | ||
9 | + '//utils/rest:onlab-rest', | ||
10 | +] | ||
11 | + | ||
12 | +java_library( | ||
13 | + name = CURRENT_NAME, | ||
14 | + srcs = glob([SRC + '/*.java']), | ||
15 | + deps = COMPILE_DEPS, | ||
16 | + visibility = ['PUBLIC'], | ||
17 | +) |
protocols/rest/ctl/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/test/java/org/onosproject/**/' | ||
3 | +CURRENT_NAME = 'onos-restsb-ctl' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//lib:jersey-client', | ||
9 | + '//lib:jersey-common', | ||
10 | + '//lib:httpclient-osgi', | ||
11 | + '//lib:httpcore-osgi', | ||
12 | + '//lib:javax.ws.rs-api', | ||
13 | + '//lib:hk2-api', | ||
14 | + '//lib:jersey-guava', | ||
15 | + '//lib:aopalliance-repackaged', | ||
16 | + '//lib:javax.inject', | ||
17 | + '//protocols/rest/api:onos-restsb-api', | ||
18 | +] | ||
19 | + | ||
20 | +TEST_DEPS = [ | ||
21 | + '//lib:TEST', | ||
22 | +] | ||
23 | + | ||
24 | +java_library( | ||
25 | + name = CURRENT_NAME, | ||
26 | + srcs = glob([SRC + '/*.java']), | ||
27 | + deps = COMPILE_DEPS, | ||
28 | + visibility = ['PUBLIC'], | ||
29 | +) | ||
30 | + | ||
31 | +java_test( | ||
32 | + name = 'tests', | ||
33 | + srcs = glob([TEST + '/*.java']), | ||
34 | + deps = COMPILE_DEPS + | ||
35 | + TEST_DEPS + | ||
36 | + [CURRENT_TARGET], | ||
37 | + source_under_test = [CURRENT_TARGET], | ||
38 | +) |
providers/bgp/cfg/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-bgp-provider-cfg' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//protocols/bgp/api:onos-bgp-api', | ||
9 | +] | ||
10 | + | ||
11 | +java_library( | ||
12 | + name = CURRENT_NAME, | ||
13 | + srcs = glob([SRC + '/*.java']), | ||
14 | + deps = COMPILE_DEPS, | ||
15 | + visibility = ['PUBLIC'], | ||
16 | +) |
providers/bgp/flow/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/bgp/topology/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/host/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/lldp/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/lldpcommon/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/netcfghost/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/netcfglinks/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/netconf/device/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/null/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/openflow/device/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/openflow/flow/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/openflow/group/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/openflow/message/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/openflow/meter/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/openflow/packet/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/ovsdb/device/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/ovsdb/host/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/ovsdb/tunnel/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/pcep/topology/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/pcep/tunnel/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/rest/device/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/snmp/alarm/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
providers/snmp/device/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
utils/junit/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
utils/misc/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
utils/osgi/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
utils/rest/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
web/api/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
web/gui/BUCK
0 → 100644
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment