I thought they meant in the <exec> call, but that's not possible as inputstring cannot be used in a fork process. Maybe I'll give the other a go (tomorrow). Note though, that on Windows, stdout and stderr cannot be redirected together from the CMD shell. If I'm wrong, let me know...
-----Original Message----- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: 06 June 2006 15:09 To: Ant Users List Subject: RE: calling maven2 files from ant When it says in that first link to make sure that the error and output are redirected properly, they're talking about within the bat file NOT in the exec task params, correct? Once forked, sysout and errout are no longer available to ant I thought. -----Original Message----- From: Master, Tariq (Abbeywood) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 10:03 AM To: Ant Users List Subject: RE: calling maven2 files from ant EJ, my workaround was to use either a <java> forked task instead of <exec> to call startWeblogic.cmd, or a service. -----Original Message----- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: 06 June 2006 14:59 To: Ant Users List Subject: RE: calling maven2 files from ant I've used the scripts talked about in the three postings (and it's similar to what we're doing - a bat file eventually calls a shell script, etc). But it still hangs. Everything is being redirected properly. -----Original Message----- From: Master, Tariq (Abbeywood) [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 06, 2006 9:53 AM To: Ant Users List Subject: RE: calling maven2 files from ant Steve, It's where CruiseControl hangs by waiting for the CMD shell window to be closed. It's basically waiting for any forked exec call in Ant to finish/close as far as I can gather. Everything works fine using Ant. But it's when a process (CC or cygwin apparantly) calls ant that problems occur. More information: [1] http://sourceforge.net/mailarchive/message.php?msg_id=13111442 [2] http://confluence.public.thoughtworks.org/display/CC/StartingAnAsynchron ousProcessFromExecTask [3] http://confluence.public.thoughtworks.org/display/CC/Starting+a+server+w ith+cc My email to the Cruise mailing list: -- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Master, Tariq (Abbeywood) Sent: 26 May 2006 18:47 To: [EMAIL PROTECTED] Subject: [Cruisecontrol-user] Hang after build successful due to a forkedcmd.exe window open My cruise (2.4.1) calls my ant (1.6.5) scripts on WinXP. My ant script has a target to start up weblogic using the <exec> spawned ant task. After my tests run, it shuts down weblogic using the <java> forked command. These work fine as part of a full ant build. However, when cruise runs, it will hang after the "BUILD SUCCESSFUL Total time: 1 minute 19 seconds" message, UNTIL the weblogic cmd window is closed. Once I manually close the window, my cruise debug session immediately dumps/outputs to the console, lots of: [cc]May-26 18:38:16 yElementFilter- Skipping empty <task>-tag ...followed by the build result event success message. Does anyone know what causes cruise to hang? How does it detect a console window open (it was created in a forked process)? How to resolve? Any suggestions or tips appreciated. -----Original Message----- From: Steve Loughran [mailto:[EMAIL PROTECTED] Sent: 06 June 2006 14:39 To: Ant Users List Subject: Re: calling maven2 files from ant EJ Ciramella wrote: > Considering that everything will ultimately be used via CruiseControl AND how little success I've had with the exec task and CC, I was hoping for some optional tasks. > I've never encountered problems with CC and exec. what kind of problems? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]