ANT actual articles (1) (1)

zhaozj2021-02-16  56

ANT actual articles (1)

Amender: Huang Kai

E_mail: hk_sz@163.com

Forehead

Since the company is now undergoing the unit test case, the evacuation understands Ant and Junit technology. The following is the collection of the director of the people (considering the summary of my idea, maybe not fully express the original author I think, I will listen out all the articles of the article or books in the reference. Everyone has time to see the original text).

If you don't understand the ANT part of the parameters, please refer to the "Ant Theory" series or Ant comes with documents.

table of Contents

First, ANT use example

1.1 Copt Task via ANT submitted the recently updated file (according to the system time) file in the current directory to the specified directory

1.2 Develop Java programs with ANT

1.3 ANT combined with JUnit for software automatic test

1.4 ANT development and deployment web applications

1.5 ANT Packaging (JAR) application

1.6 ANT development EJB application

reference

First, ANT use example

1.1 Copt Task via ANT submitted the recently updated file (according to the system time) file in the current directory to the specified directory

1> Premise: Create two folders TEST1 and TEST2 under the D, and create build.xml files in Test1, as follows:

2> Enter the DOS command line status, run D: / Test1> Ant. Enter Test2 for inspection to see if the Test subdirectory has been established and the files in Test1 have been submitted in addition to Build.xml. If you run Ant again, you will find that it doesn't have any action prompt, because there is no new file to be submitted.

Note: Interested friends may wish to update one of the files and execute again, you will find Upload: new information will appear.

转载请注明原文地址:https://www.9cbs.com/read-28146.html

New Post(0)