ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiaomin <>
Subject How to start tomcat with ant in linux OS
Date Sat, 27 Apr 2013 07:12:24 GMT
  Hi,dear friends,I hve a problem now and need your warm help.
  I try to start Tomcat use ant in Linux OS,but I failed.Then I attempt to
find solvent on the Internet,but got nothing. 
follow is two methods(build.xml files) that I have used,but none of them are
1. <?xml version="1.0" encoding="GBK"?> 
<project name="startup_tomcat">
<property name="tomcat.home" value="/usr/local/Ehr_linux_2.7.2"/>
<target name="start-tomcat" description="tomcat starting.....">    
        <exec executable="${tomcat.home}/bin/" spawn="true"
        <env key="CATALINA_HOME" value="${tomcat.home}"/>    
        <arg line="-c start ${tomcat.home}/bin/"/>    

2.<?xml version="1.0" encoding="GBK"?> 
<project name="startup_tomcat">
<property name="tomcat.home" value="/usr/local/Ehr_linux_2.7.2/bin"/>
<target name="startup">
<exec dir="${tomcat.home}" executable="">
<arg line="-c start ${tomcat.home}/">

When I run above build.xml files,it prompt : 
"Buildfile: /usr/local/rhio/apache-ant-1.9.0/case/build.xml 
Total time: 0 seconds" 
but Tomcat haven't been started,I don't know how to do it,can you help me.
Thank you very much! 

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message