gogo creates pipelines by connecting System.out to System.in
The ThreadIO classes maintain thread-local views of System.out and System.in.

By using session.getKeyboard(), you are breaking the pipeline and reading input 
that should be consumed by the head of the pipeline.

Try simply reading and writing System.in and System.out and it should all work 
fine.

—
Derek


On 29 Oct 2014, at 16:33, Jan Winter <jan.winter.leip...@gmail.com> wrote:

> What do you mean "scheduled before / after" ? 
> 
> I mean that the 'consumer()' methode will be called before
> 'longrunningproducer()' methode
> 
> -    commandline: 'my:longrunningproducer | ... | my:consumer'
> 
> Both methods are registered as 'gogo commands'.
> 
> Both methods have simular interface 'public List<String> command(Command
> session, String...args)' 
> 
> It looks that the output of previous one is NOT the input of second one.
> - in my case
> - I use 'session.getKeyboard()' to get input 
> 
> 
> 
> --
> View this message in context: 
> http://apache-felix.18485.x6.nabble.com/gogo-pipe-command-execution-is-disordered-tp5010344p5010346.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> For additional commands, e-mail: users-h...@felix.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
For additional commands, e-mail: users-h...@felix.apache.org

Reply via email to