Grails command line --yes or assume-yes

View: New views
5 Messages — Rating Filter:   Alert me  

Grails command line --yes or assume-yes

by Gavin-15 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gents,

Is there any current way to tell grails command line to assume yes?
Searching turned up nothing for me.

This would be handy for scripting automated builds: 'grails war --yes' etc.
Otherwise when a question is asked like "do you want to upgrade this
plugin" the build freezes and writes a very big log file.

Cheers
Gavin

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Grails command line --yes or assume-yes

by Chris Broadfoot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

perhaps what you need is

yes | grails war

though I'm not sure on the specifics of the input needed by grails war

2009/10/27 Gavin <gavin@...>:

> Hi Gents,
>
> Is there any current way to tell grails command line to assume yes?
> Searching turned up nothing for me.
>
> This would be handy for scripting automated builds: 'grails war --yes' etc.
> Otherwise when a question is asked like "do you want to upgrade this
> plugin" the build freezes and writes a very big log file.
>
> Cheers
> Gavin
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Grails command line --yes or assume-yes

by Sai Prasad Matam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Gavin,

Try the --non-interactive  flag on the command line.

regards,
Sai Matam.


From: Gavin <gavin@...>
To: dev@...
Sent: Mon, October 26, 2009 5:41:18 PM
Subject: [grails-dev] Grails command line --yes or assume-yes

Hi Gents,

Is there any current way to tell grails command line to assume yes?
Searching turned up nothing for me.

This would be handy for scripting automated builds: 'grails war --yes' etc.
Otherwise when a question is asked like "do you want to upgrade this
plugin" the build freezes and writes a very big log file.

Cheers
Gavin

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Grails command line --yes or assume-yes

by Gavin-15 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Thanks Sai and Chris,

Both suggested options work and I see --non-interactive is indeed mentioned in Grails-1.1 release notes (now that I know what to search for).
Can't find this documented in the user guide though, is it worth a JIRA or is this thread and what's already on the web enough?

Cheers
Gavin

Sai Prasad Matam wrote:
Gavin,

Try the --non-interactive  flag on the command line.

regards,
Sai Matam.


From: Gavin gavin@...
To: dev@...
Sent: Mon, October 26, 2009 5:41:18 PM
Subject: [grails-dev] Grails command line --yes or assume-yes

Hi Gents,

Is there any current way to tell grails command line to assume yes?
Searching turned up nothing for me.

This would be handy for scripting automated builds: 'grails war --yes' etc.
Otherwise when a question is asked like "do you want to upgrade this
plugin" the build freezes and writes a very big log file.

Cheers
Gavin

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Grails command line --yes or assume-yes

by Peter Ledbrook :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Both suggested options work and I see --non-interactive is indeed mentioned
> in Grails-1.1 release notes (now that I know what to search for).
> Can't find this documented in the user guide though, is it worth a JIRA or
> is this thread and what's already on the web enough?

A JIRA is more reliable if you give it a fix version.

Cheers,

Peter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email