On Wed, Jul 27, 2011 at 12:29 PM, Ian Nowland <[email protected]> wrote:

> I've got a buildr/jetty/jersey setup I've been playing around with (that
> took an annoyingly long time to get configured) which is working pretty
> much
> as I would like iht to, except for that the process seems to kick off on
> it's
> own, meaning I can't see console output and I have to kill -9 it whenever I
> want it to stop. I'm setting it off with a pretty typical:
>

Hmmm.  I can't reproduce this with a simple Java main program.  Output goes
to stdout (as expected) and Ctrl-C kills both the buildr and the java main
processes.

 task :run => :compile do
>        puts('Starting up with classpath ' + compile.dependencies.to_s + " "
> + [compile.target.to_s].to_s)
>        Java::Commands.java('launcher.
> MyServer', :classpath => compile.dependencies + [compile.target.to_s])
>  end
>

By the way, there is a standard run task since Buildr 1.4.5 that may save
you some keystrokes,

http://buildr.apache.org/more_stuff.html#run

alex

Reply via email to