From 753a6c60f47f3ac4f270005b65e9d6481de8eb68 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:00:02 -0700 Subject: Adding maven and ant source trees Change-Id: I0a39b9add833a31b9c3f98d193983ae2f3a5a445 Signed-off-by: Ashlee Young --- .../ant/apache-ant-1.9.6/manual/Tasks/length.html | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/length.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/length.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/length.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/length.html new file mode 100644 index 00000000..18c62c76 --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/length.html @@ -0,0 +1,127 @@ + + + + + + +Length Task + + + + +

Length

+

Description

+

Display or set a property containing length information for + a string, a file, or one or more nested + Resource Collections. + Can also be used as a condition. Since Apache Ant 1.6.3

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
propertyThe property to set. If omitted + the results are written to the log. Ignored when + processing as a condition.No
fileSingle file whose length to report.One of these, + or one or more nested filesets
resourceSingle resource whose length to report (using extended + properties handling). + Since Ant 1.8.1 +
stringThe string whose length to report.
modeFile length mode; when "all" the resulting + value is the sum of all included resources' lengths; when "each" + the task outputs the absolute path and length of each included resource, + one per line. Ignored when processing as a condition.No; default is "all"
trimWhether to trim when operating on a string. Default false.No; only valid when string is set
lengthComparison length for processing as a condition.Yes, in condition mode
whenComparison type: "equal", "eq", "greater", "gt", "less", + "lt", "ge" (greater or equal), "ne" (not equal), "le" (less or equal) + for use when operating as a condition.No; default is "equal"
+ +

Parameters specified as nested elements

+ +

Resource Collections

+

You can include resources via nested + Resource Collections.

+ +

Examples

+ +
<length string="foo" property="length.foo" />
+
+

Stores the length of the string "foo" in the property named +length.foo.

+ +
<length file="bar" property="length.bar" />
+
+

Stores the length of file "bar" in the property named +length.bar.

+ +
+<length property="length" mode="each">
+    <fileset dir="." includes="foo,bar"/>
+</length>
+
+

Writes the file paths of foo and bar and their length into +the property length.

+ +
+<length property="length" mode="all">
+    <fileset dir="." includes="foo,bar"/>
+</length>
+
+

Adds the length of foo and bar and stores the result in property length.

+ + + + + -- cgit