Re: Discover Karaf version

2011-07-07 Thread chicagozer
Hi, is the same possible with the console? I tried

karaf@root addcommand system (loadClass java.lang.System)
karaf@root system:getproperties

but the loadClass statement threw an exception. I have not been able to find
much information about using reflection in the console.

Thanks!!

Jim

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Discover-Karaf-version-tp3122975p3148153.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Discover Karaf version

2011-07-07 Thread Jean-Baptiste Onofré
Easier, just type:

karaf@root info
Karaf
  Karaf version   2.2.2

or with grepping:

karaf@root info | grep Karaf version

Regards
JB

On Thu 07/07/11 15:16 , chicagozer  wrote::

Hi, is the same possible with the console? I tried

karaf@root addcommand system (loadClass java.lang.System)
karaf@root system:getproperties

but the loadClass statement threw an exception. I have not been able to find
much information about using reflection in the console.

Thanks!!

Jim

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Discover-Karaf-version-tp3122975p3148153.html
Sent from the Karaf - User mailing list archive at Nabble.com.





Re: Discover Karaf version

2011-07-07 Thread chicagozer
Thanks Jean!

I found shell:info to be very helpful. I stumbled onto this thread trying to
find an elegant way to determine my karaf system properties. shell:info
prints some of the VM information, but it doesn't have enough detail to show
the system properties.

Do you think it's possible to do this through the console reflection api?
I'm certain I could just invoke a class and dump it out but the console
seems pretty powerful if I could understand it.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Discover-Karaf-version-tp3122975p3148503.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Discover Karaf version

2011-07-07 Thread Jean-Baptiste Onofré
I'm gonna check, but echo ${karaf.version} should work. If it's not the case, 
echo command should be updated to display system properties (at least with an 
argument, like echo -s ${karaf.version}).

Regards
JB



On Thu 07/07/11 17:11 , chicagozer  wrote::

Thanks Jean!

I found shell:info to be very helpful. I stumbled onto this thread trying to
find an elegant way to determine my karaf system properties. shell:info
prints some of the VM information, but it doesn't have enough detail to show
the system properties.

Do you think it's possible to do this through the console reflection api?
I'm certain I could just invoke a class and dump it out but the console
seems pretty powerful if I could understand it.

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Discover-Karaf-version-tp3122975p3148503.html
Sent from the Karaf - User mailing list archive at Nabble.com.





Discover Karaf version

2011-06-29 Thread Dan Tran
Hi is there a api/service to retrieve current karaf version?

Thanks

-Dan


Re: Discover Karaf version

2011-06-29 Thread Łukasz Dywicki
Hey Daniel,
You can get karaf version using system properties.

System.getProperty(karaf.version)

Regards,
Lukasz


 Hi is there a api/service to retrieve current karaf version?
 
 Thanks
 
 -Dan



Re: Discover Karaf version

2011-06-29 Thread Dan Tran
coolest

Thanks

-D

2011/6/29 Łukasz Dywicki l...@code-house.org:
 Hey Daniel,
 You can get karaf version using system properties.
 System.getProperty(karaf.version)
 Regards,
 Lukasz

 Hi is there a api/service to retrieve current karaf version?

 Thanks

 -Dan