First try Java ant

Source: Internet
Author: User

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.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.