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 --- .../manual/Tasks/resourcecount.html | 107 +++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/resourcecount.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/resourcecount.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/resourcecount.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/resourcecount.html new file mode 100644 index 00000000..a34506b1 --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/resourcecount.html @@ -0,0 +1,107 @@ + + + + + + +ResourceCount Task + + + + +

ResourceCount

+ +

Description

+

Display or set a property containing the size of a nested + Resource Collection. + Can also be used as a condition. Since Apache Ant 1.7

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
propertyThe property to set. If omitted the results are written + to the log. Ignored when processing as a condition.No
refidA reference + to a Resource Collection. + Yes, unless a nested Resource Collection is supplied +
countComparison count 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 Collection

+

A single + Resource Collection +should be specified via a nested element or the refid attribute. +

+ +

Examples

+
<resourcecount property="count.foo">
+  <filelist dir="." files="foo,bar" />
+</resourcecount>
+
+

Stores the number of resources in the specified filelist (two) +in the property named count.foo.

+ +
+<project>
+  <property name="file" value="${ant.file}"/>
+  <resourcecount property="file.lines">
+    <tokens>
+      <concat>
+        <filterchain>
+          <tokenfilter>
+            <linetokenizer/>
+          </tokenfilter>
+        </filterchain>
+        <fileset file="${file}"/>
+      </concat>
+    </tokens>
+  </resourcecount>
+  <echo>The file '${file}' has ${file.lines} lines.</echo>
+</project>
+
+

Stores the number of lines of the current buildfile in the property file.lines. +Requires Ant 1.7.1+ as <concat> has to be resource.

+ + + + + -- cgit 1.2.3-korg