简体   繁体   中英

Search for a bundle by name in Apache Felix gogo shell

I'd like to search for a bundle by name in OSGI. Right now when I do

telnet localhost 11311 

lb

Then it gives me a list of all bundles registered with the Liferay framework. Like this:

 502|Active     |   10|Liferay Layout Taglib (2.0.8)
 503|Active     |   10|Liferay Layout Type Controller Control Panel (2.0.2)
 504|Active     |   10|Liferay Layout Type Controller Full Page Application 
 (2.0.3)
 505|Active     |   10|Liferay Layout Type Controller Node (2.0.2)
 ..............................<something like this>

I had to scroll all the way from top to bottom (sometimes my bundles are shown all the way top). Is there a way to search a bundle by name on the command line.

Sure. For example:

lb Layout

or

lb | grep "Layout Type"

尝试:

la -s | grep "<bundle symbolic name>"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM