Summary: Directory Structure Division
There have been countless articles introduced Ant, I will no longer introduce the installation of Ant, configured.
Every friend using Ant has a set of organizations, now I wrote my way.
For your reference, you will be reluctant to forget.
1. Directory structure division
Suppose you have a work directory as: / home / camry / work, here is referred to as Work
In order to adapt to multiple items, I have configured a basic configuration file to put in Work / Common
Next. The directory structure is like this:
Work / Common /
Build_common.xml # This file contains basic build operations
Common.xml # This file is configured for build_common.xml.
It is basically no change.
Build_tomcat.xml # This file contains basic operations with Tomcat cooperation.
Tomcat.xml # This file is configured for build_tomcat.xml.
It is basically only necessary to configure it.
Build.xml # This file is the build configuration that every item is required.
But it is basically no need to change.
Build.properties # This file is configured for build.xml,
Related to specific projects.
USAGE.TXT # This file illustrates the various operations in the build process.
LIB / # This directory is placed some common JAR packages free to repeat.
Checkstyle-all-3.4.jar # is used for code check
HttpUnit.jar # for HTTP unit testing
JUnit.jar # for unit testing
Servlet-Api.jar # is used to write servlet related files
Template / # This directory is a set project template, a project starts
The data of this directory will be copied to the project directory so that
Use directly.
BIN / # This directory places an executable
Build / # This directory is placed the auxiliary file required to build
Checkstyle_checks.xml # This file is the configuration file of Checkstyle
Java.Header # This file is also a checkstyle configuration file.
Used to explain the head structure of your Java file
Dist / # This directory places the target file
Classes / # Class files generated after compiling this
LIB / # JAR file generated after packaging this
LIB / # This directory placement project-related JAR file
SRC / # This directory placement source code
Build.xml # This file is a configuration file for working with CVS.
Main / # This directory is placed in the main source code
Test / # this directory placement test code
All profiles will be described in detail in subsequent articles.