Use Ant to make you a happy program (3)

xiaoxiao2021-03-06  114

[Home, Previous, Next]

3 Project personalized configuration

Summary: Introduction Build.xml, build.properties These two files are needed for each project, and some personalized configurations of each item are specifically described.

Build.xml

Copyright 2004 CAMRY.WU@gmail.com

This Program Is Free Software; You Can Redistribute IT and / or Modify

It Under The Terms of The GNU General Public License As Published by

The Free Software Foundation; Either Version 2 of the license, OR

ANY LATER VERSION.

This Program is Distributed in the Hope That IT Will Be Useful,

But without Any Warranty; WITHOUT EVEN THE IMPLIED WARRANTY OF

Merchantability or fitness for a particular purpose. See the

GNU General Public License for more details.

You Should Have Received A Copy of The GNU General Public License

Along with this program; if not, Write to the Free Software

Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

->

If the project is going to cooperate with Tomcat, then load Tomcat configuration

->

Depends = "common_prepare" description = "preted build directory">

Depends = "init" description = "fetch src from cvs or noidher location">

Depends = "init" description = "Project-Level Prepare Phase">

If the project is going to cooperate with Tomcat, then call Tomcat's task

->

If the project is going to cooperate with Tomcat, then call Tomcat's task

->

Build Application System ->

Build.properties # Initializing the environment

# # c 文件 文件 位置, if you want to write this under Windows: D: / Work / Common

Path.common = / Home / Camry / Work / Common

# Project Related Information

Component.name = app

Component.package = com.Vitular.app

Component.title = app

Component.version = 0.1a

# CVS root location

Cvsroot =: pserver: Camry@x.x.x.x: / usr / cvsroot

# ftp setting

# ftp.server = x.x.x.x # Remote server location

# ftp.user = CAMRY # User name

# ftp.pass = ***** # User password

# remote.dir = / opt / release # Remote publishing directory location

[Home, Previous, Next]

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

New Post(0)