nico 01/08/28 14:50:54 Modified: docs/manual Tag: ANT_14_BRANCH install.html using.html docs/manual/CoreTasks Tag: ANT_14_BRANCH antcall.html available.html dependset.html ear.html fixcrlf.html javac.html overview.html parallel.html recorder.html sql.html style.html tstamp.html zip.html docs/manual/CoreTypes Tag: ANT_14_BRANCH filelist.html filterset.html patternset.html docs/manual/Integration Tag: ANT_14_BRANCH Antidote.html VAJAntTool.html docs/manual/OptionalTasks Tag: ANT_14_BRANCH BorlandEJBTasks.html BorlandGenerateClient.html ccm.html ftp.html icontract.html jdepend.html script.html stylebook.html Log: - Cleaned up HTML - Fixed some typos - Make references to install -> dependencies instead of having links all over the place - Verified links and corrected them if possible - Added new task to overview Revision Changes Path No revision No revision 1.10.2.3 +4 -4 jakarta-ant/docs/manual/install.html Index: install.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/install.html,v retrieving revision 1.10.2.2 retrieving revision 1.10.2.3 diff -u -r1.10.2.2 -r1.10.2.3 --- install.html 2001/08/17 10:38:11 1.10.2.2 +++ install.html 2001/08/28 21:50:53 1.10.2.3 @@ -8,7 +8,7 @@
The latest stable version of Ant can be downloaded from http://jakarta.apache.org/builds/ant/release/v1.4/bin/. @@ -106,7 +106,7 @@ directory is intended for JDK extensions. In particular there are security restrictions on the classes which may be loaded by an extension.
-Ant supports a number of optional tasks. An optional task is a task which typically requires an external library to function. The optional tasks are packaged separately from the core Ant tasks. This package is available in @@ -234,8 +234,8 @@ indicated feature. Note that only one of the regexp libraries is needed for use with the mappers. You will also need to install the Ant optional jar containing the task definitions to make these -tasks available. Please refer to the -Installing Ant section above.
+tasks available. Please refer to the +Installing Ant / Optional Tasks section above.type | -The type of file to look for, either a directory (type="dir" ) or a file (type="file" ). If not set, the property will be set if the name specified in the file attribute exists as either a file or a directory. |
+ The type of file to look for, either a directory (type="dir" ) or a file
+ (type="file" ). If not set, the property will be set if the name specified in the file
+ attribute exists as either a file or a directory. |
No | No |
tab | Specifies how tab characters are to be handled. Valid
values for this property are:
1.10.2.5 +5 -5 jakarta-ant/docs/manual/CoreTasks/javac.html
Index: javac.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/javac.html,v
retrieving revision 1.10.2.4
retrieving revision 1.10.2.5
diff -u -r1.10.2.4 -r1.10.2.5
--- javac.html 2001/08/27 12:34:54 1.10.2.4
+++ javac.html 2001/08/28 21:50:53 1.10.2.5
@@ -287,13 +287,13 @@
Note: If you wish to compile only source-files located in some packages below a common root you should not include these packages in the srcdir-attribute. Use include/exclude-attributes or elements to filter for these packages. If you include part of your package-structure inside the srcdir-attribute -(or nested src-elements) Ant will start to recompile your sources everytime you call it. +(or nested src-elements) Ant will start to recompile your sources every time you call it.Jikes NotesIf the environment variable JIKES_HOME is set to the location of the jikes compiler, then the standard Ant invocation scripts -automatically set build.compiler to "jikes". This enables one to use +automatically set build.compiler to "jikes". This enables one to use jikes when available, without having to commit the build file to a single choice of compiler. @@ -302,9 +302,9 @@ Jikes also supports some extra options, which can be set be defining properties prior to invoking the task. The ant developers are aware that this is ugly and inflexible -expect a better solution in the future. All -the options are boolean, and must be set to "true" or "yes" to be +the options are boolean, and must be set to "true" or "yes" to be interpreted as anything other than false; by default -build.compiler.warnings is "true" while all others are "false" +build.compiler.warnings is "true" while all others are "false"
| ||
Apply | +Apply/ExecOn | Executes a system command. When the os attribute is specified, then the command is only executed when Ant is run on one of the specified operating systems. |
@@ -56,6 +56,13 @@
|
Condition | +Sets a property if a certain condition holds true - this is a + generalization of Available and + Uptodate. |
+ ||
Copy | Copies a file or Fileset to a new file or directory. |
||
Dependset | +The dependset task compares a set of source files with a set of target + files. If any of the source files is more recent than any of + the target files, all of the target files are removed. |
+ ||
Ear | An extension of the Jar task with special treatment for files that should end up in an Enterprise Application archive. |
@@ -113,16 +127,6 @@
||
ExecOn | -Executes a system command. When the os attribute is specified, then -the command is only executed when Ant is run on one of the specified operating -systems. -The files and/or directories of a number of FileSets are passed as arguments to the system
-command. At least one nested |
- ||
Fail | Exits the current build (just throwing a BuildException), optionally printing additional information. |
||
Mkdir | Creates a directory. Also non-existent parent directories are created, when -necessary. |
+ necessary.
||
Move | Moves a file to a new file or directory, or sets of files to -a new directory. |
+ a new directory.
||
Parallel | +Parallel is a container task - it can contain other Ant tasks. Each nested + task within the parallel task will be executed in its own thread. |
+ ||
Patch | Applies a diff file to originals. |
||
Property | Sets a property (by name and value), or set of properties (from file or -resource) in the project. |
+ resource) in the project.
||
Record | A recorder is a listener to the current build process that records the -output to a file. |
+ output to a file.
||
Replace | Replace is a directory based task for replacing the occurrence of a given string with another string -in selected file. |
+ in selected file.
||
Sequential | +Sequential is a container task - it can contain other Ant tasks. The nested + tasks are simply executed in sequence. Sequential's primary use is to support + the sequential execution of a subset of tasks within the + parallel task |
+ ||
SignJar | Signs a jar or zip file with the javasign command line tool. |
||
Taskdef | Adds a task definition to the current project, such that this new task can be -used in the current project. |
+ used in the current project.
||
Touch | Changes the modification time of a file and possibly creates it at -the same time. |
+ the same time.
||
Typedef | Adds a data type definition to the current project, such that this -new type can be used in the current project. |
+ new type can be used in the current project.
||
Uptodate | Sets a property if a target files are more up to date than a set of -Source files. |
+ Source files.
||
This tells the logger what to do: should it start recording or stop? The first time that the recorder task is called for this logfile, and if this attribute is not provided, then the default - for this attribute is "start". If this attribute is not provided on - subsiquest calls, then the state remains as previous. + for this attribute is "start". If this attribute is not provided on + subsequent calls, then the state remains as previous. [Values = {start|stop}, Default = no state change] | no | append | Should the recorder append to a file, or create a new one? This is only applicable the first time this task is called for - this file. [Vaules = {yes|no}, Default=yes] | + this file. [Values = {yes|no}, Default=yes]no |
At what logging level should this recorder instance
record to? This is not a once only parameter (like append
is) -- you can increase or decrease the logging level as the build process
- continues. [Vaules= {error|warn|info|verbose|debug}, Default = no change]
+ continues. [Values= {error|warn|info|verbose|debug}, Default = no change]
|
no |
The following build.xml snippit is an example of how to use the recorder +
The following build.xml snippet is an example of how to use the recorder
to record just the <javac>
task:
... <compile > - <record name="log.txt" action="start" /> + <record name="log.txt" action="start" /> <javac ... - <record name="log.txt" action="stop" /> + <record name="log.txt" action="stop" /> <compile/> ...
The following two calls to <record>
set up two
-recorders: one to file "records-simple.log" at logging level info
-(the default) and one to file "ISO.log" using logging level of
+recorders: one to file "records-simple.log" at logging level info
+(the default) and one to file "ISO.log" using logging level of
verbose
.
... - <record name="records-simple.log" /> - <record name="ISO.log" loglevel="verbose" /> + <record name="records-simple.log" /> + <record name="ISO.log" loglevel="verbose" /> ...
There is some funtionality that I would like to be able to add in the +
There is some functionality that I would like to be able to add in the future. They include things like the following:
includetarget | -A comma-separated list of targets to automaticly - record. If this value is "all", then all targets are recorded. + | A comma-separated list of targets to automatically + record. If this value is "all", then all targets are recorded. [Default = all] | no | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
includetask | -A comma-separated list of task to automaticly + | A comma-separated list of task to automatically
record or not. This could be difficult as it could conflict with the
includetarget/excludetarget . (e.g.:
- includetarget="compile" exlcudetask="javac" , what should
+ includetarget="compile" exlcudetask="javac" , what should
happen?) |
no | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
action | -add greater flexability to the action attribute. Things + | add greater flexibility to the action attribute. Things
like close to close the print stream. |
no | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
delimiter | String that separates SQL statements | -No, default ";" | +No, default ";" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
autocommit | @@ -134,7 +142,9 @@ /> -
locale | The locale used to create date/time string. The general
- form is "language, country, variant" but either variant or variant and
+ form is "language, country, variant" but either variant or variant and
country may be omitted. For more information please refer to documentation
for the
Locale
1.4.2.2 +1 -1 jakarta-ant/docs/manual/CoreTasks/zip.html
Index: zip.html
===================================================================
RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTasks/zip.html,v
retrieving revision 1.4.2.1
retrieving revision 1.4.2.2
diff -u -r1.4.2.1 -r1.4.2.2
--- zip.html 2001/08/22 17:51:36 1.4.2.1
+++ zip.html 2001/08/28 21:50:53 1.4.2.2
@@ -47,7 +47,7 @@
for filenames - this is consistent with the command line ZIP tools,
but causes problems if you try to open them from within Java and your
filenames contain non US-ASCII characters. Use the encoding attribute
-and set it to UTF8 to create zip files that can savely be read by
+and set it to UTF8 to create zip files that can safely be read by
Java.
Parameters
Examples1.1.2.2 +118 -96 jakarta-ant/docs/manual/CoreTypes/Attic/filterset.html Index: filterset.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTypes/Attic/filterset.html,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- filterset.html 2001/08/17 11:39:15 1.1.2.1 +++ filterset.html 2001/08/28 21:50:53 1.1.2.2 @@ -1,96 +1,118 @@ - - -Filterset-FilterSets are groups of filters. Filters can be defined as token value pairs
-or be read in from a file. FilterSets can appear inside tasks that support this
-feature or at the same level as Filtersets are used for doing -replacements in tasks like copy etc. - Filterset-
Filter-
Filtersfile-
Examples--You are copying the version.txt file to the dist directory from the build directory -but wish to replace the token @DATE@ with todays date. - -<copy file="${build.home}/version.txt" toFile="${dist.home}/version.txt"< - <filterset> - <filter token="DATE" value="${DATE}"/> - </filterset> -</copy> - -You are copying the version.txt file to the dist directory from the build directory -but wish to replace the token %DATE* with todays date. - -<copy file="${build.home}/version.txt" toFile="${dist.home}/version.txt"> - <filterset begintoken="%" endtoken="*"> - <filter token="DATE" value="${DATE}"/> - </filterset> -</copy> - -Copy all the docs but change all dates and appropriate notices as stored in a file. - -<copy toDir="${dist.home}/docs" > - <fileset dir="${build.home}/docs"> - <include name="**/*.html"> - </fileset> - <filterset begintoken="%" endtoken="*"> - <filter token="DATE" value="${DATE}"/> - <filtersfile file="${user.home}/dist.properties"/> - </filterset> -</copy> - - - Copyright © 2000,2001 Apache Software Foundation. All rights -Reserved. + + + + +Filterset+ +FilterSets are groups of filters. Filters can be defined as token value pairs
+or be read in from a file. FilterSets can appear inside tasks that support this
+feature or at the same level as Filtersets are used for doing +replacements in tasks like copy etc. + + Filterset+ +
Filter+
Filtersfile+
Examples+ +You are copying the version.txt file to the dist directory from the build directory +but wish to replace the token @DATE@ with todays date. ++ ++<copy file="${build.home}/version.txt" toFile="${dist.home}/version.txt"< + <filterset> + <filter token="DATE" value="${DATE}"/> + </filterset> +</copy> + You are copying the version.txt file to the dist directory from the build directory +but wish to replace the token %DATE* with todays date. ++ ++<copy file="${build.home}/version.txt" toFile="${dist.home}/version.txt"> + <filterset begintoken="%" endtoken="*"> + <filter token="DATE" value="${DATE}"/> + </filterset> +</copy> + Copy all the docs but change all dates and appropriate notices as stored in a file. ++ ++<copy toDir="${dist.home}/docs" > + <fileset dir="${build.home}/docs"> + <include name="**/*.html"> + </fileset> + <filterset begintoken="%" endtoken="*"> + <filter token="DATE" value="${DATE}"/> + <filtersfile file="${user.home}/dist.properties"/> + </filterset> +</copy> + + + Copyright © 2000,2001 Apache Software Foundation. All rights +Reserved. 1.4.2.1 +1 -1 jakarta-ant/docs/manual/CoreTypes/patternset.html Index: patternset.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/CoreTypes/patternset.html,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -u -r1.4 -r1.4.2.1 --- patternset.html 2001/08/01 09:23:47 1.4 +++ patternset.html 2001/08/28 21:50:53 1.4.2.1 @@ -59,7 +59,7 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | -the pattern + | the pattern to in/exclude. | Yes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
exportSources | -export source files (default: "yes") | +export source files (default: "yes") | no | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
exportResources | -export resource files (default: "yes") | +export resource files (default: "yes") | no | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
exportClasses | -export class files (default: "no") | +export class files (default: "no") | no | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
exportDebugInfo | include debug info in exported - class files (default: "no") | + class files (default: "no")no | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
defaultexcludes | -use default excludes when exporting (default: "yes") + | use default excludes when exporting (default: "yes") | no |
Deprecated. Defines the location of the
weblogic-ejb-jar DTD which covers the Borland specific deployment descriptors.
This should not be necessary if you have borland in your classpath. If you
- do not, you should use a nested |
+ do not, you should use a nested <dtd> element, described above
no |
Deprecated. Defines the location of the
ejb-jar DTD in the weblogic class hierarchy. This should not be necessary
if you have weblogic in your classpath. If you do not, you should use a
- nested |
+ nested <dtd> element, described above.
no |
The following build.xml snippit is an example of how to use Borland element +
The following build.xml snippet is an example of how to use Borland element into the ejbjar task
<ejbjar srcdir="${build.classes}" basejarname="vsmp" descriptordir="${rsc.dir}/hrmanager"> <borland destdir="lib" verify="on" generateclient="on"> 1.2.2.1 +1 -1 jakarta-ant/docs/manual/OptionalTasks/BorlandGenerateClient.html Index: BorlandGenerateClient.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/BorlandGenerateClient.html,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -u -r1.2 -r1.2.2.1 --- BorlandGenerateClient.html 2001/04/19 14:02:15 1.2 +++ BorlandGenerateClient.html 2001/08/28 21:50:54 1.2.2.1 @@ -46,7 +46,7 @@
The following build.xml snippit is an example of how to use Borland element +
The following build.xml snippet is an example of how to use Borland element into the ejbjar task using the java mode.
<blgenclient ejbjar="lib/secutest-ejb.jar" clientjar="lib/client.jar" debug="true" mode="java"> 1.1.2.2 +1 -1 jakarta-ant/docs/manual/OptionalTasks/ccm.html Index: ccm.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/ccm.html,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- ccm.html 2001/08/19 09:28:41 1.1.2.1 +++ ccm.html 2001/08/28 21:50:54 1.1.2.2 @@ -36,7 +36,7 @@
Note: The ftp-task uses the NetComponents-Package which you will need to download from -http://www.savarese.org and add to your classpath.
The ftp task implements a basic FTP client that can send, receive, list, delete files, and create directories. See below for descriptions and examples of how to perform each task.
+Note: This task depends on external libraries not included in the Ant distribution. +See Library Dependencies for more information.
The ftp task makes no attempt to determine what file system syntax is required by the remote server, and defaults to Unix standards. remotedir must be specified in the exact syntax required by the ftp 1.4.2.1 +5 -6 jakarta-ant/docs/manual/OptionalTasks/icontract.html Index: icontract.html =================================================================== RCS file: /home/cvs/jakarta-ant/docs/manual/OptionalTasks/icontract.html,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -u -r1.4 -r1.4.2.1 --- icontract.html 2001/04/10 05:06:46 1.4 +++ icontract.html 2001/08/28 21:50:54 1.4.2.1 @@ -16,8 +16,7 @@ The task can generate a properties file for iControl, a graphical user interface that lets you turn on/off assertions. iControl generates a control file that you can refer to from this task using the controlfile attribute. -
- +Attribute | - -Description | - -Required | -
outputfile | - -The output file name. If not set, the output is printed on the standard output. | - -No | -
fork | - -Run the tests in a separate VM. | - -No, default is "off" | -
haltonerror | - -Stop the build process if an error occurs during the jdepend analysis. | - -No, default is "off" | -
timeout | - -Cancel the operation if it doesn't finish in the given time (measured in milliseconds). (Ignored if fork is disabled.) | - -No | -
jvm | - -The command used to invoke the Java Virtual Machine, default is 'java'. The command is resolved by java.lang.Runtime.exec(). (Ignored if fork is disabled.) | - -No, default "java" | -
dir | - -The directory to invoke the VM in. (Ignored if fork is disabled) | - -No | -
classpathref | - -the classpath to use, given as reference to a PATH defined elsewhere. | - -No | -
jdepend
supports two nested elements <classpath>
and <sourcespath>
, that represent PATH like
-structures.
-
-<sourcespath>
is used to define the paths of the source code to analyze.
-
-- -This invokes JDepend on the-<jdepend classpathref="base.path"> - <sourcespath> - <pathelement location="src" /> - </sourcespath> -</jdepend> --
src
directory, writing the output on the standard output.
-The classpath is defined using a classpath reference.
--- -This invokes JDepend in a separate VM on the-<jdepend outputfile="docs/jdepend.txt" fork="yes"> - <sourcespath> - <pathelement location="src" /> - </sourcespath> - <classpath> - <pathelement location="classes" /> - <pathelement location="lib/jdepend.jar" /> - </classpath> -</jdepend> --
src
and testsrc
directories, writing the output in the <docs/jdepend.txt>
file.
-The classpath is defined using nested elements.
-Invokes the JDepend parser.
+ +This parser "traverses a set of Java source file directories and generates design quality metrics for each Java package". +It allows to "automatically measure the quality of a design in terms of its extensibility, reusability, and maintainability to +effectively manage and control package dependencies."
+ +Source file directories are defined by nested <sourcespath>
, see nested elements.
Optionally, you can also set the outputfile
name where the output is stored. By default the task writes its report to the standard output.
The task requires at least the JDepend 1.2 version.
+ +Note: whereas the JDepend tool can be customized to exclude some packages, the current jdepend And Task does not have parameters to allow these exclusions. Read JDepend specific documentation for that purpose.
+ ++ +
Attribute | +Description | +Required | +
outputfile | +The output file name. If not set, the output is printed on the standard output. | +No | +
fork | +Run the tests in a separate VM. | +No, default is "off" | +
haltonerror | +Stop the build process if an error occurs during the jdepend analysis. | +No, default is "off" | +
timeout | +Cancel the operation if it doesn't finish in the given time (measured in milliseconds). (Ignored if fork is disabled.) | +No | +
jvm | +The command used to invoke the Java Virtual Machine, default is 'java'. The command is resolved by java.lang.Runtime.exec(). (Ignored if fork is disabled.) | +No, default "java" | +
dir | +The directory to invoke the VM in. (Ignored if fork is disabled) | +No | +
classpathref | +the classpath to use, given as reference to a PATH defined elsewhere. | +No | +
jdepend
supports two nested elements <classpath>
and <sourcespath>
,
+that represent PATH like structures.
<sourcespath>
is used to define the paths of the source code to analyze.
++ +This invokes JDepend on the+<jdepend classpathref="base.path"> + <sourcespath> + <pathelement location="src" /> + </sourcespath> +</jdepend> ++
src
directory, writing the output on the standard output.
+The classpath is defined using a classpath reference.
+
+++ +This invokes JDepend in a separate VM on the+<jdepend outputfile="docs/jdepend.txt" fork="yes"> + <sourcespath> + <pathelement location="src" /> + </sourcespath> + <classpath> + <pathelement location="classes" /> + <pathelement location="lib/jdepend.jar" /> + </classpath> +</jdepend> ++
src
and testsrc
directories, writing the output in the <docs/jdepend.txt>
file.
+The classpath is defined using nested elements.
+
+Execute a script in a BSF supported language.
+Note: This task depends on external libraries not included in the Ant distribution. +See Library Dependencies for more information.
All items (tasks, targets, etc) of the running project are
accessible from the script, using either their name
or
id
attributes.
This executes the apache Stylebook documentation generator. Unlike the commandline version of this tool, all three arguments are required to run stylebook.
+Note: This task depends on external libraries not included in the Ant distribution. +See Library Dependencies for more information.