Java Tool For Extreme Programming Reading Notes (4)

xiaoxiao2021-03-06  16

Chapter 4 Using Ant for continuous integration This chapter is an underlying introduction to Ant, including 1.ant build files build.xml2. Project 3. Target Top-Level Targets in Top-Level Targets is named: Test - Run JUnit Test Clean-Clear Output Directory Deploy- Deploy Jars, Wars, etc. to the execution environment Publish- output source code and binary files to the publishing site (IIS, HTML? I don't know) Fetch - get the latest source code DOCS / JAVADOCS-output document file from CVS All - Perform all over the Clean, Fetch, Build, Test, Docs, and Deploys Main-Default build procedures (often build or build & test) Internal Targets are named: init- Initialization Properties Execute other initialization tasks, read Initial file init-debug- Initial Try Properties Init-Release-Initialization Publishing Property Compile-Real Compile LINK / JAR-Establish JAR File or Other Equity Files Staging - Pre-Deployment and Test 4. Conditional Target ant -build.xml build4.xml -Dproduction = true5. filesets and path settings

6. Filter 7. Nested build file = "true" /> = "pTPROPERTY" /> = "outputdir" value = "outputdir" value = "/ tmp" />

Overall, Ant is a powerful automation building tool, and the work after the code is written can be handed over to Ant. This makes Nightly Build possible, use Ant, and even generate HTML after running the test code, then send Email to developers so that developers can see the cause of Build failure next morning, such developers The second day, I quickly know what the first thing is today, fast entering a day eight hours of work. This is similar to some views in the "Test Drive Development" (Chinese version) of Kent Beck, that is, after 8 hours of work, don't worry overtime to make the work of your hand go home, but where is it. Where can I enter the work state in this next day, not from my head, what is done yesterday, what should I start today. (At night, the computer is not turned off, you can only turn off the screen, lock the keyboard, or set the computer to sleep, and make a large extent, the process of "entering the state" in the next day is shorter, I don't know if there is No IDE can provide convenience when I wrote an Ant.xml file, it is best to graphically, don't have to go to the boring text editor. This previous NetBeans's Properties file editor is not bad, you can edit the Properties files in several different languages ​​at the same time.

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

New Post(0)