Return-Path:
Delivered-To: apmail-jakarta-ant-dev-archive@apache.org
Received: (qmail 23796 invoked from network); 6 Jun 2002 12:54:27 -0000
Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131)
by daedalus.apache.org with SMTP; 6 Jun 2002 12:54:27 -0000
Received: (qmail 3589 invoked by uid 97); 6 Jun 2002 12:53:48 -0000
Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org
Received: (qmail 3356 invoked by uid 97); 6 Jun 2002 12:53:46 -0000
Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm
Precedence: bulk
List-Unsubscribe:
List-Subscribe:
List-Help:
List-Post:
List-Id: "Ant Developers List"
Reply-To: "Ant Developers List"
Delivered-To: mailing list ant-dev@jakarta.apache.org
Received: (qmail 3323 invoked by uid 97); 6 Jun 2002 12:53:46 -0000
X-Antivirus: nagoya (v4198 created Apr 24 2002)
Date: 6 Jun 2002 12:53:40 -0000
Message-ID: <20020606125340.74650.qmail@icarus.apache.org>
From: adammurdoch@apache.org
To: jakarta-ant-myrmidon-cvs@apache.org
Subject: cvs commit: jakarta-ant-myrmidon/site/src/xdocs buildfile.xml
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
adammurdoch 2002/06/06 05:53:40
Modified: site/src/xdocs buildfile.xml
Log:
Added more examples, removed the hard-coded list of tasks.
Revision Changes Path
1.5 +168 -165 jakarta-ant-myrmidon/site/src/xdocs/buildfile.xml
Index: buildfile.xml
===================================================================
RCS file: /home/cvs/jakarta-ant-myrmidon/site/src/xdocs/buildfile.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- buildfile.xml 2 Jun 2002 14:05:55 -0000 1.4
+++ buildfile.xml 6 Jun 2002 12:53:40 -0000 1.5
@@ -9,75 +9,120 @@
-
-You define a build process using a project. A project
-describes what needs to be done to perform the build. You define a project
-by breaking it up into several smaller steps, or targets.
-Targets represent the main stages of your build. For example, a project might
-have a target that compiles the Java source files, another target that runs unit
-tests, and a third target that assembles a distribution.
-
+
+ You define a build process using a project file. A
+ project file is an XML file, which describes what needs to be done to
+ perform the build. A project is usually made up of several stages,
+ or targets. For example, a project might be made up
+ of a target that compiles the Java source files, another target that runs
+ unit tests, and a third target that assembles a distribution.
+
-
-A target may depend on other targets. For example, a target that
-builds a distribution, cannot do its work until the source files have been
-compiled. Myrmidon makes sure that targets are executed in the correct order,
-so that a target is executed before the targets that depend on it.
-
+
+ A target may depend on other targets. For example, a target that
+ builds a distribution, cannot do its work until the source files have been
+ compiled. Myrmidon makes sure that targets are executed in the correct order,
+ so that a target is executed before the targets that depend on it. Target
+ are only executed once.
+
-
-You define a target using basic units of work called tasks.
-Tasks can range from the most simple operations, such as copying a file, or
-setting a property, up to complex operations like compiling Java source, or
-running a test suite.
-
+
+ You define a target using basic units of work called tasks.
+ Tasks can range from simple operations, such as copying a file, or setting a
+ property, up to complex operations like compiling Java source, or running a
+ test suite.
+
+
+
+ Let's look at a simple example. The project below contains two targets,
+ called compile and build-jar. The compile
+ target executes the javac task, which, as you probably
+ guessed, compiles up a bunch of Java source files.
+ The build-jar target depends on the compile target,
+ which means that it will only ever get executed after the
+ compile target has been executed. The build-jar
+ target executes the jar task, which assembles the compiled
+ class files into a Jar file.
+
+
+
-
-A project file is an XML file that defines a single project. The root element
-of a project file must be a <project> element.
-It can take the following attributes:
-
+
+ A project file is an XML file that defines a single project. The root element
+ of a project file must be a <project> element.
+ It can take the following attributes:
+
-
-
Attribute
Description
Default Value
-
-
name
-
The project name.
-
The name of the project file, with the extension removed.
-
-
-
basedir
-
The base directory for the project. The base directory is used
- to resolve all relative file names used in the project file.
-
-
The directory containing the project file.
-
-
-
default
-
The name of the default target.
-
main
-
-
-
version
-
The project file format version that the project is written for.
-
None, must be 2.0
-
-
+
+
Attribute
Description
Default Value
+
+
name
+
The project name.
+
The name of the project file, with the extension removed.
+
+
+
basedir
+
The base directory for the project. The base directory is used
+ to resolve all relative file names used in the project file.
+
+
The directory containing the project file.
+
+
+
default
+
The name of the default target.
+
main
+
+
+
version
+
The project file format version that the project is written for.
+
None, must be 2.0
+
+
-
-A <project> element can contain the following elements,
-in the order given below:
-