ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 3021] New: - Impossible to run non-blocking external calls on Windows
Date Tue, 07 Aug 2001 17:55:18 GMT
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3021

*** shadow/3021	Tue Aug  7 10:55:18 2001
--- shadow/3021.tmp.20070	Tue Aug  7 10:55:18 2001
***************
*** 0 ****
--- 1,45 ----
+ +============================================================================+
+ | Impossible to run non-blocking external calls on Windows                   |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3021                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.3                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Blocker                  OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Core tasks              |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: michael.lee@consignia.com                                    |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I'm trying to write an Ant build file that will stop and start ATG Dynamo.  ATG 
+ provide unix and windows scripts that can be used to start and stop the server, 
+ and I naturally thought of using the exec task.  It's no problem to get the 
+ <exec> task working on windows, but no matter what I do, I cannot find a way to 
+ get ant to return control to the build script (ie. complete the build script) 
+ after it has finished the exec call (which it won't do until ATG is stopped 
+ manually).
+ 
+ I tried a variety of configurations of execution attributes and arg elements, 
+ but it either returns nothing (and leaves the file specified in the output 
+ attribute blank) or more annoyingly it executs the task and blocks waiting for 
+ the task to finish.
+ 
+ I've tried the following approachs, and it always blocks
+ 1) Executing the dos "start" command and passing it the name of the batch file 
+ to start - RESULT: blocks
+ 2) Executing the dos "cmd" command, passing it a parameter of "/ c" and calling 
+ the batch file - RESULT: blocks
+ 3) Same as 2, except I called a new batch file, which called "start <original 
+ batch file>" - RESULT: nothing
+ 4) I created a new Ant build file called start.xml.  I used the Java task to 
+ create a fork and call a second instance of Ant on this build file - RESULT: 
+ When I run the output specified in the Execute.Commandlauncher debug trace 
+ ("java org.apache.tools.ant.Main -buildfile c:\dev\scripts\build\start.xml") 
+ from the dos command line it works correctly.  When it runs from the original 
+ ant build file it does nothing.
+ 
+ I'm not sure whether this is by design, but there doesn't appear to be any way 
+ whatsoever to get it to run an external task without blocking.
\ No newline at end of file

Mime
View raw message