karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Pieber (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-554) Add karaf version in system properties and display in shell:info command output
Date Sat, 09 Apr 2011 09:52:06 GMT

    [ https://issues.apache.org/jira/browse/KARAF-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017823#comment-13017823
] 

Andreas Pieber commented on KARAF-554:
--------------------------------------

mhm, just give this a look...

1) if we have a karaf.version sys property adding it to shell:info is not more than adding


{code}
printValue("Karaf version", maxNameLen, System.getProperty("karaf.version"));
{code}

The question is rather: where do we want to set the version. I don't think we want to have
it set in the bat-files. Rather we can (A) either define it in systems.properties (I think
this should be the easiest version). (B) Alternatively we can retrieve it from the bundles
and set it AFTER startup. (C) Packing a config file directly into main (which could be pre-processed
by maven and read by main) is another option.

I personally would like to go for (A) or (C). WDYT?

> Add karaf version in system properties and display in shell:info command output
> -------------------------------------------------------------------------------
>
>                 Key: KARAF-554
>                 URL: https://issues.apache.org/jira/browse/KARAF-554
>             Project: Karaf
>          Issue Type: Improvement
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 2.2.1, 3.0.0
>
>
> shell:info command doesn't display the current running version of Karaf.
> It could be helpful in some user scripts to define an action depending of the Karaf instance
(as we have uname -a under Unix :)).
> To be used programmatically, Karaf version should also be stored in system properties
(as we have karaf.home, karaf.base, karaf.data and karaf.instances properties).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message