1. Ant Introduction
2. Deploy web application demo with ant
3. Expansion issues. If JavaCodeForm to deploy a tomcat ApplicationProgram
1. Ant Introduction
Ant is a Java build tool, similar to the Make tool on UNIX, Official Website: http://ant.apache.org/, logo is a small ant.
2. Deploy web application demo with ant
/Files/xuqiang/j2se/ant-sample.rar
Possible error records and precautions are as follows:
1. taskdef class org. Apache. Catalina. Ant. deploytask cannot be found: copy the catalina-ant.jar file under the Tomcat lib directory to the ant lib directory ..
2. Note the manager. url Syntax: manager. url = http: // localhost: 9090/Manager
3. Expansion problems: how to use Java code instead of a tomcat Application
By viewing the Tomcat output log, we can see that it is achieved through hostconfig (http://tomcat.apache.org/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/startup/HostConfig.html#deployWARs (Java. Io. File, % 20java. Lang. String.