From 32b5622cabeecb2db814809fad3de0bca204dd9c Mon Sep 17 00:00:00 2001
From: Diane Holt Table of Contents
+
+Developing with Ant
+
+Writing Your Own Task
+Build Events
+Source-code Integration
+
+
+
+
diff --git a/docs/manual/index.html b/docs/manual/index.html
index 18be35d54..569b8fa60 100644
--- a/docs/manual/index.html
+++ b/docs/manual/index.html
@@ -5,7 +5,7 @@
You can also set properties that override properties specified in the +
You can also set properties that
+override properties specified in the
buildfile (see the property task).
This can be done with
the -Dproperty=value
-DMYVAR=%MYVAR%
-DMYVAR=$MYVAR
${MYVAR}
.
${MYVAR}
.
+You can also access environment variables using the
+property task.
+
-Two more options are: -quiet
Options that affect the amount of logging output by Ant are: -quiet
-verbose
-debug
It is also possible to specify one or more targets that should be executed.
When omitted, the target that is specified in the
-default
attribute of the <project>
tag is
+default
attribute of the
+project
tag is
used.
The -projecthelp
The -projecthelp
description
attribute of the target,
+if one was specified, followed by a list of those targets without one.
Command-line option summary:
+ant [options] [target [target2 [target3] ...]] Options: -help print this message @@ -91,7 +99,7 @@ target called-dist
. target calleddist
, setting thebuild
property to the valuebuild/classes
. -Files
+Files
The Ant wrapper script for Unix will source (read and evaluate) the file
-~/.antrc
before it does anything - the Windows batch @@ -100,7 +108,7 @@ file invokes%HOME%\antrc_pre.bat
at the start and files to set/unset environment variables that should only be visible during the execution of Ant. See the next section for example.Environment Variables
+Environment Variables
The wrapper scripts use the following environment variables (if set):
@@ -118,7 +126,7 @@ set): include the-find
flag. -Running Ant by Hand
+Running Ant via Java
If you have installed Ant in the do-it-yourself way, Ant can be started with:
diff --git a/docs/manual/runninglist.html b/docs/manual/runninglist.html new file mode 100644 index 000000000..96bf23541 --- /dev/null +++ b/docs/manual/runninglist.html @@ -0,0 +1,22 @@ + + + + +where taskname is the name of the task, and taskID is -a unique name for this task. +a unique identifier for this task. You can refer to the corresponding task object in scripts or other tasks via this name. For example, in scripts you could do: @@ -187,17 +188,17 @@ be backward-compatible with this behaviour, since there will likely be no task instances at all, only proxies. -Apache Ant User Manual ++ + + + + Table of Contents
+ +Running Ant
+Command Line
+ Options
+ Files
+ Environment Variables
+Running Ant via Java
+ + + + diff --git a/docs/manual/toc.html b/docs/manual/toc.html index c6776fa7f..0c878c47c 100644 --- a/docs/manual/toc.html +++ b/docs/manual/toc.html @@ -10,13 +10,13 @@Table of Contents
Introduction
-Installing Ant
-Running Ant
-Using Ant
+Installing Ant
+Using Ant
+Running Ant
Built-in Tasks
Optional Tasks
Editor/IDE Integration
-Developing with Ant
+Developing with Ant
Ant API
License
Feedback
diff --git a/docs/manual/using.html b/docs/manual/using.html index 7a66ba34b..f63c5f535 100644 --- a/docs/manual/using.html +++ b/docs/manual/using.html @@ -8,12 +8,13 @@Using Ant
Writing a Simple Buildfile
-Ant's buildfiles are written in XML. Each buildfile contains one project.
-Each task element of the buildfile can have an
id
attribute and +Ant's buildfiles are written in XML. Each buildfile contains one project +and at least one (default) target. Targets contain task elements. +Each task element of the buildfile can have an
-id
attribute and can later be referred to by the value supplied to this. The value has to be unique. (For additional information, see the Tasks section below.)Projects
+Projects
A project has three attributes:
@@ -43,7 +44,7 @@ to be unique. (For additional information, see the Optionally, a description for the project can be provided as a -top-level <description> element (see the <description> element (see the description type).
Each project defines one or more targets. @@ -52,7 +53,7 @@ to be executed. When starting Ant, you can select which target(s) you want to have executed. When no target is given, the project's default is used.
-Targets
+Targets
A target can depend on other targets. You might have a target for compiling, for example, and a target for creating a distributable. You can only build a distributable when you have compiled first, so the distribute target @@ -161,7 +162,7 @@ Tasks can be assigned an
id
attribute:<taskname id="taskID" ... />Properties
+Properties
A project can have a set of properties. These might be set in the buildfile -by the property task, or might be set outside Ant. A -property has a name and a value, the name is case sensitive. Properties may be used in the value of +by the property task, or might be set outside Ant. A +property has a name and a value; the name is case-sensitive. Properties may be used in the value of task attributes. This is done by placing the property name between "
+This is resolved at run-time as${
" and "}
" in the attribute value. For example, if there is a "builddir" property with the value "build", then this could be used in an attribute like this:${builddir}/classes
. -This is resolved asbuild/classes
.build/classes
.Built-in Properties
Ant provides access to all system properties as if they had been @@ -219,7 +220,7 @@ ant.java.version the JVM version Ant detected; currently it can hold the values "1.1", "1.2", "1.3" and "1.4".
<project name="MyProject" default="dist" basedir="."> @@ -256,16 +257,16 @@ ant.java.version the JVM version Ant detected; currently it can hold </project>-
A project can have a set of tokens that might be automatically expanded if found when a file is copied, when the filtering-copy behavior is selected in the tasks that support this. These might be set in the buildfile -by the filter task.
+by the filter task.Since this can potentially be a very harmful behavior,
the tokens in the files must
be of the form @
token@
, where
token is the token name that is set
-in the filter task. This token syntax matches the syntax of other build systems
+in the <filter>
task. This token syntax matches the syntax of other build systems
that perform such filtering and remains sufficiently orthogonal to most
programming and scripting languages, as well as with documentation systems.
Note: If a token with the format @
token@
@@ -411,9 +412,9 @@ that contain space characters, nested arg
elements can be used.
The id
attribute of the buildfile's elements can be
-used to refer to them. This can useful if you are going to replicate
+used to refer to them. This can be useful if you are going to replicate
the same snippet of XML over and over again - using a
-<classpath>
structure more than once for
+<classpath>
structure more than once, for
example.
The following example:
diff --git a/docs/manual/usinglist.html b/docs/manual/usinglist.html new file mode 100644 index 000000000..113b32cf3 --- /dev/null +++ b/docs/manual/usinglist.html @@ -0,0 +1,28 @@ + + + + +Apache Ant User Manual ++ + + + + Table of Contents
+ +Using Ant
+Writing a Simple Buildfile
+ Projects
+ Targets
+ Tasks
+ Properties
+ Built-in Properties
+ Example Buildfile
+ Token Filters
+ Path-like Structures
+ Command-line Arguments
+ References
+ + + +