Re: System.in and release preparation goals

2007-05-11 Thread Grant Ingersoll
I think the main issue is it is running in a forked JVM, but I am not sure, since I haven't gotten to the low-level details. It runs fine if I call the goal from the command line (and not as part of a preparationGoal during release) My guess is that Plexus is somehow redirecting the owner

Re: System.in and release preparation goals

2007-05-11 Thread Grant Ingersoll
So, is this a bug? Or just lack of documentation on how it is done? -Grant On May 11, 2007, at 11:16 AM, Max Bowsher wrote: Grant Ingersoll wrote: From what I can tell, it uses the Prompter interface from the Plexus interactivity component, but how I would initialize it is beyond me. I'm gue

Re: System.in and release preparation goals

2007-05-11 Thread Max Bowsher
Grant Ingersoll wrote: > From what I can tell, it uses the Prompter interface from the Plexus > interactivity component, but how I would initialize it is beyond me. > I'm guessing it uses the IoC stuff, but I am not familiar w/ the setup > of all of that. Any pointers people have would be greatly

Re: System.in and release preparation goals

2007-05-11 Thread Daniel Kulp
On Thursday 10 May 2007 16:35, Wayne Fay wrote: > In M2, things like this are generally either passed as parameters > (-D...) or simply specified as configurations for the plugin in the > pom.xml configuration. > > Actually, I can't think of a single M2 plugin that prompts the user > for input whil

Re: System.in and release preparation goals

2007-05-11 Thread Grant Ingersoll
Also, by the looks of it, if it is using the DefaultInputHandler, etc. all it is doing is wrapping System.in much like I am, so I am not sure what the best way to go is. I really don't think what I am doing is appropriately handled by setting a sys. property, as those are likely forgotten.

Re: System.in and release preparation goals

2007-05-11 Thread Grant Ingersoll
From what I can tell, it uses the Prompter interface from the Plexus interactivity component, but how I would initialize it is beyond me. I'm guessing it uses the IoC stuff, but I am not familiar w/ the setup of all of that. Any pointers people have would be greatly appreciated. -Grant

Re: System.in and release preparation goals

2007-05-10 Thread Wayne Fay
Sorry about that, and good point, I had forgotten about release plugin. In that case, I would probably check out the release mojo code and follow their approach for your own plugin. But you already knew that. ;-) Wayne On 5/10/07, Grant Ingersoll <[EMAIL PROTECTED]> wrote: On May 10, 2007, at

Re: System.in and release preparation goals

2007-05-10 Thread Grant Ingersoll
On May 10, 2007, at 4:35 PM, Wayne Fay wrote: In M2, things like this are generally either passed as parameters (-D...) or simply specified as configurations for the plugin in the pom.xml configuration. Actually, I can't think of a single M2 plugin that prompts the user for input while process

Re: System.in and release preparation goals

2007-05-10 Thread Wayne Fay
In M2, things like this are generally either passed as parameters (-D...) or simply specified as configurations for the plugin in the pom.xml configuration. Actually, I can't think of a single M2 plugin that prompts the user for input while processing etc. There is probably a good reason for this

System.in and release preparation goals

2007-05-10 Thread Grant Ingersoll
Hi, Long time M1 user upgrading to M2... I have a Mojo that I have written that asks for user input concerning it's operation (I use a BufferedReader wrapping System.in). When I run the goal standalone, everything works fine. However, when I run the goal as preparationGoal of the maven-r