Automatically build test backup and release it to project web (3) using ANT implementation project

zhaozj2021-02-17  75

Automatically build test backup and release it to project web (3) using ANT implementation project

SIMPLE = "no"

Tabsize = "4"

Marginsize = "2"

Header = "True"

Footer = "True"

ENCODING = "UTF-8"

Destination = "$ {code.dir}">

A new keyword Taskdef, this is what is it used? Listen to me slowly.

The ancients: "People have not finished people", Ant's developers are also like this. He can't foresee all users' needs, you can't know which Task needs the current user, it will have a task that users want to get and Ant default. So-support, the developers of Ant provide an excuse to let users customize their own task, then declare through TaskDef (for the idea of ​​this idea to hit the knock, with the soup commander a famous saying "high, really It is high "), so that Ant's unlimited expansion is achieved. Taskdef at least points to Name and ClassName. Name is used to specify the label name of this task's task, like Javadoc is the label name (Javadoc is a Task, ClassPath is the method name of the class to execute, about this extension TASK, I will In other articles, this is here, you have this impression in your heart (Java2HTML can be seen is a tool that converts Java code into an HTML document. I use my modification, you can support characters. Encoding, seeing the "Java2HTML Regent Reconstruction" series of "Java2html Reconstruction", I have developed Java2HTML graphical interface, and I will have another writing).

destdir = "$ {bin.dir}"

Encoding = "$ {project.encoding.info}"

Debug = "OFF"

Optimize = "on">

This is also very simple, it is a compilation.

This is a test

Target

. Perform all test code and generate the test results

xml

Documentation and this

xml

Document conversion

HTML

Documentation,

Junit

Also

Ant

Default support (

Java

The power of the open source community is really too powerful, pay tribute to the comrades of the open source community).

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

New Post(0)