Committed by
Gerrit Code Review
Initial BUCK build
Change-Id: I64e8a979301989062f4545a4841b06c15a372049
Showing
129 changed files
with
5684 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
1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
2 | +<profiles version="11"> | ||
3 | +<profile kind="CodeFormatterProfile" name="Google Format" version="11"> | ||
4 | +<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> | ||
5 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/> | ||
6 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/> | ||
7 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/> | ||
8 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/> | ||
9 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/> | ||
10 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/> | ||
11 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="do not insert"/> | ||
12 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/> | ||
13 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="do not insert"/> | ||
14 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/> | ||
15 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/> | ||
16 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/> | ||
17 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/> | ||
18 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/> | ||
19 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/> | ||
20 | +<setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/> | ||
21 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/> | ||
22 | +<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="do not insert"/> | ||
23 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/> | ||
24 | +<setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/> | ||
25 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/> | ||
26 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/> | ||
27 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/> | ||
28 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="16"/> | ||
29 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/> | ||
30 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/> | ||
31 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/> | ||
32 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/> | ||
33 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/> | ||
34 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/> | ||
35 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/> | ||
36 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/> | ||
37 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/> | ||
38 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/> | ||
39 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="insert"/> | ||
40 | +<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/> | ||
41 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/> | ||
42 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/> | ||
43 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/> | ||
44 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/> | ||
45 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/> | ||
46 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/> | ||
47 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_package" value="0"/> | ||
48 | +<setting id="org.eclipse.jdt.core.compiler.source" value="1.7"/> | ||
49 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/> | ||
50 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/> | ||
51 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="insert"/> | ||
52 | +<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/> | ||
53 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/> | ||
54 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/> | ||
55 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/> | ||
56 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/> | ||
57 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="0"/> | ||
58 | +<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/> | ||
59 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/> | ||
60 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> | ||
61 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/> | ||
62 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/> | ||
63 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/> | ||
64 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/> | ||
65 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/> | ||
66 | +<setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="false"/> | ||
67 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/> | ||
68 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/> | ||
69 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/> | ||
70 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/> | ||
71 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/> | ||
72 | +<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/> | ||
73 | +<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/> | ||
74 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/> | ||
75 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/> | ||
76 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/> | ||
77 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/> | ||
78 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/> | ||
79 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/> | ||
80 | +<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/> | ||
81 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/> | ||
82 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/> | ||
83 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/> | ||
84 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="16"/> | ||
85 | +<setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/> | ||
86 | +<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/> | ||
87 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/> | ||
88 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/> | ||
89 | +<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/> | ||
90 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/> | ||
91 | +<setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/> | ||
92 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/> | ||
93 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/> | ||
94 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/> | ||
95 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/> | ||
96 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/> | ||
97 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="insert"/> | ||
98 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/> | ||
99 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/> | ||
100 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/> | ||
101 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/> | ||
102 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/> | ||
103 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/> | ||
104 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/> | ||
105 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/> | ||
106 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/> | ||
107 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/> | ||
108 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/> | ||
109 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/> | ||
110 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/> | ||
111 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/> | ||
112 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/> | ||
113 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/> | ||
114 | +<setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/> | ||
115 | +<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="true"/> | ||
116 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/> | ||
117 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/> | ||
118 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/> | ||
119 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/> | ||
120 | +<setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/> | ||
121 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/> | ||
122 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/> | ||
123 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/> | ||
124 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/> | ||
125 | +<setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/> | ||
126 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/> | ||
127 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/> | ||
128 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/> | ||
129 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/> | ||
130 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/> | ||
131 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/> | ||
132 | +<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="2"/> | ||
133 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/> | ||
134 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="do not insert"/> | ||
135 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/> | ||
136 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/> | ||
137 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="do not insert"/> | ||
138 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/> | ||
139 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/> | ||
140 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/> | ||
141 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/> | ||
142 | +<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/> | ||
143 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/> | ||
144 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/> | ||
145 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/> | ||
146 | +<setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/> | ||
147 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/> | ||
148 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/> | ||
149 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/> | ||
150 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/> | ||
151 | +<setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="3"/> | ||
152 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/> | ||
153 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/> | ||
154 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/> | ||
155 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/> | ||
156 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/> | ||
157 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/> | ||
158 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/> | ||
159 | +<setting id="org.eclipse.jdt.core.compiler.compliance" value="1.7"/> | ||
160 | +<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/> | ||
161 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/> | ||
162 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/> | ||
163 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/> | ||
164 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/> | ||
165 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/> | ||
166 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/> | ||
167 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/> | ||
168 | +<setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/> | ||
169 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/> | ||
170 | +<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="true"/> | ||
171 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/> | ||
172 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/> | ||
173 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/> | ||
174 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/> | ||
175 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/> | ||
176 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/> | ||
177 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/> | ||
178 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/> | ||
179 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/> | ||
180 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/> | ||
181 | +<setting id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode" value="enabled"/> | ||
182 | +<setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="false"/> | ||
183 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="do not insert"/> | ||
184 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/> | ||
185 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/> | ||
186 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/> | ||
187 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/> | ||
188 | +<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/> | ||
189 | +<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/> | ||
190 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="1"/> | ||
191 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/> | ||
192 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/> | ||
193 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/> | ||
194 | +<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/> | ||
195 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/> | ||
196 | +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/> | ||
197 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/> | ||
198 | +<setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/> | ||
199 | +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/> | ||
200 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="2"/> | ||
201 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/> | ||
202 | +<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/> | ||
203 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/> | ||
204 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/> | ||
205 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/> | ||
206 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/> | ||
207 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/> | ||
208 | +<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/> | ||
209 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/> | ||
210 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/> | ||
211 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/> | ||
212 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/> | ||
213 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/> | ||
214 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="0"/> | ||
215 | +<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/> | ||
216 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/> | ||
217 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/> | ||
218 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/> | ||
219 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="do not insert"/> | ||
220 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/> | ||
221 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> | ||
222 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/> | ||
223 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/> | ||
224 | +<setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/> | ||
225 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/> | ||
226 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/> | ||
227 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/> | ||
228 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/> | ||
229 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="do not insert"/> | ||
230 | +<setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.7"/> | ||
231 | +<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/> | ||
232 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member" value="insert"/> | ||
233 | +<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="true"/> | ||
234 | +<setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/> | ||
235 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/> | ||
236 | +<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="16"/> | ||
237 | +<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> | ||
238 | +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/> | ||
239 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/> | ||
240 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/> | ||
241 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/> | ||
242 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/> | ||
243 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/> | ||
244 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/> | ||
245 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/> | ||
246 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/> | ||
247 | +<setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/> | ||
248 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/> | ||
249 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/> | ||
250 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/> | ||
251 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/> | ||
252 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/> | ||
253 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/> | ||
254 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/> | ||
255 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/> | ||
256 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="insert"/> | ||
257 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/> | ||
258 | +<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/> | ||
259 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/> | ||
260 | +<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/> | ||
261 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/> | ||
262 | +<setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/> | ||
263 | +<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/> | ||
264 | +<setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/> | ||
265 | +<setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/> | ||
266 | +</profile> | ||
267 | +</profiles> |
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
1 | +def define_license(name): | ||
2 | + n = 'LICENSE-' + name | ||
3 | + genrule( | ||
4 | + name = n, | ||
5 | + cmd = 'ln -s $SRCS $OUT', | ||
6 | + srcs = [n], | ||
7 | + out = n, | ||
8 | + visibility = ['PUBLIC'], | ||
9 | + ) | ||
10 | + | ||
11 | +define_license(name = 'Apache2.0') | ||
12 | + | ||
13 | +include_defs('//bucklets/maven_jar.bucklet') | ||
14 | + | ||
15 | +java_library( | ||
16 | + name = 'COMPILE', | ||
17 | + visibility = ['PUBLIC'], | ||
18 | + exported_deps = [ | ||
19 | + ':joda-time', | ||
20 | + ':commons-configuration', | ||
21 | + ':commons-logging', | ||
22 | + ':commons-collections', | ||
23 | + ':commons-lang3', | ||
24 | + ':commons-io', | ||
25 | + ':commons-pool', | ||
26 | + ':objenesis', | ||
27 | + ':guava', | ||
28 | + ':netty', | ||
29 | + ':netty-common', | ||
30 | + ':commons-lang', | ||
31 | + ':minimal-json', | ||
32 | + ':kryo', | ||
33 | + ':reflectasm', | ||
34 | + ':asm', | ||
35 | + ':minlog', | ||
36 | + ':metrics-core', | ||
37 | + ':metrics-json', | ||
38 | + ':slf4j-api', | ||
39 | + ':osgi-core', | ||
40 | + ':org.osgi.compendium', | ||
41 | + ':org.apache.felix.scr.annotations', | ||
42 | + ':org.apache.felix.scr', | ||
43 | + ':jackson-annotations', | ||
44 | + ':jackson-core', | ||
45 | + ':jackson-databind', | ||
46 | + ':org.apache.karaf.features.core', | ||
47 | + ':org.apache.karaf.system.core', | ||
48 | + | ||
49 | +# Is this still needed? | ||
50 | + ':jsr305', | ||
51 | + ], | ||
52 | +) | ||
53 | + | ||
54 | +java_library( | ||
55 | + name = 'CORE_DEPS', | ||
56 | + visibility = ['PUBLIC'], | ||
57 | + exported_deps = [ | ||
58 | + ':COMPILE', | ||
59 | + '//core/api:onos-api', | ||
60 | + '//utils/misc:onlab-misc', | ||
61 | + '//utils/osgi:onlab-osgi', | ||
62 | + ], | ||
63 | +) | ||
64 | + | ||
65 | +java_library( | ||
66 | + name = 'TEST', | ||
67 | + visibility = ['PUBLIC'], | ||
68 | + exported_deps = [ | ||
69 | + ':junit', | ||
70 | + ':easymock', | ||
71 | + ':hamcrest-core', | ||
72 | + ':hamcrest-library', | ||
73 | + ':hamcrest-all', | ||
74 | + ':guava-testlib', | ||
75 | + '//utils/junit:onlab-junit', | ||
76 | + ], | ||
77 | +) | ||
78 | + | ||
79 | +maven_jar( | ||
80 | + name = 'minimal-json', | ||
81 | + id = 'com.eclipsesource.minimal-json:minimal-json:0.9.4', | ||
82 | + sha1 = 'd6e7dd22569de97c2697a4af301a623f35028972', | ||
83 | + license = 'Apache2.0', | ||
84 | +) | ||
85 | + | ||
86 | +maven_jar( | ||
87 | + name = 'kryo', | ||
88 | + id = 'com.esotericsoftware:kryo:3.0.0', | ||
89 | + sha1 = '86f0de889ece7c30115d27d1c56246fd509201a8', | ||
90 | + license = 'Apache2.0', | ||
91 | +) | ||
92 | + | ||
93 | +maven_jar( | ||
94 | + name = 'minlog', | ||
95 | + id = 'com.esotericsoftware:minlog:1.3.0', | ||
96 | + sha1 = 'ff07b5f1b01d2f92bb00a337f9a94873712f0827', | ||
97 | + license = 'Apache2.0', | ||
98 | +) | ||
99 | + | ||
100 | +maven_jar( | ||
101 | + name = 'reflectasm', | ||
102 | + id = 'com.esotericsoftware:reflectasm:1.11.0', | ||
103 | + sha1 = 'f747d8b017a26bac575f8da14e8c1df6aecd3154', | ||
104 | + license = 'Apache2.0', | ||
105 | +) | ||
106 | + | ||
107 | +maven_jar( | ||
108 | + name = 'jackson-annotations', | ||
109 | + id = 'com.fasterxml.jackson.core:jackson-annotations:2.7.0', | ||
110 | + sha1 = '19f42c154ffc689f40a77613bc32caeb17d744e3', | ||
111 | + license = 'Apache2.0', | ||
112 | +) | ||
113 | + | ||
114 | +maven_jar( | ||
115 | + name = 'org.apache.felix.scr', | ||
116 | + id = 'org.apache.felix:org.apache.felix.scr:1.8.2', | ||
117 | + sha1 = 'c3047d56ee57de0752821fd9c3894dda664f2e37', | ||
118 | + license = 'Apache2.0', | ||
119 | +) | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | +maven_jar( | ||
124 | + name = 'jackson-core', | ||
125 | + id = 'com.fasterxml.jackson.core:jackson-core:2.7.0', | ||
126 | + sha1 = '05f2bfd0866bcacbcc7c25ce25f80b5aeed0f72f', | ||
127 | + license = 'Apache2.0', | ||
128 | +) | ||
129 | + | ||
130 | +maven_jar( | ||
131 | + name = 'jackson-databind', | ||
132 | + id = 'com.fasterxml.jackson.core:jackson-databind:2.7.0', | ||
133 | + sha1 = '7d3430de9f2b600b074ba3bc007edcfbc4bbf4fb', | ||
134 | + license = 'Apache2.0', | ||
135 | +) | ||
136 | + | ||
137 | +maven_jar( | ||
138 | + name = 'jsr305', | ||
139 | + id = 'com.google.code.findbugs:jsr305:3.0.1', | ||
140 | + sha1 = 'f7be08ec23c21485b9b5a1cf1654c2ec8c58168d', | ||
141 | + license = 'Apache2.0', | ||
142 | +) | ||
143 | + | ||
144 | +maven_jar( | ||
145 | + name = 'error_prone_annotations', | ||
146 | + id = 'com.google.errorprone:error_prone_annotations:2.0.2', | ||
147 | + sha1 = '8382c6cdc18c8c8ad7840024fa340509cf16be11', | ||
148 | + license = 'Apache2.0', | ||
149 | +) | ||
150 | + | ||
151 | +maven_jar( | ||
152 | + name = 'guava', | ||
153 | + id = 'com.google.guava:guava:19.0', | ||
154 | + sha1 = '6ce200f6b23222af3d8abb6b6459e6c44f4bb0e9', | ||
155 | + license = 'Apache2.0', | ||
156 | +) | ||
157 | + | ||
158 | +maven_jar( | ||
159 | + name = 'guava-testlib', | ||
160 | + id = 'com.google.guava:guava-testlib:19.0', | ||
161 | + sha1 = 'ce5b880b206de3f76d364988a6308c68c726f74a', | ||
162 | + license = 'Apache2.0', | ||
163 | +) | ||
164 | + | ||
165 | +maven_jar( | ||
166 | + name = 'commons-collections', | ||
167 | + id = 'commons-collections:commons-collections:3.2.2', | ||
168 | + sha1 = '8ad72fe39fa8c91eaaf12aadb21e0c3661fe26d5', | ||
169 | + license = 'Apache2.0', | ||
170 | +) | ||
171 | + | ||
172 | +maven_jar( | ||
173 | + name = 'commons-configuration', | ||
174 | + id = 'commons-configuration:commons-configuration:1.10', | ||
175 | + sha1 = '2b36e4adfb66d966c5aef2d73deb6be716389dc9', | ||
176 | + license = 'Apache2.0', | ||
177 | +) | ||
178 | + | ||
179 | +maven_jar( | ||
180 | + name = 'commons-lang', | ||
181 | + id = 'commons-lang:commons-lang:2.6', | ||
182 | + sha1 = '0ce1edb914c94ebc388f086c6827e8bdeec71ac2', | ||
183 | + license = 'Apache2.0', | ||
184 | +) | ||
185 | + | ||
186 | +maven_jar( | ||
187 | + name = 'commons-logging', | ||
188 | + id = 'commons-logging:commons-logging:1.1.1', | ||
189 | + sha1 = '5043bfebc3db072ed80fbd362e7caf00e885d8ae', | ||
190 | + license = 'Apache2.0', | ||
191 | +) | ||
192 | + | ||
193 | +maven_jar( | ||
194 | + name = 'commons-pool', | ||
195 | + id = 'commons-pool:commons-pool:1.6', | ||
196 | + sha1 = '4572d589699f09d866a226a14b7f4323c6d8f040', | ||
197 | + license = 'Apache2.0', | ||
198 | +) | ||
199 | + | ||
200 | +maven_jar( | ||
201 | + name = 'commons-io', | ||
202 | + id = 'commons-io:commons-io:2.4', | ||
203 | + sha1 = 'b1b6ea3b7e4aa4f492509a4952029cd8e48019ad', | ||
204 | + license = 'Apache2.0', | ||
205 | +) | ||
206 | + | ||
207 | +maven_jar( | ||
208 | + name = 'metrics-core', | ||
209 | + id = 'io.dropwizard.metrics:metrics-core:3.1.0', | ||
210 | + sha1 = '40e16d596ca49964a88bbce2261e387895b3499e', | ||
211 | + license = 'Apache2.0', | ||
212 | +) | ||
213 | + | ||
214 | +maven_jar( | ||
215 | + name = 'metrics-json', | ||
216 | + id = 'io.dropwizard.metrics:metrics-json:3.1.0', | ||
217 | + sha1 = '47b1c72af77ca81771422269b807ef6198392741', | ||
218 | + license = 'Apache2.0', | ||
219 | +) | ||
220 | + | ||
221 | +maven_jar( | ||
222 | + name = 'netty', | ||
223 | + id = 'io.netty:netty:3.10.5.Final', | ||
224 | + sha1 = '9ca7d55d246092bddd29b867706e2f6c7db701a0', | ||
225 | + license = 'Apache2.0', | ||
226 | +) | ||
227 | + | ||
228 | +maven_jar( | ||
229 | + name = 'netty-buffer', | ||
230 | + id = 'io.netty:netty-buffer:4.0.33.Final', | ||
231 | + sha1 = 'dd14c35b020af7aa1c6fed7ec5e67a2aa165619e', | ||
232 | + license = 'Apache2.0', | ||
233 | +) | ||
234 | + | ||
235 | +maven_jar( | ||
236 | + name = 'netty-codec', | ||
237 | + id = 'io.netty:netty-codec:4.0.33.Final', | ||
238 | + sha1 = '56c31f1e373a9374f56173383fe8b6e089ea0351', | ||
239 | + license = 'Apache2.0', | ||
240 | +) | ||
241 | + | ||
242 | +maven_jar( | ||
243 | + name = 'netty-common', | ||
244 | + id = 'io.netty:netty-common:4.0.33.Final', | ||
245 | + sha1 = '1a1fde71cb95a6e18754b0fd7ac6749f15a86543', | ||
246 | + license = 'Apache2.0', | ||
247 | +) | ||
248 | + | ||
249 | +maven_jar( | ||
250 | + name = 'netty-handler', | ||
251 | + id = 'io.netty:netty-handler:4.0.33.Final', | ||
252 | + sha1 = '88325df280c3ba83011cf442883f9f55dc83d5bb', | ||
253 | + license = 'Apache2.0', | ||
254 | +) | ||
255 | + | ||
256 | +maven_jar( | ||
257 | + name = 'netty-transport', | ||
258 | + id = 'io.netty:netty-transport:4.0.33.Final', | ||
259 | + sha1 = '287c2378318efc12d6bfe00835cd66317fc53dcd', | ||
260 | + license = 'Apache2.0', | ||
261 | +) | ||
262 | + | ||
263 | +maven_jar( | ||
264 | + name = 'netty-transport-native-epoll', | ||
265 | + id = 'io.netty:netty-transport-native-epoll:4.0.33.Final', | ||
266 | + sha1 = 'f17c2b172e28e9447e0ecf1a87bc4ce3d45647f0', | ||
267 | + license = 'Apache2.0', | ||
268 | +) | ||
269 | + | ||
270 | +maven_jar( | ||
271 | + name = 'joda-time', | ||
272 | + id = 'joda-time:joda-time:2.9', | ||
273 | + sha1 = 'e8a58b7f5853b693b8c4795a714fe77c266c3acc', | ||
274 | + license = 'Apache2.0', | ||
275 | +) | ||
276 | + | ||
277 | +maven_jar( | ||
278 | + name = 'junit', | ||
279 | + id = 'junit:junit:4.12', | ||
280 | + sha1 = '2973d150c0dc1fefe998f834810d68f278ea58ec', | ||
281 | + license = 'Apache2.0', | ||
282 | +) | ||
283 | + | ||
284 | +maven_jar( | ||
285 | + name = 'commons-lang3', | ||
286 | + id = 'org.apache.commons:commons-lang3:3.4', | ||
287 | + sha1 = '5fe28b9518e58819180a43a850fbc0dd24b7c050', | ||
288 | + license = 'Apache2.0', | ||
289 | +) | ||
290 | + | ||
291 | +maven_jar( | ||
292 | + name = 'commons-math3', | ||
293 | + id = 'org.apache.commons:commons-math3:3.2', | ||
294 | + sha1 = 'ec2544ab27e110d2d431bdad7d538ed509b21e62', | ||
295 | + license = 'Apache2.0', | ||
296 | +) | ||
297 | + | ||
298 | +maven_jar( | ||
299 | + name = 'org.apache.felix.scr.annotations', | ||
300 | + id = 'org.apache.felix:org.apache.felix.scr.annotations:1.9.12', | ||
301 | + sha1 = '5fdc34da641dda8b9165c2be93211479a186da9c', | ||
302 | + license = 'Apache2.0', | ||
303 | +) | ||
304 | + | ||
305 | +maven_jar( | ||
306 | + name = 'org.apache.karaf.features.core', | ||
307 | + id = 'org.apache.karaf.features:org.apache.karaf.features.core:3.0.5', | ||
308 | + sha1 = '595b5ddfc4eccad090cb2a1eb14e2ba3cebcb5de', | ||
309 | + license = 'Apache2.0', | ||
310 | +) | ||
311 | + | ||
312 | +maven_jar( | ||
313 | + name = 'org.apache.karaf.system.core', | ||
314 | + id = 'org.apache.karaf.system:org.apache.karaf.system.core:3.0.5', | ||
315 | + sha1 = '9740da22ad1c07b2651d837277f0e910a2fc2300', | ||
316 | + license = 'Apache2.0', | ||
317 | +) | ||
318 | + | ||
319 | +maven_jar( | ||
320 | + name = 'easymock', | ||
321 | + id = 'org.easymock:easymock:3.4', | ||
322 | + sha1 = '9fdeea183a399f25c2469497612cad131e920fa3', | ||
323 | + license = 'Apache2.0', | ||
324 | +) | ||
325 | + | ||
326 | +maven_jar( | ||
327 | + name = 'hamcrest-core', | ||
328 | + id = 'org.hamcrest:hamcrest-core:1.3', | ||
329 | + sha1 = '42a25dc3219429f0e5d060061f71acb49bf010a0', | ||
330 | + license = 'Apache2.0', | ||
331 | +) | ||
332 | + | ||
333 | +maven_jar( | ||
334 | + name = 'hamcrest-library', | ||
335 | + id = 'org.hamcrest:hamcrest-library:1.3', | ||
336 | + sha1 = '4785a3c21320980282f9f33d0d1264a69040538f', | ||
337 | + license = 'Apache2.0', | ||
338 | +) | ||
339 | + | ||
340 | +maven_jar( | ||
341 | + name = 'hamcrest-all', | ||
342 | + id = 'org.hamcrest:hamcrest-all:1.3', | ||
343 | + sha1 = '63a21ebc981131004ad02e0434e799fd7f3a8d5a', | ||
344 | + license = 'Apache2.0', | ||
345 | +) | ||
346 | + | ||
347 | +maven_jar( | ||
348 | + name = 'mapdb', | ||
349 | + id = 'org.mapdb:mapdb:1.0.8', | ||
350 | + sha1 = '64485a221d9095fc7ab9b50cc34c6b4b58467e2e', | ||
351 | + license = 'Apache2.0', | ||
352 | +) | ||
353 | + | ||
354 | +maven_jar( | ||
355 | + name = 'objenesis', | ||
356 | + id = 'org.objenesis:objenesis:2.2', | ||
357 | + sha1 = '3fb533efdaa50a768c394aa4624144cf8df17845', | ||
358 | + license = 'Apache2.0', | ||
359 | +) | ||
360 | + | ||
361 | +maven_jar( | ||
362 | + name = 'org.osgi.compendium', | ||
363 | + id = 'org.osgi:org.osgi.compendium:4.3.1', | ||
364 | + sha1 = 'd1c9d7819de47d938a96ac2a3813bfd914684cf4', | ||
365 | + license = 'Apache2.0', | ||
366 | +) | ||
367 | + | ||
368 | +maven_jar( | ||
369 | + name = 'osgi-core', | ||
370 | + id = 'org.osgi:org.osgi.core:4.3.1', | ||
371 | + sha1 = '5458ffe2ba049e76c29f2df2dc3ffccddf8b839e', | ||
372 | + license = 'Apache2.0', | ||
373 | +) | ||
374 | + | ||
375 | +maven_jar( | ||
376 | + name = 'asm', | ||
377 | + id = 'org.ow2.asm:asm:4.2', | ||
378 | + sha1 = '4b2c12b92dd045aeabf5b2aeeb3220bf010da9d4', | ||
379 | + license = 'Apache2.0', | ||
380 | +) | ||
381 | + | ||
382 | +maven_jar( | ||
383 | + name = 'slf4j-api', | ||
384 | + id = 'org.slf4j:slf4j-api:1.7.13', | ||
385 | + sha1 = '7fcf30c25b8f4a9379b9dad0d3f487b25272c026', | ||
386 | + license = 'Apache2.0', | ||
387 | +) | ||
388 | + | ||
389 | +maven_jar( | ||
390 | + name = 'slf4j-jdk14', | ||
391 | + id = 'org.slf4j:slf4j-jdk14:1.7.13', | ||
392 | + sha1 = 'bcc4dd3bffd6bce845164140bdf18ce14e76b423', | ||
393 | + license = 'Apache2.0', | ||
394 | +) | ||
395 | + | ||
396 | +maven_jar( | ||
397 | + name = 'javax.ws.rs-api', | ||
398 | + id = 'javax.ws.rs:javax.ws.rs-api:2.0.1', | ||
399 | + sha1 = '104e9c2b5583cfcfeac0402316221648d6d8ea6b', | ||
400 | + license = 'Apache2.0', | ||
401 | +) | ||
402 | + | ||
403 | +maven_jar( | ||
404 | + name = 'jersey-client', | ||
405 | + id = 'org.glassfish.jersey.core:jersey-client:2.22.2', | ||
406 | + sha1 = '1712fff037ce5a59e3d67f90fff29222989799ee', | ||
407 | + license = 'Apache2.0', | ||
408 | +) | ||
409 | + | ||
410 | +maven_jar( | ||
411 | + name = 'jersey-common', | ||
412 | + id = 'org.glassfish.jersey.core:jersey-common:2.22.2', | ||
413 | + sha1 = '1209b89878b60ce7d49afadeff7522d2fde0e217', | ||
414 | + license = 'Apache2.0', | ||
415 | +) | ||
416 | + | ||
417 | +maven_jar( | ||
418 | + name = 'jersey-server', | ||
419 | + id = 'org.glassfish.jersey.core:jersey-server:2.22.2', | ||
420 | + sha1 = '5ede3e5f98f8b14d31d1d0fffe9908df2bd41c0f', | ||
421 | + license = 'Apache2.0', | ||
422 | +) | ||
423 | + | ||
424 | +maven_jar( | ||
425 | + name = 'jersey-test-framework-core', | ||
426 | + id = 'org.glassfish.jersey.test-framework:jersey-test-framework-core:2.22.2', | ||
427 | + sha1 = '0abc7ab1ac424392d8761798318f706de40fef4d', | ||
428 | + license = 'Apache2.0', | ||
429 | +) | ||
430 | + | ||
431 | +maven_jar( | ||
432 | + name = 'jersey-test-framework-grizzly2', | ||
433 | + id = 'org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:2.22.2', | ||
434 | + sha1 = '05aa3952528f09ce94360ab238446163d2544344', | ||
435 | + license = 'Apache2.0', | ||
436 | +) | ||
437 | + | ||
438 | +maven_jar( | ||
439 | + name = 'jersey-media-multipart', | ||
440 | + id = 'org.glassfish.jersey.media:jersey-media-multipart:2.22.2', | ||
441 | + sha1 = '304107e42563307acd337c20734148cca41cda91', | ||
442 | + license = 'Apache2.0', | ||
443 | +) | ||
444 | + | ||
445 | +maven_jar( | ||
446 | + name = 'hk2-api', | ||
447 | + id = 'org.glassfish.hk2:hk2-api:2.4.0-b34', | ||
448 | + sha1 = '1017432e219dbd1d4a1121b2d7e87c5b2f0bcfb9', | ||
449 | + license = 'Apache2.0', | ||
450 | +) | ||
451 | + | ||
452 | +maven_jar( | ||
453 | + name = 'aopalliance-repackaged', | ||
454 | + id = 'org.glassfish.hk2.external:aopalliance-repackaged:2.4.0-b34', | ||
455 | + sha1 = '3d5e856dbc91a3a2b0bcb3a3424f8b62421ae4cf', | ||
456 | + license = 'Apache2.0', | ||
457 | +) | ||
458 | + | ||
459 | +maven_jar( | ||
460 | + name = 'jersey-guava', | ||
461 | + id = 'org.glassfish.jersey.bundles.repackaged:jersey-guava:2.22.2', | ||
462 | + sha1 = '7422c693c89640c9685dfa99dbef2da745aa4617', | ||
463 | + license = 'Apache2.0', | ||
464 | +) | ||
465 | + | ||
466 | +maven_jar( | ||
467 | + name = 'javax.inject', | ||
468 | + id = 'org.glassfish.hk2.external:javax.inject:2.4.0-b34', | ||
469 | + sha1 = 'a6a3d4935af7b03e44126b5aac2c2a0ce98fe6e9', | ||
470 | + license = 'Apache2.0', | ||
471 | +) | ||
472 | + | ||
473 | + | ||
474 | +maven_jar( | ||
475 | + name = 'servlet-api', | ||
476 | + id = 'javax.servlet:servlet-api:2.5', | ||
477 | + sha1 = '5959582d97d8b61f4d154ca9e495aafd16726e34', | ||
478 | + license = 'Apache2.0', | ||
479 | +) | ||
480 | + | ||
481 | +maven_jar( | ||
482 | + name = 'atomix', | ||
483 | + id = 'io.atomix:atomix:1.0.0-rc3', | ||
484 | + sha1 = 'a572aa9cd069b2d43481901dc901429d0b43332f', | ||
485 | + license = 'Apache2.0', | ||
486 | +) | ||
487 | + | ||
488 | +maven_jar( | ||
489 | + name = 'atomix-collections', | ||
490 | + id = 'io.atomix:atomix-collections:1.0.0-rc3', | ||
491 | + sha1 = '161dbfd046cefabe7e6c972e70823c11f7abe65e', | ||
492 | + license = 'Apache2.0', | ||
493 | +) | ||
494 | + | ||
495 | +maven_jar( | ||
496 | + name = 'atomix-coordination', | ||
497 | + id = 'io.atomix:atomix-coordination:1.0.0-rc3', | ||
498 | + sha1 = '182a2618cbef13e6efe58b85aadfa1176b9d08f3', | ||
499 | + license = 'Apache2.0', | ||
500 | +) | ||
501 | + | ||
502 | +maven_jar( | ||
503 | + name = 'atomix-messaging', | ||
504 | + id = 'io.atomix:atomix-messaging:1.0.0-rc3', | ||
505 | + sha1 = '58b570d8e3e76a0d0c649b97f3ee0a6e3885958a', | ||
506 | + license = 'Apache2.0', | ||
507 | +) | ||
508 | + | ||
509 | +maven_jar( | ||
510 | + name = 'atomix-resource', | ||
511 | + id = 'io.atomix:atomix-resource:1.0.0-rc3', | ||
512 | + sha1 = 'e47a40d38e6241544ec75df0e6906c209190aebf', | ||
513 | + license = 'Apache2.0', | ||
514 | +) | ||
515 | + | ||
516 | +maven_jar( | ||
517 | + name = 'atomix-resource-manager', | ||
518 | + id = 'io.atomix:atomix-resource-manager:1.0.0-rc3', | ||
519 | + sha1 = '41a4cf53c27df12efb04832e1314a81c09c857cb', | ||
520 | + license = 'Apache2.0', | ||
521 | +) | ||
522 | + | ||
523 | +maven_jar( | ||
524 | + name = 'atomix-variables', | ||
525 | + id = 'io.atomix:atomix-variables:1.0.0-rc3', | ||
526 | + sha1 = 'dd0ca3c0d211b17b291877e21f0ef10f2aa4a9bd', | ||
527 | + license = 'Apache2.0', | ||
528 | +) | ||
529 | + | ||
530 | +maven_jar( | ||
531 | + name = 'catalyst-buffer', | ||
532 | + id = 'io.atomix.catalyst:catalyst-buffer:1.0.4', | ||
533 | + sha1 = '00fb023ebd860d44385750790328aa26a529c75f', | ||
534 | + license = 'Apache2.0', | ||
535 | +) | ||
536 | + | ||
537 | +maven_jar( | ||
538 | + name = 'catalyst-common', | ||
539 | + id = 'io.atomix.catalyst:catalyst-common:1.0.4', | ||
540 | + sha1 = '69d50a64ecf9f63de430aead9dc4b743d29f0195', | ||
541 | + license = 'Apache2.0', | ||
542 | +) | ||
543 | + | ||
544 | +maven_jar( | ||
545 | + name = 'catalyst-local', | ||
546 | + id = 'io.atomix.catalyst:catalyst-local:1.0.4', | ||
547 | + sha1 = 'cbee759c63ce9127c979f4f399d327551644270f', | ||
548 | + license = 'Apache2.0', | ||
549 | +) | ||
550 | + | ||
551 | +maven_jar( | ||
552 | + name = 'catalyst-serializer', | ||
553 | + id = 'io.atomix.catalyst:catalyst-serializer:1.0.4', | ||
554 | + sha1 = 'e86352776cf4fa17eabf4e1d90fe0587ced4f788', | ||
555 | + license = 'Apache2.0', | ||
556 | +) | ||
557 | + | ||
558 | +maven_jar( | ||
559 | + name = 'catalyst-transport', | ||
560 | + id = 'io.atomix.catalyst:catalyst-transport:1.0.4', | ||
561 | + sha1 = 'f36600add086a8848290cad9d6d117634b5bf069', | ||
562 | + license = 'Apache2.0', | ||
563 | +) | ||
564 | + | ||
565 | +maven_jar( | ||
566 | + name = 'copycat-client', | ||
567 | + id = 'io.atomix.copycat:copycat-client:1.0.0-rc4', | ||
568 | + sha1 = '9373c8920a57356b78896d791296a74a2eb868b4', | ||
569 | + license = 'Apache2.0', | ||
570 | +) | ||
571 | + | ||
572 | +maven_jar( | ||
573 | + name = 'copycat-protocol', | ||
574 | + id = 'io.atomix.copycat:copycat-protocol:1.0.0-rc4', | ||
575 | + sha1 = 'cea774c2e4ce7021a6bfca64fd885e875f01f4dc', | ||
576 | + license = 'Apache2.0', | ||
577 | +) | ||
578 | + | ||
579 | +maven_jar( | ||
580 | + name = 'copycat-server', | ||
581 | + id = 'io.atomix.copycat:copycat-server:1.0.0-rc4', | ||
582 | + sha1 = 'e2b6603dbd299d7b21685211df509dd4fbd2f0e9', | ||
583 | + license = 'Apache2.0', | ||
584 | +) | ||
585 | + | ||
586 | +maven_jar( | ||
587 | + name = 'copycat-core', | ||
588 | + id = 'org.onosproject:copycat-core:0.5.1.onos', | ||
589 | + sha1 = 'b268f3cbdd57f28244b21b2b8fc08116f63d736d', | ||
590 | + license = 'Apache2.0', | ||
591 | +) | ||
592 | + | ||
593 | +maven_jar( | ||
594 | + name = 'copycat-event-log', | ||
595 | + id = 'org.onosproject:copycat-event-log:0.5.1.onos', | ||
596 | + sha1 = 'a9e32b13e6500c66113202e7d123e7184b726054', | ||
597 | + license = 'Apache2.0', | ||
598 | +) | ||
599 | + | ||
600 | +maven_jar( | ||
601 | + name = 'copycat-leader-election', | ||
602 | + id = 'org.onosproject:copycat-leader-election:0.5.1.onos', | ||
603 | + sha1 = 'a33617e98caf4e909d7ac744e1f6cdd1ba4b1698', | ||
604 | + license = 'Apache2.0', | ||
605 | +) | ||
606 | + | ||
607 | +maven_jar( | ||
608 | + name = 'copycat-state-log', | ||
609 | + id = 'org.onosproject:copycat-state-log:0.5.1.onos', | ||
610 | + sha1 = '1dfa2b4c6da1cdc453fd3740cd506b9570f118ea', | ||
611 | + license = 'Apache2.0', | ||
612 | +) | ||
613 | + | ||
614 | +maven_jar( | ||
615 | + name = 'copycat-state-machine', | ||
616 | + id = 'org.onosproject:copycat-state-machine:0.5.1.onos', | ||
617 | + sha1 = '03f924b5c818c0684bdfa6c502e5fff8e07d6b77', | ||
618 | + license = 'Apache2.0', | ||
619 | +) | ||
620 | + | ||
621 | +maven_jar( | ||
622 | + name = 'copycat-api', | ||
623 | + id = 'org.onosproject:copycat-api:0.5.1.onos', | ||
624 | + sha1 = 'b947348875485814e2a175a0435cdae4138452fc', | ||
625 | + license = 'Apache2.0', | ||
626 | +) | ||
627 | + | ||
628 | +maven_jar( | ||
629 | + name = 'typesafe-config', | ||
630 | + id = 'com.typesafe:config:1.2.1', | ||
631 | + sha1 = 'f771f71fdae3df231bcd54d5ca2d57f0bf93f467', | ||
632 | + license = 'Apache2.0', | ||
633 | +) | ||
634 | + | ||
635 | +maven_jar( | ||
636 | + name = 'org.apache.karaf.shell.console', | ||
637 | + id = 'org.apache.karaf.shell:org.apache.karaf.shell.console:3.0.5', | ||
638 | + sha1 = 'bf60152b180919152f532ddbd96c7563c11bb048', | ||
639 | + license = 'Apache2.0', | ||
640 | +) | ||
641 | + | ||
642 | +maven_jar( | ||
643 | + name = 'httpclient-osgi', | ||
644 | + id = 'org.apache.httpcomponents:httpclient-osgi:4.5.1', | ||
645 | + sha1 = '0220a68ff36e5b0fa71b5dc0b1dc1d4ad2dcf524', | ||
646 | + license = 'Apache2.0', | ||
647 | +) | ||
648 | + | ||
649 | +maven_jar( | ||
650 | + name = 'httpcore-osgi', | ||
651 | + id = 'org.apache.httpcomponents:httpcore-osgi:4.4.4', | ||
652 | + sha1 = 'd5c14055e569afca96f4603d6f9d467bc72ccba8', | ||
653 | + license = 'Apache2.0', | ||
654 | +) | ||
655 | + | ||
656 | +maven_jar( | ||
657 | + name = 'ganymed-ssh2', | ||
658 | + id = 'ch.ethz.ganymed:ganymed-ssh2:262', | ||
659 | + sha1 = '7761dc665d0f6993dc846d914214fb93291e2bdf', | ||
660 | + license = 'Apache2.0', | ||
661 | +) | ||
662 | + | ||
663 | +maven_jar( | ||
664 | + name = 'openflowj', | ||
665 | + id = 'org.onosproject:openflowj:0.9.2.onos', | ||
666 | + sha1 = '7cd6a35f6638f8ee3f5415484842bf95a4e619db', | ||
667 | + license = 'Apache2.0', | ||
668 | +) | ||
669 | + | ||
670 | +maven_jar( | ||
671 | + name = 'org.apache.servicemix.bundles.snmp4j', | ||
672 | + id = 'org.apache.servicemix.bundles:org.apache.servicemix.bundles.snmp4j:2.3.4_1', | ||
673 | + sha1 = '5134e0b60a6d88b26fe4dec03488efe4f2463e65', | ||
674 | + license = 'Apache2.0', | ||
675 | +) | ||
676 | + | ||
677 | +maven_jar( | ||
678 | + name = 'jetty-websocket', | ||
679 | + id = 'org.eclipse.jetty:jetty-websocket:8.1.18.v20150929', | ||
680 | + sha1 = '4a1610515aed4f02e7cb6ab0db564489d4d44d9f', | ||
681 | + license = 'Apache2.0', | ||
682 | +) | ||
683 | + | ||
684 | +maven_jar( | ||
685 | + name = 'jetty-util', | ||
686 | + id = 'org.eclipse.jetty:jetty-util:8.1.18.v20150929', | ||
687 | + sha1 = 'fb8fb3debf99a626c827535bf06451a337c6b085', | ||
688 | + license = 'Apache2.0', | ||
689 | +) | ||
690 | + | ||
691 | +maven_jar( | ||
692 | + name = 'jsch', | ||
693 | + id = 'com.jcraft:jsch:0.1.53', | ||
694 | + sha1 = '658b682d5c817b27ae795637dfec047c63d29935', | ||
695 | + license = 'Apache2.0', | ||
696 | +) | ||
697 | + | ||
698 | +maven_jar( | ||
699 | + name = 'rrd4j', | ||
700 | + id = 'org.rrd4j:rrd4j:2.2', | ||
701 | + sha1 = 'e5aee992ece8c82291b77bef96cd1d11c1e0a009', | ||
702 | + license = 'Apache2.0', | ||
703 | +) | ||
704 | + | ||
705 | +maven_jar( | ||
706 | + name = 'metrics-influxdb', | ||
707 | + id = 'com.izettle:metrics-influxdb:1.1.1', | ||
708 | + sha1 = 'a911d778c2f8607dd4e7a4cdb9b0cd97adcd0343', | ||
709 | + license = 'Apache2.0', | ||
710 | +) | ||
711 | + | ||
712 | +maven_jar( | ||
713 | + name = 'influxdb-java', | ||
714 | + id = 'org.influxdb:influxdb-java:2.1', | ||
715 | + sha1 = 'd2fe39fb8db1d823e64fc7ea54b779e1cab917c7', | ||
716 | + license = 'Apache2.0', | ||
717 | +) | ||
718 | + | ||
719 | + | ||
720 | +maven_jar( | ||
721 | + name = 'gmetric4j', | ||
722 | + id = 'info.ganglia.gmetric4j:gmetric4j:1.0.10', | ||
723 | + sha1 = '3d62003123b586adb86cb028cc0f8a8c3a701d81', | ||
724 | + license = 'Apache2.0', | ||
725 | +) | ||
726 | + | ||
727 | +maven_jar( | ||
728 | + name = 'metrics-ganglia', | ||
729 | + id = 'io.dropwizard.metrics:metrics-ganglia:3.1.2', | ||
730 | + sha1 = '2a4e2fcd6436f9b1771f0f9b6bab445dddcf704f', | ||
731 | + license = 'Apache2.0', | ||
732 | +) | ||
733 | + | ||
734 | +maven_jar( | ||
735 | + name = 'concurrent-trees', | ||
736 | + id = 'com.googlecode.concurrent-trees:concurrent-trees:2.4.0', | ||
737 | + sha1 = '2e505b78f9216abebbbdf1c3254bf9f4c565ae43', | ||
738 | + license = 'Apache2.0', | ||
739 | +) | ||
740 | + | ||
741 | + | ||
742 | +# These SNMP libraries don't have release versions, so we access them directly by snapshot id. The SNMP provider is due for a refactoring | ||
743 | +# overhaul to fix some of these bogus dependencies. | ||
744 | + | ||
745 | +maven_jar( | ||
746 | + name = 'snmp-core', | ||
747 | + full_url = 'https://oss.sonatype.org/content/repositories/snapshots/com/btisystems/snmp-core/1.3-SNAPSHOT/snmp-core-1.3-20151110.124757-1', | ||
748 | + id = 'com.btisystems:snmp-core:1.3-SNAPSHOT-20151110.124757-1', | ||
749 | + repository = 'https://oss.sonatype.org/content/repositories/snapshots', | ||
750 | + license = 'Apache2.0', | ||
751 | +) | ||
752 | + | ||
753 | +maven_jar( | ||
754 | + name = 'bti7000', | ||
755 | + id = 'com.btisystems.mibbler.mibs:bti7000:1.0-SNAPSHOT', | ||
756 | + repository = 'https://oss.sonatype.org/content/repositories/snapshots', | ||
757 | + full_url = 'https://oss.sonatype.org/content/repositories/snapshots/com/btisystems/mibbler/mibs/bti7000/1.0-SNAPSHOT/bti7000-1.0-20151221.113001-4', | ||
758 | + attach_source = False, | ||
759 | + license = 'Apache2.0', | ||
760 | +) | ||
761 | + | ||
762 | +maven_jar( | ||
763 | + name = 'mibs-net-snmp', | ||
764 | + id = 'com.btisystems.mibbler.mibs:net-snmp:1.0-SNAPSHOT', | ||
765 | + repository = 'https://oss.sonatype.org/content/repositories/snapshots', | ||
766 | + full_url = 'https://oss.sonatype.org/content/repositories/snapshots/com/btisystems/mibbler/mibs/net-snmp/1.0-SNAPSHOT/net-snmp-1.0-20151221.112958-4', | ||
767 | + attach_source = False, | ||
768 | + license = 'Apache2.0', | ||
769 | +) | ||
770 | + | ||
771 | +maven_jar( | ||
772 | + name = 'mibs-rfc', | ||
773 | + id = 'com.btisystems.mibbler.mibs:rfc:1.0-SNAPSHOT', | ||
774 | + repository = 'https://oss.sonatype.org/content/repositories/snapshots', | ||
775 | + full_url = 'https://oss.sonatype.org/content/repositories/snapshots/com/btisystems/mibbler/mibs/rfc/1.0-SNAPSHOT/rfc-1.0-20151221.113000-6', | ||
776 | + attach_source = False, | ||
777 | + license = 'Apache2.0', | ||
778 | +) |
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
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-bgp-provider-flow' | ||
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/topology/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-bgp-provider-topology' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//protocols/bgp/api:onos-bgp-api', | ||
10 | + '//protocols/bgp/bgpio:onos-bgpio', | ||
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 | +) |
providers/host/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-host-provider' | ||
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 | +) |
providers/lldp/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-lldp-provider' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//providers/lldpcommon:onos-lldp-provider-common', | ||
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 | +) |
providers/lldpcommon/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-lldp-provider-common' | ||
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 | +) |
providers/netcfghost/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-netcfg-links-provider' | ||
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 | +) |
providers/netcfglinks/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-netcfg-links-provider' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//providers/lldpcommon:onos-lldp-provider-common', | ||
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 | +) |
providers/netconf/device/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | + | ||
3 | +CURRENT_NAME = 'onos-netconf-provider-device' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:CORE_DEPS', | ||
8 | + '//incubator/api:onos-incubator-api', | ||
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 | +) |
providers/null/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-null-providers' | ||
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 | +) |
providers/openflow/device/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-of-provider-device' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:openflowj', | ||
10 | + '//protocols/openflow/api:onos-of-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 | +) |
providers/openflow/flow/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-of-provider-flow' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:openflowj', | ||
10 | + '//protocols/openflow/api:onos-of-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 | +) |
providers/openflow/group/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-of-provider-group' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:openflowj', | ||
10 | + '//protocols/openflow/api:onos-of-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 | +) |
providers/openflow/message/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-of-provider-message' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:openflowj', | ||
10 | + '//protocols/openflow/api:onos-of-api', | ||
11 | + '//apps/cpman/api:onos-app-cpman-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 | +) |
providers/openflow/meter/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-of-provider-meter' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:openflowj', | ||
10 | + '//protocols/openflow/api:onos-of-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 | +) |
providers/openflow/packet/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-of-provider-packet' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:openflowj', | ||
10 | + '//protocols/openflow/api:onos-of-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 | +) |
providers/ovsdb/device/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-ovsdb-provider-device' | ||
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 | +) |
providers/ovsdb/host/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-ovsdb-provider-host' | ||
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 | +) |
providers/ovsdb/tunnel/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-ovsdb-provider-tunnel' | ||
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 | + '//incubator/api:onos-incubator-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 | +) |
providers/pcep/topology/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-pcep-provider-topology' | ||
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 | + '//apps/pcep-api:onos-app-pcep-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 | +) |
providers/pcep/tunnel/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-pcep-provider-tunnel' | ||
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 | + '//apps/pcep-api:onos-app-pcep-api', | ||
12 | + '//incubator/api:onos-incubator-api', | ||
13 | + '//protocols/pcep/pcepio:onos-pcep-pcepio', | ||
14 | + '//protocols/pcep/api:onos-pcep-controller-api', | ||
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 | +) |
providers/rest/device/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-restsb-provider-device' | ||
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 | + '//apps/pcep-api:onos-app-pcep-api', | ||
12 | + '//incubator/api:onos-incubator-api', | ||
13 | + '//protocols/rest/api:onos-restsb-api', | ||
14 | + '//lib:javax.ws.rs-api', | ||
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 | +) |
providers/snmp/alarm/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-snmp-provider-alarm' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.servicemix.bundles.snmp4j', | ||
10 | + '//lib:snmp-core', | ||
11 | + '//lib:bti7000', | ||
12 | + '//lib:mibs-net-snmp', | ||
13 | + '//lib:mibs-rfc', | ||
14 | + '//protocols/ovsdb/api:onos-ovsdb-api', | ||
15 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
16 | + '//incubator/api:onos-incubator-api', | ||
17 | +] | ||
18 | + | ||
19 | +TEST_DEPS = [ | ||
20 | + '//lib:TEST', | ||
21 | +] | ||
22 | + | ||
23 | +java_library( | ||
24 | + name = CURRENT_NAME, | ||
25 | + srcs = glob([SRC + '/*.java']), | ||
26 | + deps = COMPILE_DEPS, | ||
27 | + visibility = ['PUBLIC'], | ||
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 | +) |
providers/snmp/device/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-snmp-provider-device' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:org.apache.servicemix.bundles.snmp4j', | ||
10 | + '//lib:snmp-core', | ||
11 | + '//lib:bti7000', | ||
12 | + '//lib:mibs-net-snmp', | ||
13 | + '//lib:mibs-rfc', | ||
14 | + '//protocols/ovsdb/api:onos-ovsdb-api', | ||
15 | + '//protocols/ovsdb/rfc:onos-ovsdb-rfc', | ||
16 | + '//incubator/api:onos-incubator-api', | ||
17 | +] | ||
18 | + | ||
19 | +TEST_DEPS = [ | ||
20 | + '//lib:TEST', | ||
21 | +] | ||
22 | + | ||
23 | +java_library( | ||
24 | + name = CURRENT_NAME, | ||
25 | + srcs = glob([SRC + '/*.java']), | ||
26 | + deps = COMPILE_DEPS, | ||
27 | + visibility = ['PUBLIC'], | ||
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 | +) |
utils/junit/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onlab/junit/' | ||
2 | +TEST = 'src/test/java/org/onlab/junit/' | ||
3 | +CURRENT_NAME = 'onlab-junit' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +SRC_DEPS = [ | ||
7 | + '//lib:junit', | ||
8 | + '//lib:hamcrest-all', | ||
9 | + '//lib:guava', | ||
10 | +] | ||
11 | + | ||
12 | +TEST_DEPS = [ | ||
13 | + '//lib:guava-testlib', | ||
14 | +] | ||
15 | + | ||
16 | +java_library( | ||
17 | + name = CURRENT_NAME, | ||
18 | + srcs = glob([SRC + '/*.java']), | ||
19 | + deps = SRC_DEPS, | ||
20 | + visibility = ['PUBLIC'], | ||
21 | + resources_root = 'src/main/resources', | ||
22 | + resources = glob(['src/main/resources/**']), | ||
23 | +) | ||
24 | + | ||
25 | +java_test( | ||
26 | + name = 'tests', | ||
27 | + srcs = glob([TEST + '/*.java']), | ||
28 | + deps = SRC_DEPS + | ||
29 | + TEST_DEPS + | ||
30 | + [CURRENT_TARGET], | ||
31 | + source_under_test = [CURRENT_TARGET], | ||
32 | +) |
utils/misc/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onlab/**/' | ||
2 | +TEST = 'src/test/java/org/onlab/**/' | ||
3 | +CURRENT_NAME = 'onlab-misc' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:COMPILE', | ||
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 | +) |
utils/osgi/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onlab/osgi/' | ||
2 | +TEST = 'src/test/java/org/onlab/osgi/' | ||
3 | +CURRENT_NAME = 'onlab-osgi' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:COMPILE', | ||
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 | +) |
utils/rest/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onlab/**/' | ||
2 | +TEST = 'src/test/java/org/onlab/**/' | ||
3 | +CURRENT_NAME = 'onlab-rest' | ||
4 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
5 | + | ||
6 | +COMPILE_DEPS = [ | ||
7 | + '//lib:COMPILE', | ||
8 | + '//utils/osgi:onlab-osgi', | ||
9 | + '//utils/misc:onlab-misc', | ||
10 | + '//lib:javax.ws.rs-api', | ||
11 | + '//lib:jersey-server', | ||
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 | +) |
web/api/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-rest' | ||
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 | +] | ||
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 | +) |
web/gui/BUCK
0 → 100644
1 | +SRC = 'src/main/java/org/onosproject/**/' | ||
2 | +TEST = 'src/main/java/org/onosproject/**/' | ||
3 | + | ||
4 | +CURRENT_NAME = 'onos-gui' | ||
5 | +CURRENT_TARGET = ':' + CURRENT_NAME | ||
6 | + | ||
7 | +COMPILE_DEPS = [ | ||
8 | + '//lib:CORE_DEPS', | ||
9 | + '//lib:javax.ws.rs-api', | ||
10 | + '//lib:servlet-api', | ||
11 | + '//lib:jetty-websocket', | ||
12 | + '//lib:jetty-util', | ||
13 | + '//lib:jersey-media-multipart', | ||
14 | + '//incubator/api:onos-incubator-api', | ||
15 | + '//incubator/net:onos-incubator-net', | ||
16 | + '//utils/rest:onlab-rest', | ||
17 | + '//core/store/serializers:onos-core-serializers', | ||
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 | + resources_root = 'src/main/resources', | ||
30 | + resources = glob(['src/main/resources/**']), | ||
31 | +) | ||
32 | + | ||
33 | +java_test( | ||
34 | + name = 'tests', | ||
35 | + srcs = glob([TEST + '/*.java']), | ||
36 | + deps = COMPILE_DEPS + | ||
37 | + TEST_DEPS + | ||
38 | + [CURRENT_TARGET], | ||
39 | + source_under_test = [CURRENT_TARGET], | ||
40 | +) |
-
Please register or login to post a comment