[jboss-jira] [JBoss JIRA] (AS7-2952) Windows scripts are ending with "Press any key to continue ...", blocker for scripting with jboss-admin.bat

Rostislav Svoboda (Commented) (JIRA) jira-events at lists.jboss.org
Thu Dec 8 10:19:40 EST 2011


    [ https://issues.jboss.org/browse/AS7-2952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12649264#comment-12649264 ] 

Rostislav Svoboda commented on AS7-2952:
----------------------------------------

I know about NOPAUSE, it's mentioned in workaround.

I wanted to change the behavior for domain.bat, jboss-admin.bat and standalone.bat.
{code}
:END
if "x%NOPAUSE%" == "x" pause

:END_NO_PAUSE
{code}
TO
{code}
:END
if "x%PAUSE%" == "x" goto END_NO_PAUSE
pause

:END_NO_PAUSE
{code}

Now I'm thinking that I won't change these scripts at all. We just need to document NOPAUSE option for scripting usage. Double clicking is quite common in Windows :)
                
> Windows scripts are ending with "Press any key to continue ...", blocker for scripting with jboss-admin.bat
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AS7-2952
>                 URL: https://issues.jboss.org/browse/AS7-2952
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Scripts
>    Affects Versions: 7.1.0.Beta1
>            Reporter: Rostislav Svoboda
>            Assignee: Rostislav Svoboda
>             Fix For: 7.1.0.CR1
>
>
> Change default behavior of all .bat scripts  NOT  to print "Press any key to continue ..." and wait for user input
> Waiting for input is blocker for scripting, mainly for jboss-admin.bat.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list