Ray Milkey
Committed by Gerrit Code Review

More app BUCK file refactoring

Change-Id: I97506033c4c0cf145c558df7d4f86f37c7fe8332
......@@ -73,8 +73,6 @@ CORE = [
'//providers/ovsdb/device:onos-ovsdb-provider-device',
'//providers/ovsdb/host:onos-ovsdb-provider-host',
'//providers/ovsdb/tunnel:onos-ovsdb-provider-tunnel',
'//providers/pcep/topology:onos-pcep-provider-topology',
'//providers/pcep/tunnel:onos-pcep-provider-tunnel',
'//providers/rest/device:onos-restsb-provider-device',
'//providers/snmp/device:onos-snmp-provider-device',
......@@ -83,6 +81,7 @@ CORE = [
]
APPS = [
'//providers/pcep:onos-providers-pcep-oar',
'//apps/dhcp:onos-apps-dhcp-oar',
'//apps/fwd:onos-apps-fwd-oar',
'//apps/aaa:onos-apps-aaa-oar',
......@@ -91,6 +90,26 @@ APPS = [
'//apps/proxyarp:onos-apps-proxyarp-oar',
'//apps/segmentrouting:onos-apps-segmentrouting-oar',
'//apps/gangliametrics:onos-apps-gangliametrics-oar',
'//apps/graphitemetrics:onos-apps-graphitemetrics-oar',
'//apps/igmp:onos-apps-igmp-oar',
'//apps/cordmcast:onos-apps-cordmcast-oar',
'//apps/olt:onos-apps-olt-oar',
'//apps/influxdbmetrics:onos-apps-influxdbmetrics-oar',
'//apps/metrics:onos-apps-metrics-oar',
'//apps/mfwd:onos-apps-mfwd-oar',
'//apps/mlb:onos-apps-mlb-oar',
'//apps/openstackinterface:onos-apps-openstackinterface-oar',
'//apps/mobility:onos-apps-mobility-oar',
'//apps/optical:onos-apps-optical-oar',
'//apps/pathpainter:onos-apps-pathpainter-oar',
'//apps/pcep-api:onos-apps-pcep-api-oar',
'//apps/pim:onos-apps-pim-oar',
'//apps/reactive-routing:onos-apps-reactive-routing-oar',
'//apps/sdnip:onos-apps-sdnip-oar',
'//apps/virtualbng:onos-apps-virtualbng-oar',
'//apps/cordvtn:onos-apps-cordvtn-oar',
'//apps/vpls:onos-apps-vpls-oar',
'//apps/vrouter:onos-apps-vrouter-oar',
]
APP_JARS = [
......@@ -98,8 +117,6 @@ APP_JARS = [
'//apps/cpman/app:onos-app-cpman-app',
'//apps/routing-api:onos-apps-routing-api',
'//apps/cip:onos-app-cip',
'//apps/cordmcast:onos-app-cord-mcast',
'//apps/cordvtn:onos-apps-cordvtn',
'//apps/dhcp/api:onos-apps-dhcp-api',
'//apps/dhcp/app:onos-apps-dhcp-app',
'//apps/drivermatrix:onos-app-drivermatrix',
......@@ -107,30 +124,14 @@ APP_JARS = [
'//apps/faultmanagement:onos-app-fm',
'//apps/flowanalyzer:onos-app-flowanalyzer',
'//apps/fwd:onos-apps-fwd',
'//apps/igmp:onos-app-igmp',
'//apps/influxdbmetrics:onos-app-influxdb',
'//apps/olt:onos-app-olt-api',
'//apps/olt:onos-app-olt-app',
'//apps/iptopology-api:onos-app-iptopology-api',
'//apps/metrics:onos-app-metrics',
'//apps/graphitemetrics:onos-app-graphite',
'//apps/mfwd:onos-app-mfwd',
'//apps/mlb:onos-app-mlb',
'//apps/mobility:onos-app-mobility',
'//apps/openstackinterface:onos-app-openstackinterface-api',
'//apps/openstackinterface:onos-app-openstackinterface-app',
'//apps/olt:onos-apps-olt-api',
'//apps/iptopology-api:onos-apps-iptopology-api',
'//apps/openstackinterface:onos-apps-openstackinterface-api',
'//apps/openstacknetworking:onos-app-openstacknetworking',
'//apps/openstacknode:onos-app-openstacknode',
'//apps/optical:onos-app-optical',
'//apps/pathpainter:onos-app-pp',
'//apps/pim:onos-app-pim',
'//apps/openstacknode:onos-apps-openstacknode',
'//apps/routing:onos-apps-routing',
'//apps/sdnip:onos-app-sdnip',
'//apps/test:onos-app-test',
'//apps/vtn:onos-app-vtn',
'//apps/virtualbng:onos-app-virtualbng',
'//apps/vpls:onos-app-vpls',
'//apps/vrouter:onos-app-vrouter',
]
java_library(
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-cord-mcast'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:javax.ws.rs-api',
'//lib:jersey-client',
'//lib:jersey-common',
'//utils/rest:onlab-rest',
'//apps/olt:onos-app-olt-api',
'//apps/olt:onos-apps-olt-api',
]
TEST_DEPS = [
'//lib:TEST',
BUNDLES = [
'//apps/olt:onos-apps-olt-api',
'//apps/cordmcast:onos-apps-cordmcast',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'CORD Multicast App',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'CORD Multicast application',
included_bundles = BUNDLES,
)
......
......@@ -9,14 +9,31 @@ COMPILE_DEPS = [
'//utils/rest:onlab-rest',
'//cli:onos-cli',
'//core/store/serializers:onos-core-serializers',
'//apps/openstackinterface:onos-apps-openstackinterface-api',
'//apps/dhcp/api:onos-apps-dhcp-api',
'//protocols/ovsdb/api:onos-ovsdb-api',
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
]
BUNDLES = [
'//apps/openstackinterface:onos-apps-openstackinterface-api',
'//apps/cordvtn:onos-apps-cordvtn',
]
EXCLUDED_BUNDLES = [
'//lib:jsch', # TODO - needs wrap
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
web_context = '/onos/cordvtn',
)
#FIXME need onos_app
\ No newline at end of file
onos_app (
title = 'CORD VTN REST API',
category = 'Traffic Steering',
url = 'http://onosproject.org',
included_bundles = BUNDLES,
excluded_bundles = EXCLUDED_BUNDLES,
description = 'APIs for interacting with the CORD VTN application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-graphite'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:gmetric4j',
'//lib:metrics-graphite',
]
EXCLUDED_BUNDLES = [
'//lib:gmetric4j',
'//lib:metrics-graphite',
]
TEST_DEPS = [
'//lib:TEST',
'//core/api:onos-api-tests',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
test_deps = TEST_DEPS,
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Graphite Report and Query App',
category = 'Monitoring',
url = 'http://onosproject.org',
description = 'Performance metric service reporter and retriever for graphite',
excluded_bundles = EXCLUDED_BUNDLES,
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-igmp'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
'//cli:onos-cli',
'//apps/olt:onos-app-olt-api',
'//apps/olt:onos-apps-olt-api',
]
TEST_DEPS = [
'//lib:TEST',
BUNDLES = [
'//apps/olt:onos-apps-olt-api',
'//apps/igmp:onos-apps-igmp',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'IGMP App',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'Internet Group Message Protocol',
included_bundles = BUNDLES,
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-influxdb'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
......@@ -12,22 +6,26 @@ COMPILE_DEPS = [
'//cli:onos-cli',
]
EXCLUDED_BUNDLES = [
'//lib:metrics-influxdb',
'//lib:influxdb-java',
]
TEST_DEPS = [
'//lib:TEST_ADAPTERS',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
test_deps = TEST_DEPS,
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
# TODO : Currently non-functional, needs the ability to wrap a non-OSGI jar
onos_app (
title = 'InfluxDB Report and Query App',
category = 'Monitoring',
url = 'http://onosproject.org',
description = 'Performance metric service reporter and retriever for influxDB.',
excluded_bundles = EXCLUDED_BUNDLES,
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-iptopology-api'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-metrics'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
......@@ -12,24 +6,13 @@ COMPILE_DEPS = [
'//cli:onos-cli',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'OpenStack Interface App',
category = 'Utility',
url = 'http://onosproject.org',
description = 'Openstack Interface Application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-mfwd'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Multicast Forwarding App',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'Multicast forwarding application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-mlb'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Mastership Load Balancer App',
category = 'Utility',
url = 'http://onosproject.org',
description = 'Application that balances mastership among nodes.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-mobility'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Host Mobility App',
category = 'Utility',
url = 'http://onosproject.org',
description = 'Host mobility application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:javax.ws.rs-api',
......@@ -11,38 +8,28 @@ COMPILE_DEPS = [
'//core/store/serializers:onos-core-serializers',
]
TEST_DEPS = [
'//lib:TEST',
BUNDLES = [
':onos-apps-olt-api',
':onos-apps-olt',
]
java_library(
name = 'onos-app-olt-api',
osgi_jar_with_tests (
name = 'onos-apps-olt-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-olt-api-tests',
srcs = glob([TEST + 'api/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-olt-api'],
source_under_test = [':onos-app-olt-api'],
)
java_library(
name = 'onos-app-olt-app',
osgi_jar_with_tests (
srcs = glob(['app/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-olt-api'],
deps = COMPILE_DEPS + [':onos-apps-olt-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-olt-app-tests',
srcs = glob([TEST + 'app/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-olt-api', ':onos-app-olt-app'],
source_under_test = [':onos-app-olt-app'],
onos_app (
title = 'ONOS OLT REST API',
category = 'Security',
url = 'http://onosproject.org',
description = 'OLT application for CORD.',
included_bundles = BUNDLES,
)
......
......@@ -7,38 +7,26 @@ COMPILE_DEPS = [
'//lib:javax.ws.rs-api',
]
TEST_DEPS = [
'//lib:TEST',
BUNDLES = [
'//apps/openstackinterface:onos-apps-openstackinterface-api',
# TODO - this doesn't actually work now, have to refactor the BUCK files into each sub directory
]
java_library(
name = 'onos-app-openstackinterface-api',
osgi_jar_with_tests (
name = 'onos-apps-openstackinterface-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstackinterface-api-tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-openstackinterface-api'],
source_under_test = [':onos-app-openstackinterface-api'],
)
java_library(
name = 'onos-app-openstackinterface-app',
srcs = glob(['app/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstackinterface-api'],
visibility = ['PUBLIC'],
osgi_jar_with_tests (
deps = COMPILE_DEPS,
)
java_test(
name = 'onos-app-openstackinterface-app-tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-openstackinterface-api', ':onos-app-openstackinterface-app'],
source_under_test = [':onos-app-openstackinterface-app'],
onos_app (
title = 'Authentication App',
category = 'Security',
url = 'http://onosproject.org',
description = 'ONOS authentication application.',
included_bundles = BUNDLES,
)
......
......@@ -5,7 +5,7 @@ COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
'//apps/openstackinterface:onos-app-openstackinterface-api',
'//apps/openstackinterface:onos-apps-openstackinterface-api',
'//core/store/serializers:onos-core-serializers',
]
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-openstacknode'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//protocols/ovsdb/api:onos-ovsdb-api',
......@@ -11,22 +5,6 @@ COMPILE_DEPS = [
'//core/store/serializers:onos-core-serializers',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-optical'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Packet/Optical Use-Case App',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'Packet/Optical use-case application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-pp'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Path Visualization App',
category = 'Utility',
url = 'http://onosproject.org',
description = 'Path visualization application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-pcep-api'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//protocols/ovsdb/api:onos-ovsdb-api',
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'PCEP Protocol API',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'PCEP protocol API.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-pim'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
......@@ -12,24 +6,21 @@ COMPILE_DEPS = [
'//apps/routing-api:onos-apps-routing-api',
]
TEST_DEPS = [
'//lib:TEST',
BUNDLES = [
'//apps/routing-api:onos-apps-routing-api',
':onos-apps-pim',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Protocol Independent Multicast Emulation App',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'Protocol independent multicast emulation.',
included_bundles = BUNDLES,
)
......
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
'//apps/routing-api:onos-apps-routing-api',
]
osgi_jar (
deps = COMPILE_DEPS,
)
onos_app (
title = 'SDN-IP Reactive Routing App',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'SDN-IP reactive routing application.',
)
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-sdnip'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
'//apps/routing-api:onos-apps-routing-api',
]
BUNDLES = [
'//apps/routing-api:onos-apps-routing-api',
'//apps/sdnip:onos-apps-sdnip',
]
TEST_DEPS = [
'//lib:TEST_ADAPTERS',
'//incubator/api:onos-incubator-api-tests',
'//apps/routing-api:onos-apps-routing-api-tests',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
test_deps = TEST_DEPS,
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'SDN-IP App',
category = 'Utility',
url = 'http://onosproject.org',
included_bundles = BUNDLES,
description = 'SDN-IP peering application',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-virtualbng'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
......@@ -13,24 +7,15 @@ COMPILE_DEPS = [
'//utils/rest:onlab-rest',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Virtual Broadband Gateway App',
category = 'Utility',
url = 'http://onosproject.org',
description = 'A virtual Broadband Network Gateway(BNG) application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-vpls'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
......@@ -19,18 +13,14 @@ TEST_DEPS = [
'//lib:TEST_ADAPTERS',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
test_deps = TEST_DEPS,
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'VLAN L2 Broadcast Network App',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'Application to create L2 broadcast network using VLAN.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-app-vrouter'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Virtual Router App',
category = 'Traffic Steering',
url = 'http://onosproject.org',
description = 'Virtual router (vRouter) application.',
)
......
BUNDLES = [
'//providers/pcep/topology:onos-providers-pcep-topology',
'//providers/pcep/tunnel:onos-providers-pcep-tunnel',
'//protocols/pcep/api:onos-pcep-controller-api',
'//protocols/pcep/pcepio:onos-pcep-pcepio',
]
COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
onos_app (
title = 'PCEP Provider',
category = 'Provider',
url = 'http://onosproject.org',
included_bundles = BUNDLES,
description = 'PCEP protocol providers root.',
required_apps = [ 'org.onosproject.pcep-api' ],
)
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-pcep-provider-topology'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//protocols/ovsdb/api:onos-ovsdb-api',
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
'//apps/pcep-api:onos-app-pcep-api',
]
TEST_DEPS = [
'//lib:TEST',
'//apps/pcep-api:onos-apps-pcep-api',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-pcep-provider-tunnel'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//protocols/ovsdb/api:onos-ovsdb-api',
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
'//apps/pcep-api:onos-app-pcep-api',
'//apps/pcep-api:onos-apps-pcep-api',
'//incubator/api:onos-incubator-api',
'//protocols/pcep/pcepio:onos-pcep-pcepio',
'//protocols/pcep/api:onos-pcep-controller-api',
......@@ -18,18 +12,7 @@ TEST_DEPS = [
'//lib:TEST_ADAPTERS',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
test_deps = TEST_DEPS,
)
......
......@@ -8,7 +8,7 @@ COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//protocols/ovsdb/api:onos-ovsdb-api',
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
'//apps/pcep-api:onos-app-pcep-api',
'//apps/pcep-api:onos-apps-pcep-api',
'//incubator/api:onos-incubator-api',
'//protocols/rest/api:onos-restsb-api',
'//lib:javax.ws.rs-api',
......