ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11922] New: - Starting Tomcat using exec hangs build script
Date Thu, 22 Aug 2002 10:06:20 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message