You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Leandro Saad <le...@gmail.com> on 2007/02/08 00:08:32 UTC
Input from console
Hi all. I´m trying to create my first Maven plugin. This plugin is intended
for Guara users to bootstrap the aplication, scaffonding, etc.
How can I read input from console from Maven? I couldn´t find any references
on the docs/google.
Cheers.
--
Leandro Rodrigo Saad Cruz
software developer - certified scrum master
:: scrum.com.br
:: db.apache.org/ojb
:: guara-framework.sf.net
:: xingu.sf.net
Re: Input from console
Posted by Raphaël Piéroni <ra...@gmail.com>.
Hi Leandro,
If you are trying to act interractivly with the user, just import a Prompter
(from plexus-interactivity)
/**
* @component
*/
Prompter prompter;
in your mojo.
Hope this helps.
Raphaël
2007/2/8, Maria Odea Ching <oc...@exist.com>:
>
> Hi Leandro,
>
> Are you talking about passing input parameters from the command line
> when you eexcute your plugin?
> If this is the case, you can put the @parameter tag in your mojo:
>
> /**
> * @parameter expression="${parameterName}" default-value="false"
> */
> private boolean parameterName;
>
> To set the value from command line, use the -DparameterName=<put the
> value here>
>
> Hope this helps! :-)
>
> Thanks,
> Deng
>
> Leandro Saad wrote:
>
> > Hi all. I´m trying to create my first Maven plugin. This plugin is
> > intended
> > for Guara users to bootstrap the aplication, scaffonding, etc.
> > How can I read input from console from Maven? I couldn´t find any
> > references
> > on the docs/google.
> >
> > Cheers.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Input from console
Posted by Maria Odea Ching <oc...@exist.com>.
Hi Leandro,
Are you talking about passing input parameters from the command line
when you eexcute your plugin?
If this is the case, you can put the @parameter tag in your mojo:
/**
* @parameter expression="${parameterName}" default-value="false"
*/
private boolean parameterName;
To set the value from command line, use the -DparameterName=<put the
value here>
Hope this helps! :-)
Thanks,
Deng
Leandro Saad wrote:
> Hi all. I´m trying to create my first Maven plugin. This plugin is
> intended
> for Guara users to bootstrap the aplication, scaffonding, etc.
> How can I read input from console from Maven? I couldn´t find any
> references
> on the docs/google.
>
> Cheers.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org