You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Christian Schneider <ch...@die-schneider.net> on 2013/03/12 10:03:24 UTC
Backwards compatibility of commands in karaf 3
Hi all,
when testing my tutorial on karaf 3 I had the (expected) issue that the
commands I described in the readme do not work on karaf 3.
We discussed that it does not make sesne to fully support both command
syntaxes as the many completion proposals will confuse people.
Still it would be nice if the most important old commands still worked.
So I wonder if it would be possible to have the old command syntax work
in karaf 3 but not show it in completion and help. So people
can still cut & paste the commands from a readme but else will only see
the new commands.
Another nice feature would be to let people run a command in the old
syntax but replace it with the new syntax before executing. So people
would be automatically introduced to the new syntax. The history would
then show the commands as if they were entered in new syntax.
Does that make sense?
Christian
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
Re: Backwards compatibility of commands in karaf 3
Posted by Guillaume Nodet <gn...@gmail.com>.
I think there's a script in karaf 3 that can be launched to add back
compatible commands.
On Tue, Mar 12, 2013 at 10:03 AM, Christian Schneider <
chris@die-schneider.net> wrote:
> Hi all,
>
> when testing my tutorial on karaf 3 I had the (expected) issue that the
> commands I described in the readme do not work on karaf 3.
>
> We discussed that it does not make sesne to fully support both command
> syntaxes as the many completion proposals will confuse people.
> Still it would be nice if the most important old commands still worked.
>
> So I wonder if it would be possible to have the old command syntax work in
> karaf 3 but not show it in completion and help. So people
> can still cut & paste the commands from a readme but else will only see
> the new commands.
>
> Another nice feature would be to let people run a command in the old
> syntax but replace it with the new syntax before executing. So people
> would be automatically introduced to the new syntax. The history would
> then show the commands as if they were entered in new syntax.
>
> Does that make sense?
>
> Christian
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>
--
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration
Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/
Re: Backwards compatibility of commands in karaf 3
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
I second JB on this, it's much better to get rid of old dependencies.
And it's a Major Release version we're talking of.
So -1 for extra "backward" compatible things.
regards, Achim
2013/3/12 Jean-Baptiste Onofré <jb...@nanthrax.net>
> Hi Christian,
>
> for transition purpose, a simple solution would be to provide aliases to
> the old commands (it's what I did at the beginning but we decided to remove
> these aliases).
>
> I would prefer to update the README files from other projects with
> something like: "For Karaf 2.x ..., For Karaf 3.x ..." more than
> implementing a temporary solution directly in Karaf.
>
> Regards
> JB
>
>
> On 03/12/2013 10:03 AM, Christian Schneider wrote:
>
>> Hi all,
>>
>> when testing my tutorial on karaf 3 I had the (expected) issue that the
>> commands I described in the readme do not work on karaf 3.
>>
>> We discussed that it does not make sesne to fully support both command
>> syntaxes as the many completion proposals will confuse people.
>> Still it would be nice if the most important old commands still worked.
>>
>> So I wonder if it would be possible to have the old command syntax work
>> in karaf 3 but not show it in completion and help. So people
>> can still cut & paste the commands from a readme but else will only see
>> the new commands.
>>
>> Another nice feature would be to let people run a command in the old
>> syntax but replace it with the new syntax before executing. So people
>> would be automatically introduced to the new syntax. The history would
>> then show the commands as if they were entered in new syntax.
>>
>> Does that make sense?
>>
>> Christian
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
OPS4J Pax for Vaadin <http://team.ops4j.org/wiki/display/PAXVAADIN/Home>
Commiter & Project Lead
blog <http://notizblog.nierbeck.de/>
Re: Backwards compatibility of commands in karaf 3
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Christian,
for transition purpose, a simple solution would be to provide aliases to
the old commands (it's what I did at the beginning but we decided to
remove these aliases).
I would prefer to update the README files from other projects with
something like: "For Karaf 2.x ..., For Karaf 3.x ..." more than
implementing a temporary solution directly in Karaf.
Regards
JB
On 03/12/2013 10:03 AM, Christian Schneider wrote:
> Hi all,
>
> when testing my tutorial on karaf 3 I had the (expected) issue that the
> commands I described in the readme do not work on karaf 3.
>
> We discussed that it does not make sesne to fully support both command
> syntaxes as the many completion proposals will confuse people.
> Still it would be nice if the most important old commands still worked.
>
> So I wonder if it would be possible to have the old command syntax work
> in karaf 3 but not show it in completion and help. So people
> can still cut & paste the commands from a readme but else will only see
> the new commands.
>
> Another nice feature would be to let people run a command in the old
> syntax but replace it with the new syntax before executing. So people
> would be automatically introduced to the new syntax. The history would
> then show the commands as if they were entered in new syntax.
>
> Does that make sense?
>
> Christian
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com