On Tue, Sep 1, 2009 at 16:34, <[email protected]> wrote:
> Ok, I've created a holder JIRA here:
> https://issues.apache.org/jira/browse/FELIX-1547
> I can't assign myself to it, but I'm working on it at the moment.
>
Great, thx !
>
> One quick question:
> When I run a command standalone I see that it prints some funny
> characters on my ordinary Windows console, probably caused by Ansi
> code such as this (from AdminServiceImpl.java):
> println(Ansi.ansi().a("Creating new instance on port
> ").a(sshPort).a("
>
> at:").a(Ansi.Attribute.INTENSITY_BOLD).a(serviceMixBase).a(Ansi.Attribute.RESET).toString());
> Prints:
> Creating new instance on port 8106 at: ←[1mc:\somewhere...←[m
> What do I need to set up so that this doesn't print out these '←[m'
> strings? Normally when it's run within Felix it looks fine...
>
Right, you need to initialize ANSI support.
Try calling the following in your main():
org.fusesource.jansi.AnsiConsole.systemInstall();
>
> Thanks,
>
> David
>
> 2009/9/1 Guillaume Nodet <[email protected]>:
> > That sounds like a good idea!
> >
> > On Tuesday, September 1, 2009, <[email protected]> wrote:
> >> Hi all,
> >>
> >> Karaf has a mechanism to create new instances that can be invoked from
> >> within the Karaf shell, something like:
> >> admin:create my_instance
> >> admin:list
> >> admin:start
> >> etc
> >>
> >> I need to be able to do some of these things from the OS command line
> >> so I've started on external commands (e.g. admin-create.sh) that can
> >> perform these tasks as well (they mostly use the same code as used by
> >> the karaf shell).
> >>
> >> I was wondering would the Felix/Karaf community be interested in
> >> these? If so I'll start creating some Jiras and attach patches...
> >>
> >> Best regards,
> >>
> >> David Bosschaert
> >>
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Blog: http://gnodet.blogspot.com/
> > ------------------------
> > Open Source SOA
> > http://fusesource.com
> >
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com