You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by cs...@apache.org on 2015/08/10 09:13:32 UTC
karaf git commit: Adding alias to get a service object
Repository: karaf
Updated Branches:
refs/heads/master e7c71b0cf -> cdf30c662
Adding alias to get a service object
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/cdf30c66
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/cdf30c66
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/cdf30c66
Branch: refs/heads/master
Commit: cdf30c662e922150b675222b6a3a0e8be5a67690
Parents: e7c71b0
Author: Christian Schneider <ch...@die-schneider.net>
Authored: Fri Aug 7 17:18:29 2015 +0200
Committer: Christian Schneider <ch...@die-schneider.net>
Committed: Mon Aug 10 09:12:49 2015 +0200
----------------------------------------------------------------------
.../base/src/main/resources/resources/etc/shell.init.script | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf/blob/cdf30c66/assemblies/features/base/src/main/resources/resources/etc/shell.init.script
----------------------------------------------------------------------
diff --git a/assemblies/features/base/src/main/resources/resources/etc/shell.init.script b/assemblies/features/base/src/main/resources/resources/etc/shell.init.script
index f576559..35afc12 100644
--- a/assemblies/features/base/src/main/resources/resources/etc/shell.init.script
+++ b/assemblies/features/base/src/main/resources/resources/etc/shell.init.script
@@ -28,4 +28,5 @@ cl = { config:list "(service.pid=$args)" } ;
halt = { system:shutdown -h -f $args } ;
help = { *:help $args | more } ;
man = { help $args } ;
-log:list = { log:get ALL } ;
\ No newline at end of file
+log:list = { log:get ALL } ;
+service:get = { $.context getService ($.context getServiceReference $args) };