You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/08/22 12:06:20 UTC

DO NOT REPLY [Bug 11922] New: - Starting Tomcat using exec hangs build script

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11922>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

Starting Tomcat using exec hangs build script

           Summary: Starting Tomcat using exec hangs build script
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: Andrew.Premdas@teleca.com


Build script fragment ...

<target name="start">
        <property environment="env"/>
        <property name="tomcat.home" value="${env.TOMCAT_HOME}" />
        <exec executable="catalina.bat" dir="${tomcat.home}/bin/">         
            <arg value="start" />           
        </exec>
        
        <echo> Tomcat should now start </echo>
</target>

When ant executes catalina.bat tomcat starts in a new window and is working 
correctly. However the build script never gets to the <echo>. I have to press 
Ctrl-C to terminate the build script. 

Running catalina.bat from a command prompt works fine and control is returned 
to the command prompt almost immediately. I have also tried using startup.bat 
and starting tomcat by calling java.exe directly but this doesn't work see bug 
11920.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>