Hi,
well the batch commandline isn't your friend here. you may need a second
(wrapper) batch file calling your run.bat in background by running:
"Start /B C:/tools/jboss-4.0.5.GA/bin/run.bat"

Actually, there is out of the box "daemon" option for gradles exec task
available (as far as I know).

regards,
René

Am Mi, 2.03.2011, 10:17, schrieb netextzhwa:
> Hi,
>
>
> I have been using gradle task exec to start a new command window and
> starts jboss in that one:
>
> task startJboss(dependsOn:'copyToJboss', type:Exec) { commandLine =
> ['cmd', '/K', 'start',
> 'C:/tools/jboss-4.0.5.GA/bin/run.bat']
> }
>
>
> But the gradle build hangs with this startJboss task.. I wander how it
> can be returned and move to next task to execute when jboss successfully
> started in the new opened command window?
>
> I want to do some web test when jboss starts and then shut it down after
> that.
>
> Many thanks.
>
>
> /wazh
>
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/How-to-move-to-next-task-when-gradle-
> starts-a-new-command-window-tp3406276p3406276.html Sent from the
> gradle-user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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


Reply via email to