From c563ee7eba6244cb5886269fbe72e43927a7a187 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 1 Dec 2000 15:41:20 +0000 Subject: [PATCH] Documentation for the nested element of . git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268287 13f79535-47bb-0310-9956-ffa450edef68 --- WHATSNEW | 4 ++++ docs/index.html | 20 +++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/WHATSNEW b/WHATSNEW index 31907d61a..779fff927 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -37,6 +37,10 @@ Other changes: target files for some tasks like or enable new types of tasks like . +* provides more control over the command line now, the names + of the source files are no longer required to be at the end of the + command. + Fixed bugs: ----------- diff --git a/docs/index.html b/docs/index.html index 38662afd1..87e23610a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2171,6 +2171,11 @@ elements to define the files for this task and refer to

Command line arguments should be specified as nested <arg> elements. See Command line arguments.

+

srcfile

+

By default the file names of the source files will be added to the +end of the command line. If you need to place it somewhere different, +use a nested <srcfile> element between your +<arg> elements to mark the insertion point.

env

It is possible to specify environment variables to pass to the system command via nested <env> elements. See the @@ -2194,6 +2199,19 @@ description in the section about exec

files below /tmp not ending in .txt and all files of the FileSet with id other.files to the command line.

+
+<execon executable="somecommand" parallel="false" >
+  <arg value="arg1" />
+  <srfile/>
+  <arg value="arg2" />
+  <fileset dir="/tmp" />
+</execon>
+
+

invokes somecommand arg1 SOURCEFILENAME arg2 for each +file in /tmp replacing SOURCEFILENAME with the absolute +filename of each file in turn. If parallel had been set +to true, SOURCEFILENAME would be replaced with the absolute filenames +of all files separated by spaces.


Fail

Description

@@ -4510,7 +4528,7 @@ element.

The value part of the property being set is true if the timestamp of the target files is more recent than the timestamp of every corresponding source file.

-

The default behavior is to use a merge +

The default behavior is to use a merge mapper whith the to attribute set to the value of the targetfile attribute.

Normally, this task is used to set properties that are useful to avoid target