Repository: karaf Updated Branches: refs/heads/karaf-4.0.x 5560bc571 -> 3fce9dcaf
[KARAF-5148] Remove use of org.json replaced by org.apache.felix.utils.json Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/3fce9dca Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/3fce9dca Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/3fce9dca Branch: refs/heads/karaf-4.0.x Commit: 3fce9dcaf521e10ac53a6893cb37a411b6c90aad Parents: 5560bc5 Author: Jean-Baptiste Onofré <[email protected]> Authored: Mon May 29 13:50:44 2017 +0200 Committer: Jean-Baptiste Onofré <[email protected]> Committed: Mon May 29 13:52:28 2017 +0200 ---------------------------------------------------------------------- NOTICE | 4 - archetypes/assembly/NOTICE | 4 - archetypes/blueprint/NOTICE | 4 - archetypes/bundle/NOTICE | 4 - archetypes/command/NOTICE | 4 - archetypes/feature/NOTICE | 4 - archetypes/kar/NOTICE | 4 - bundle/core/NOTICE | 4 - bundle/springstate/NOTICE | 4 - client/NOTICE | 4 - config/NOTICE | 4 - demos/branding/NOTICE | 4 - demos/command/NOTICE | 4 - demos/deployer/bundle/NOTICE | 4 - demos/deployer/kar/NOTICE | 4 - demos/dump/NOTICE | 4 - demos/web/NOTICE | 4 - deployer/blueprint/NOTICE | 4 - deployer/features/NOTICE | 4 - deployer/kar/NOTICE | 4 - deployer/spring/NOTICE | 4 - deployer/wrap/NOTICE | 4 - diagnostic/boot/NOTICE | 4 - diagnostic/core/NOTICE | 4 - exception/NOTICE | 4 - features/command/NOTICE | 4 - features/core/NOTICE | 4 - http/NOTICE | 4 - instance/NOTICE | 4 - itests/NOTICE | 4 - jaas/boot/NOTICE | 4 - jaas/command/NOTICE | 4 - jaas/config/NOTICE | 4 - jaas/jasypt/NOTICE | 4 - jaas/modules/NOTICE | 4 - jdbc/NOTICE | 4 - jms/core/NOTICE | 4 - jndi/NOTICE | 4 - kar/NOTICE | 4 - log/NOTICE | 4 - main/NOTICE | 4 - management/server/NOTICE | 4 - obr/NOTICE | 4 - package/NOTICE | 4 - pom.xml | 7 -- scheduler/NOTICE | 4 - scr/command/NOTICE | 4 - scr/examples/component-factory/NOTICE | 4 - scr/examples/managed-service/NOTICE | 4 - scr/examples/service/NOTICE | 4 - scr/management/NOTICE | 4 - service/core/NOTICE | 4 - service/guard/NOTICE | 4 - shell/commands/NOTICE | 4 - shell/console/NOTICE | 4 - shell/core/NOTICE | 4 - shell/ssh/NOTICE | 4 - shell/table/NOTICE | 4 - subsystem/NOTICE | 4 - system/NOTICE | 4 - tooling/karaf-maven-plugin/NOTICE | 4 - util/NOTICE | 4 - web/NOTICE | 4 - webconsole/console/NOTICE | 4 - webconsole/console/pom.xml | 16 +--- webconsole/features/NOTICE | 4 - webconsole/features/pom.xml | 12 ++- .../webconsole/features/FeaturesPlugin.java | 72 ++++++++--------- webconsole/gogo/NOTICE | 4 - webconsole/gogo/pom.xml | 14 ++-- webconsole/http/NOTICE | 4 - webconsole/http/pom.xml | 14 ++-- .../karaf/webconsole/http/HttpPlugin.java | 82 +++++++++----------- webconsole/instance/NOTICE | 4 - webconsole/instance/pom.xml | 14 ++-- .../webconsole/instance/InstancePlugin.java | 9 +-- wrapper/NOTICE | 4 - 77 files changed, 111 insertions(+), 401 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/NOTICE ---------------------------------------------------------------------- diff --git a/NOTICE b/NOTICE index 6786c93..b5f639b 100644 --- a/NOTICE +++ b/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/archetypes/assembly/NOTICE ---------------------------------------------------------------------- diff --git a/archetypes/assembly/NOTICE b/archetypes/assembly/NOTICE index b70f1f9..58155b9 100644 --- a/archetypes/assembly/NOTICE +++ b/archetypes/assembly/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/archetypes/blueprint/NOTICE ---------------------------------------------------------------------- diff --git a/archetypes/blueprint/NOTICE b/archetypes/blueprint/NOTICE index b70f1f9..58155b9 100644 --- a/archetypes/blueprint/NOTICE +++ b/archetypes/blueprint/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/archetypes/bundle/NOTICE ---------------------------------------------------------------------- diff --git a/archetypes/bundle/NOTICE b/archetypes/bundle/NOTICE index b70f1f9..58155b9 100644 --- a/archetypes/bundle/NOTICE +++ b/archetypes/bundle/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/archetypes/command/NOTICE ---------------------------------------------------------------------- diff --git a/archetypes/command/NOTICE b/archetypes/command/NOTICE index b70f1f9..58155b9 100644 --- a/archetypes/command/NOTICE +++ b/archetypes/command/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/archetypes/feature/NOTICE ---------------------------------------------------------------------- diff --git a/archetypes/feature/NOTICE b/archetypes/feature/NOTICE index b70f1f9..58155b9 100644 --- a/archetypes/feature/NOTICE +++ b/archetypes/feature/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/archetypes/kar/NOTICE ---------------------------------------------------------------------- diff --git a/archetypes/kar/NOTICE b/archetypes/kar/NOTICE index b70f1f9..58155b9 100644 --- a/archetypes/kar/NOTICE +++ b/archetypes/kar/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/bundle/core/NOTICE ---------------------------------------------------------------------- diff --git a/bundle/core/NOTICE b/bundle/core/NOTICE index b70f1f9..58155b9 100644 --- a/bundle/core/NOTICE +++ b/bundle/core/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/bundle/springstate/NOTICE ---------------------------------------------------------------------- diff --git a/bundle/springstate/NOTICE b/bundle/springstate/NOTICE index b70f1f9..58155b9 100644 --- a/bundle/springstate/NOTICE +++ b/bundle/springstate/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/client/NOTICE ---------------------------------------------------------------------- diff --git a/client/NOTICE b/client/NOTICE index b70f1f9..58155b9 100644 --- a/client/NOTICE +++ b/client/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/config/NOTICE ---------------------------------------------------------------------- diff --git a/config/NOTICE b/config/NOTICE index b70f1f9..58155b9 100644 --- a/config/NOTICE +++ b/config/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/demos/branding/NOTICE ---------------------------------------------------------------------- diff --git a/demos/branding/NOTICE b/demos/branding/NOTICE index b70f1f9..58155b9 100644 --- a/demos/branding/NOTICE +++ b/demos/branding/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/demos/command/NOTICE ---------------------------------------------------------------------- diff --git a/demos/command/NOTICE b/demos/command/NOTICE index b70f1f9..58155b9 100644 --- a/demos/command/NOTICE +++ b/demos/command/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/demos/deployer/bundle/NOTICE ---------------------------------------------------------------------- diff --git a/demos/deployer/bundle/NOTICE b/demos/deployer/bundle/NOTICE index b70f1f9..58155b9 100644 --- a/demos/deployer/bundle/NOTICE +++ b/demos/deployer/bundle/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/demos/deployer/kar/NOTICE ---------------------------------------------------------------------- diff --git a/demos/deployer/kar/NOTICE b/demos/deployer/kar/NOTICE index b70f1f9..58155b9 100644 --- a/demos/deployer/kar/NOTICE +++ b/demos/deployer/kar/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/demos/dump/NOTICE ---------------------------------------------------------------------- diff --git a/demos/dump/NOTICE b/demos/dump/NOTICE index b70f1f9..58155b9 100644 --- a/demos/dump/NOTICE +++ b/demos/dump/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/demos/web/NOTICE ---------------------------------------------------------------------- diff --git a/demos/web/NOTICE b/demos/web/NOTICE index b70f1f9..58155b9 100644 --- a/demos/web/NOTICE +++ b/demos/web/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/deployer/blueprint/NOTICE ---------------------------------------------------------------------- diff --git a/deployer/blueprint/NOTICE b/deployer/blueprint/NOTICE index b70f1f9..58155b9 100644 --- a/deployer/blueprint/NOTICE +++ b/deployer/blueprint/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/deployer/features/NOTICE ---------------------------------------------------------------------- diff --git a/deployer/features/NOTICE b/deployer/features/NOTICE index b70f1f9..58155b9 100644 --- a/deployer/features/NOTICE +++ b/deployer/features/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/deployer/kar/NOTICE ---------------------------------------------------------------------- diff --git a/deployer/kar/NOTICE b/deployer/kar/NOTICE index b70f1f9..58155b9 100644 --- a/deployer/kar/NOTICE +++ b/deployer/kar/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/deployer/spring/NOTICE ---------------------------------------------------------------------- diff --git a/deployer/spring/NOTICE b/deployer/spring/NOTICE index b70f1f9..58155b9 100644 --- a/deployer/spring/NOTICE +++ b/deployer/spring/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/deployer/wrap/NOTICE ---------------------------------------------------------------------- diff --git a/deployer/wrap/NOTICE b/deployer/wrap/NOTICE index b70f1f9..58155b9 100644 --- a/deployer/wrap/NOTICE +++ b/deployer/wrap/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/diagnostic/boot/NOTICE ---------------------------------------------------------------------- diff --git a/diagnostic/boot/NOTICE b/diagnostic/boot/NOTICE index b70f1f9..58155b9 100644 --- a/diagnostic/boot/NOTICE +++ b/diagnostic/boot/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/diagnostic/core/NOTICE ---------------------------------------------------------------------- diff --git a/diagnostic/core/NOTICE b/diagnostic/core/NOTICE index b70f1f9..58155b9 100644 --- a/diagnostic/core/NOTICE +++ b/diagnostic/core/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/exception/NOTICE ---------------------------------------------------------------------- diff --git a/exception/NOTICE b/exception/NOTICE index b70f1f9..58155b9 100644 --- a/exception/NOTICE +++ b/exception/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/features/command/NOTICE ---------------------------------------------------------------------- diff --git a/features/command/NOTICE b/features/command/NOTICE index b70f1f9..58155b9 100644 --- a/features/command/NOTICE +++ b/features/command/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/features/core/NOTICE ---------------------------------------------------------------------- diff --git a/features/core/NOTICE b/features/core/NOTICE index b70f1f9..58155b9 100644 --- a/features/core/NOTICE +++ b/features/core/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/http/NOTICE ---------------------------------------------------------------------- diff --git a/http/NOTICE b/http/NOTICE index b70f1f9..58155b9 100644 --- a/http/NOTICE +++ b/http/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/instance/NOTICE ---------------------------------------------------------------------- diff --git a/instance/NOTICE b/instance/NOTICE index b70f1f9..58155b9 100644 --- a/instance/NOTICE +++ b/instance/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/itests/NOTICE ---------------------------------------------------------------------- diff --git a/itests/NOTICE b/itests/NOTICE index b70f1f9..58155b9 100644 --- a/itests/NOTICE +++ b/itests/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/jaas/boot/NOTICE ---------------------------------------------------------------------- diff --git a/jaas/boot/NOTICE b/jaas/boot/NOTICE index b70f1f9..58155b9 100644 --- a/jaas/boot/NOTICE +++ b/jaas/boot/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/jaas/command/NOTICE ---------------------------------------------------------------------- diff --git a/jaas/command/NOTICE b/jaas/command/NOTICE index b70f1f9..58155b9 100644 --- a/jaas/command/NOTICE +++ b/jaas/command/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/jaas/config/NOTICE ---------------------------------------------------------------------- diff --git a/jaas/config/NOTICE b/jaas/config/NOTICE index b70f1f9..58155b9 100644 --- a/jaas/config/NOTICE +++ b/jaas/config/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/jaas/jasypt/NOTICE ---------------------------------------------------------------------- diff --git a/jaas/jasypt/NOTICE b/jaas/jasypt/NOTICE index b70f1f9..58155b9 100644 --- a/jaas/jasypt/NOTICE +++ b/jaas/jasypt/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/jaas/modules/NOTICE ---------------------------------------------------------------------- diff --git a/jaas/modules/NOTICE b/jaas/modules/NOTICE index b70f1f9..58155b9 100644 --- a/jaas/modules/NOTICE +++ b/jaas/modules/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/jdbc/NOTICE ---------------------------------------------------------------------- diff --git a/jdbc/NOTICE b/jdbc/NOTICE index b70f1f9..58155b9 100644 --- a/jdbc/NOTICE +++ b/jdbc/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/jms/core/NOTICE ---------------------------------------------------------------------- diff --git a/jms/core/NOTICE b/jms/core/NOTICE index b70f1f9..58155b9 100644 --- a/jms/core/NOTICE +++ b/jms/core/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/jndi/NOTICE ---------------------------------------------------------------------- diff --git a/jndi/NOTICE b/jndi/NOTICE index b70f1f9..58155b9 100644 --- a/jndi/NOTICE +++ b/jndi/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/kar/NOTICE ---------------------------------------------------------------------- diff --git a/kar/NOTICE b/kar/NOTICE index b70f1f9..58155b9 100644 --- a/kar/NOTICE +++ b/kar/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/log/NOTICE ---------------------------------------------------------------------- diff --git a/log/NOTICE b/log/NOTICE index b70f1f9..58155b9 100644 --- a/log/NOTICE +++ b/log/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/main/NOTICE ---------------------------------------------------------------------- diff --git a/main/NOTICE b/main/NOTICE index b70f1f9..58155b9 100644 --- a/main/NOTICE +++ b/main/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/management/server/NOTICE ---------------------------------------------------------------------- diff --git a/management/server/NOTICE b/management/server/NOTICE index b70f1f9..58155b9 100644 --- a/management/server/NOTICE +++ b/management/server/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/obr/NOTICE ---------------------------------------------------------------------- diff --git a/obr/NOTICE b/obr/NOTICE index b70f1f9..58155b9 100644 --- a/obr/NOTICE +++ b/obr/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/package/NOTICE ---------------------------------------------------------------------- diff --git a/package/NOTICE b/package/NOTICE index b70f1f9..58155b9 100644 --- a/package/NOTICE +++ b/package/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 818a6ec..f461e65 100644 --- a/pom.xml +++ b/pom.xml @@ -253,7 +253,6 @@ <org.osgi.service.jpa.version>1.0.0</org.osgi.service.jpa.version> <osgi.version>6.0.0</osgi.version> <osgi.compendium.version>5.0.0</osgi.compendium.version> - <org.json.version>20140107</org.json.version> <pax.cdi.version>0.12.0</pax.cdi.version> <pax.exam.version>4.9.1</pax.exam.version> @@ -846,12 +845,6 @@ </dependency> <dependency> - <groupId>org.json</groupId> - <artifactId>json</artifactId> - <version>${org.json.version}</version> - </dependency> - - <dependency> <groupId>javax.mail</groupId> <artifactId>mail</artifactId> <version>${javax.mail.version}</version> http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/scheduler/NOTICE ---------------------------------------------------------------------- diff --git a/scheduler/NOTICE b/scheduler/NOTICE index b70f1f9..58155b9 100644 --- a/scheduler/NOTICE +++ b/scheduler/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/scr/command/NOTICE ---------------------------------------------------------------------- diff --git a/scr/command/NOTICE b/scr/command/NOTICE index b70f1f9..58155b9 100644 --- a/scr/command/NOTICE +++ b/scr/command/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/scr/examples/component-factory/NOTICE ---------------------------------------------------------------------- diff --git a/scr/examples/component-factory/NOTICE b/scr/examples/component-factory/NOTICE index b70f1f9..58155b9 100644 --- a/scr/examples/component-factory/NOTICE +++ b/scr/examples/component-factory/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/scr/examples/managed-service/NOTICE ---------------------------------------------------------------------- diff --git a/scr/examples/managed-service/NOTICE b/scr/examples/managed-service/NOTICE index b70f1f9..58155b9 100644 --- a/scr/examples/managed-service/NOTICE +++ b/scr/examples/managed-service/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/scr/examples/service/NOTICE ---------------------------------------------------------------------- diff --git a/scr/examples/service/NOTICE b/scr/examples/service/NOTICE index b70f1f9..58155b9 100644 --- a/scr/examples/service/NOTICE +++ b/scr/examples/service/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/scr/management/NOTICE ---------------------------------------------------------------------- diff --git a/scr/management/NOTICE b/scr/management/NOTICE index b70f1f9..58155b9 100644 --- a/scr/management/NOTICE +++ b/scr/management/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/service/core/NOTICE ---------------------------------------------------------------------- diff --git a/service/core/NOTICE b/service/core/NOTICE index b70f1f9..58155b9 100644 --- a/service/core/NOTICE +++ b/service/core/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/service/guard/NOTICE ---------------------------------------------------------------------- diff --git a/service/guard/NOTICE b/service/guard/NOTICE index b70f1f9..58155b9 100644 --- a/service/guard/NOTICE +++ b/service/guard/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/shell/commands/NOTICE ---------------------------------------------------------------------- diff --git a/shell/commands/NOTICE b/shell/commands/NOTICE index b70f1f9..58155b9 100644 --- a/shell/commands/NOTICE +++ b/shell/commands/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/shell/console/NOTICE ---------------------------------------------------------------------- diff --git a/shell/console/NOTICE b/shell/console/NOTICE index b70f1f9..58155b9 100644 --- a/shell/console/NOTICE +++ b/shell/console/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/shell/core/NOTICE ---------------------------------------------------------------------- diff --git a/shell/core/NOTICE b/shell/core/NOTICE index b70f1f9..58155b9 100644 --- a/shell/core/NOTICE +++ b/shell/core/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/shell/ssh/NOTICE ---------------------------------------------------------------------- diff --git a/shell/ssh/NOTICE b/shell/ssh/NOTICE index b70f1f9..58155b9 100644 --- a/shell/ssh/NOTICE +++ b/shell/ssh/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/shell/table/NOTICE ---------------------------------------------------------------------- diff --git a/shell/table/NOTICE b/shell/table/NOTICE index b70f1f9..58155b9 100644 --- a/shell/table/NOTICE +++ b/shell/table/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/subsystem/NOTICE ---------------------------------------------------------------------- diff --git a/subsystem/NOTICE b/subsystem/NOTICE index b70f1f9..58155b9 100644 --- a/subsystem/NOTICE +++ b/subsystem/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/system/NOTICE ---------------------------------------------------------------------- diff --git a/system/NOTICE b/system/NOTICE index b70f1f9..58155b9 100644 --- a/system/NOTICE +++ b/system/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/tooling/karaf-maven-plugin/NOTICE ---------------------------------------------------------------------- diff --git a/tooling/karaf-maven-plugin/NOTICE b/tooling/karaf-maven-plugin/NOTICE index 7ec727b..bbe6816 100644 --- a/tooling/karaf-maven-plugin/NOTICE +++ b/tooling/karaf-maven-plugin/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/util/NOTICE ---------------------------------------------------------------------- diff --git a/util/NOTICE b/util/NOTICE index b70f1f9..58155b9 100644 --- a/util/NOTICE +++ b/util/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/web/NOTICE ---------------------------------------------------------------------- diff --git a/web/NOTICE b/web/NOTICE index b70f1f9..58155b9 100644 --- a/web/NOTICE +++ b/web/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/console/NOTICE ---------------------------------------------------------------------- diff --git a/webconsole/console/NOTICE b/webconsole/console/NOTICE index b70f1f9..58155b9 100644 --- a/webconsole/console/NOTICE +++ b/webconsole/console/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/console/pom.xml ---------------------------------------------------------------------- diff --git a/webconsole/console/pom.xml b/webconsole/console/pom.xml index 117397b..6b3990a 100644 --- a/webconsole/console/pom.xml +++ b/webconsole/console/pom.xml @@ -35,7 +35,6 @@ <properties> <appendedResourcesDirectory>${project.basedir}/../../etc/appended-resources</appendedResourcesDirectory> - <org.json.version.osgi>0.0.0.${org.json.version}</org.json.version.osgi> </properties> <dependencies> @@ -85,12 +84,6 @@ <scope>provided</scope> <optional>true</optional> </dependency> - <dependency> - <groupId>org.json</groupId> - <artifactId>json</artifactId> - <scope>provided</scope> - <optional>true</optional> - </dependency> </dependencies> <build> @@ -131,8 +124,7 @@ <Export-Package> org.apache.felix.webconsole;version="${felix.webconsole.api.version}";provide:=true, org.apache.felix.webconsole.bundleinfo;version=1.0.0;provide:=true, - org.apache.felix.webconsole.i18n;version=1.0.0;provide:=true, - org.json;version="${org.json.version.osgi}" + org.apache.felix.webconsole.i18n;version=1.0.0;provide:=true </Export-Package> <Private-Package> !org.apache.felix.webconsole, @@ -169,12 +161,12 @@ org.apache.felix.webconsole;inline=**, <!-- Import/Export-Package parsing --> - org.apache.felix.utils;inline=org/apache/felix/utils/manifest/**, + org.apache.felix.utils.manifest;inline=org/apache/felix/utils/manifest/**, + org.apache.felix.utils.json;inline=org/apache/felix/utils/json/**, org.apache.felix.framework;inline=org/apache/felix/framework/util/VersionRange**, <!-- ServiceTracker --> - org.osgi.compendium; - inline=org/osgi/util/tracker/*, + org.osgi.compendium;inline=org/osgi/util/tracker/*, <!-- File Upload --> commons-fileupload, http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/features/NOTICE ---------------------------------------------------------------------- diff --git a/webconsole/features/NOTICE b/webconsole/features/NOTICE index b70f1f9..58155b9 100644 --- a/webconsole/features/NOTICE +++ b/webconsole/features/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/features/pom.xml ---------------------------------------------------------------------- diff --git a/webconsole/features/pom.xml b/webconsole/features/pom.xml index f324e97..dbe58a3 100644 --- a/webconsole/features/pom.xml +++ b/webconsole/features/pom.xml @@ -59,6 +59,11 @@ <scope>provided</scope> </dependency> <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.apache.felix.utils</artifactId> + <scope>provided</scope> + </dependency> + <dependency> <groupId>org.apache.karaf</groupId> <artifactId>org.apache.karaf.util</artifactId> <scope>provided</scope> @@ -72,10 +77,6 @@ <groupId>org.apache.karaf.features</groupId> <artifactId>org.apache.karaf.features.core</artifactId> </dependency> - <dependency> - <groupId>org.json</groupId> - <artifactId>json</artifactId> - </dependency> </dependencies> <build> @@ -108,6 +109,9 @@ org.apache.felix.webconsole*;version="[3,5)", * </Import-Package> + <Private-Package> + org.apache.felix.utils.json + </Private-Package> </instructions> </configuration> </plugin> http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java ---------------------------------------------------------------------- diff --git a/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java b/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java index 82a035c..ff87782 100644 --- a/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java +++ b/webconsole/features/src/main/java/org/apache/karaf/webconsole/features/FeaturesPlugin.java @@ -31,13 +31,12 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.felix.utils.json.JSONWriter; import org.apache.karaf.features.Feature; import org.apache.karaf.features.FeaturesService; import org.apache.karaf.features.Repository; import org.apache.felix.webconsole.AbstractWebConsolePlugin; import org.apache.felix.webconsole.WebConsoleConstants; -import org.json.JSONException; -import org.json.JSONWriter; import org.osgi.framework.BundleContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -261,49 +260,44 @@ public class FeaturesPlugin extends AbstractWebConsolePlugin { final JSONWriter jw = new JSONWriter(pw); - try { - jw.object(); - - jw.key("status"); - jw.value(statusLine); + jw.object(); - jw.key("repositories"); - jw.array(); - for (Repository r : repositories) { - jw.object(); - jw.key("name"); - String name = ""; - if (r.getName() != null) - name = r.getName(); - jw.value(name); - jw.key("url"); - String uri = r.getURI().toString(); - jw.value(uri); - jw.key("actions"); - jw.array(); - boolean enable = true; - if (uri.startsWith("bundle")) { - enable = false; - } - action(jw, enable, "refreshRepository", "Refresh", "refresh"); - action(jw, enable, "removeRepository", "Remove", "delete"); - jw.endArray(); - jw.endObject(); - } - jw.endArray(); + jw.key("status"); + jw.value(statusLine); - jw.key("features"); + jw.key("repositories"); + jw.array(); + for (Repository r : repositories) { + jw.object(); + jw.key("name"); + String name = ""; + if (r.getName() != null) + name = r.getName(); + jw.value(name); + jw.key("url"); + String uri = r.getURI().toString(); + jw.value(uri); + jw.key("actions"); jw.array(); - for (ExtendedFeature f : features) { - featureInfo(jw, f); + boolean enable = true; + if (uri.startsWith("bundle")) { + enable = false; } + action(jw, enable, "refreshRepository", "Refresh", "refresh"); + action(jw, enable, "removeRepository", "Remove", "delete"); jw.endArray(); - jw.endObject(); + } + jw.endArray(); - } catch (JSONException je) { - throw new IOException(je.toString()); + jw.key("features"); + jw.array(); + for (ExtendedFeature f : features) { + featureInfo(jw, f); } + jw.endArray(); + + jw.endObject(); } @@ -389,7 +383,7 @@ public class FeaturesPlugin extends AbstractWebConsolePlugin { buf.append(msg); } - private void featureInfo(JSONWriter jw, ExtendedFeature feature) throws JSONException { + private void featureInfo(JSONWriter jw, ExtendedFeature feature) throws IOException { jw.object(); jw.key("id"); jw.value(feature.getId()); @@ -416,7 +410,7 @@ public class FeaturesPlugin extends AbstractWebConsolePlugin { jw.endObject(); } - private void action(JSONWriter jw, boolean enabled, String op, String title, String image) throws JSONException { + private void action(JSONWriter jw, boolean enabled, String op, String title, String image) throws IOException { jw.object(); jw.key("enabled").value(enabled); jw.key("op").value(op); http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/gogo/NOTICE ---------------------------------------------------------------------- diff --git a/webconsole/gogo/NOTICE b/webconsole/gogo/NOTICE index b70f1f9..58155b9 100644 --- a/webconsole/gogo/NOTICE +++ b/webconsole/gogo/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/gogo/pom.xml ---------------------------------------------------------------------- diff --git a/webconsole/gogo/pom.xml b/webconsole/gogo/pom.xml index 8586449..9dd8964 100644 --- a/webconsole/gogo/pom.xml +++ b/webconsole/gogo/pom.xml @@ -66,6 +66,11 @@ <scope>provided</scope> </dependency> <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.apache.felix.utils</artifactId> + <scope>provided</scope> + </dependency> + <dependency> <groupId>${servlet.spec.groupId}</groupId> <artifactId>${servlet.spec.artifactId}</artifactId> <scope>provided</scope> @@ -87,12 +92,6 @@ <artifactId>org.apache.karaf.util</artifactId> <scope>provided</scope> </dependency> - <dependency> - <groupId>org.json</groupId> - <artifactId>json</artifactId> - <scope>provided</scope> - <optional>true</optional> - </dependency> </dependencies> <build> @@ -126,6 +125,9 @@ org.apache.felix.webconsole*;version="[3,5)", * </Import-Package> + <Private-Package> + org.apache.felix.utils.json + </Private-Package> </instructions> </configuration> </plugin> http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/http/NOTICE ---------------------------------------------------------------------- diff --git a/webconsole/http/NOTICE b/webconsole/http/NOTICE index b70f1f9..58155b9 100644 --- a/webconsole/http/NOTICE +++ b/webconsole/http/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/http/pom.xml ---------------------------------------------------------------------- diff --git a/webconsole/http/pom.xml b/webconsole/http/pom.xml index fbbc221..6004b3a 100644 --- a/webconsole/http/pom.xml +++ b/webconsole/http/pom.xml @@ -59,6 +59,11 @@ <scope>provided</scope> </dependency> <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.apache.felix.utils</artifactId> + <scope>provided</scope> + </dependency> + <dependency> <groupId>${servlet.spec.groupId}</groupId> <artifactId>${servlet.spec.artifactId}</artifactId> <scope>provided</scope> @@ -77,12 +82,6 @@ <artifactId>org.apache.karaf.util</artifactId> <scope>provided</scope> </dependency> - <dependency> - <groupId>org.json</groupId> - <artifactId>json</artifactId> - <scope>provided</scope> - <optional>true</optional> - </dependency> </dependencies> <build> @@ -115,6 +114,9 @@ org.apache.felix.webconsole*;version="[3,5)", * </Import-Package> + <Private-Package> + org.apache.felix.utils.json + </Private-Package> </instructions> </configuration> </plugin> http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/http/src/main/java/org/apache/karaf/webconsole/http/HttpPlugin.java ---------------------------------------------------------------------- diff --git a/webconsole/http/src/main/java/org/apache/karaf/webconsole/http/HttpPlugin.java b/webconsole/http/src/main/java/org/apache/karaf/webconsole/http/HttpPlugin.java index 9dae1bd..36aaf81 100644 --- a/webconsole/http/src/main/java/org/apache/karaf/webconsole/http/HttpPlugin.java +++ b/webconsole/http/src/main/java/org/apache/karaf/webconsole/http/HttpPlugin.java @@ -31,10 +31,9 @@ import javax.servlet.Servlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.felix.utils.json.JSONWriter; import org.apache.felix.webconsole.AbstractWebConsolePlugin; import org.apache.felix.webconsole.WebConsoleConstants; -import org.json.JSONException; -import org.json.JSONWriter; import org.ops4j.pax.web.service.spi.ServletEvent; import org.ops4j.pax.web.service.spi.WebEvent; import org.osgi.framework.Bundle; @@ -149,57 +148,52 @@ public class HttpPlugin extends AbstractWebConsolePlugin { final String statusLine = this.getStatusLine(servlets, web); final JSONWriter jw = new JSONWriter(pw); - try { - jw.object(); - - jw.key("status"); - jw.value(statusLine); + jw.object(); - jw.key("contexts"); - jw.array(); - for (ServletDetails servlet : servlets) { - jw.object(); - jw.key("id"); - jw.value(servlet.getId()); - jw.key("servlet"); - jw.value(servlet.getServlet()); - jw.key("servletName"); - jw.value(servlet.getServletName()); - jw.key("state"); - jw.value(servlet.getState()); - jw.key("alias"); - jw.value(servlet.getAlias()); - jw.key("urls"); - jw.array(); - for (String url : servlet.getUrls()) { - jw.value(url); - } - jw.endArray(); - jw.endObject(); - } - jw.endArray(); + jw.key("status"); + jw.value(statusLine); - jw.key("web"); + jw.key("contexts"); + jw.array(); + for (ServletDetails servlet : servlets) { + jw.object(); + jw.key("id"); + jw.value(servlet.getId()); + jw.key("servlet"); + jw.value(servlet.getServlet()); + jw.key("servletName"); + jw.value(servlet.getServletName()); + jw.key("state"); + jw.value(servlet.getState()); + jw.key("alias"); + jw.value(servlet.getAlias()); + jw.key("urls"); jw.array(); - for (WebDetail webDetail : web) { - jw.object(); - jw.key("id"); - jw.value(webDetail.getBundleId()); - jw.key("bundlestate"); - jw.value(webDetail.getState()); - jw.key("contextpath"); - jw.value(webDetail.getContextPath()); - jw.key("state"); - jw.value(webDetail.getWebState()); - jw.endObject(); + for (String url : servlet.getUrls()) { + jw.value(url); } jw.endArray(); + jw.endObject(); + } + jw.endArray(); + jw.key("web"); + jw.array(); + for (WebDetail webDetail : web) { + jw.object(); + jw.key("id"); + jw.value(webDetail.getBundleId()); + jw.key("bundlestate"); + jw.value(webDetail.getState()); + jw.key("contextpath"); + jw.value(webDetail.getContextPath()); + jw.key("state"); + jw.value(webDetail.getWebState()); jw.endObject(); - } catch (JSONException je) { - throw new IOException(je.toString()); } + jw.endArray(); + jw.endObject(); } protected List<ServletDetails> getServletDetails() { http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/instance/NOTICE ---------------------------------------------------------------------- diff --git a/webconsole/instance/NOTICE b/webconsole/instance/NOTICE index b70f1f9..58155b9 100644 --- a/webconsole/instance/NOTICE +++ b/webconsole/instance/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/instance/pom.xml ---------------------------------------------------------------------- diff --git a/webconsole/instance/pom.xml b/webconsole/instance/pom.xml index f2d4561..9f08b85 100644 --- a/webconsole/instance/pom.xml +++ b/webconsole/instance/pom.xml @@ -59,6 +59,11 @@ <scope>provided</scope> </dependency> <dependency> + <groupId>org.apache.felix</groupId> + <artifactId>org.apache.felix.utils</artifactId> + <scope>provided</scope> + </dependency> + <dependency> <groupId>${servlet.spec.groupId}</groupId> <artifactId>${servlet.spec.artifactId}</artifactId> <scope>provided</scope> @@ -73,12 +78,6 @@ <artifactId>org.apache.karaf.util</artifactId> <scope>provided</scope> </dependency> - <dependency> - <groupId>org.json</groupId> - <artifactId>json</artifactId> - <scope>provided</scope> - <optional>true</optional> - </dependency> <!-- Only needed while running the unit tests --> <dependency> @@ -119,6 +118,9 @@ org.apache.felix.webconsole*;version="[3,5)", * </Import-Package> + <Private-Package> + org.apache.felix.utils.json + </Private-Package> </instructions> </configuration> </plugin> http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/webconsole/instance/src/main/java/org/apache/karaf/webconsole/instance/InstancePlugin.java ---------------------------------------------------------------------- diff --git a/webconsole/instance/src/main/java/org/apache/karaf/webconsole/instance/InstancePlugin.java b/webconsole/instance/src/main/java/org/apache/karaf/webconsole/instance/InstancePlugin.java index 9752dcb..004803e 100644 --- a/webconsole/instance/src/main/java/org/apache/karaf/webconsole/instance/InstancePlugin.java +++ b/webconsole/instance/src/main/java/org/apache/karaf/webconsole/instance/InstancePlugin.java @@ -29,13 +29,12 @@ import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.felix.utils.json.JSONWriter; import org.apache.felix.webconsole.AbstractWebConsolePlugin; import org.apache.felix.webconsole.WebConsoleConstants; import org.apache.karaf.instance.core.Instance; import org.apache.karaf.instance.core.InstanceService; import org.apache.karaf.instance.core.InstanceSettings; -import org.json.JSONException; -import org.json.JSONWriter; import org.osgi.framework.BundleContext; import org.slf4j.LoggerFactory; @@ -224,14 +223,14 @@ public class InstancePlugin extends AbstractWebConsolePlugin { } jw.endArray(); jw.endObject(); - } catch (JSONException ex) { + } catch (IOException ex) { Logger.getLogger(InstancePlugin.class.getName()).log(Level.SEVERE, null, ex); } catch (Exception ex) { Logger.getLogger(InstancePlugin.class.getName()).log(Level.SEVERE, null, ex); } } - private void instanceInfo(JSONWriter jw, Instance instance) throws JSONException, Exception { + private void instanceInfo(JSONWriter jw, Instance instance) throws IOException, Exception { jw.object(); jw.key("pid"); jw.value(instance.getPid()); @@ -263,7 +262,7 @@ public class InstancePlugin extends AbstractWebConsolePlugin { jw.endObject(); } - private void action(JSONWriter jw, String op, String title, String image) throws JSONException { + private void action(JSONWriter jw, String op, String title, String image) throws IOException { jw.object(); jw.key("op").value(op); jw.key("title").value(title); http://git-wip-us.apache.org/repos/asf/karaf/blob/3fce9dca/wrapper/NOTICE ---------------------------------------------------------------------- diff --git a/wrapper/NOTICE b/wrapper/NOTICE index b70f1f9..58155b9 100644 --- a/wrapper/NOTICE +++ b/wrapper/NOTICE @@ -60,10 +60,6 @@ This product uses software developed at SpringSource (http://www.springsource.org/). Licensed under the Apache License 2.0. -This product includes software from http://www.json.org. -Copyright (c) 2002 JSON.org - - III. License Summary - Apache License 2.0 - BSD License
