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

LoadProperties

+

Description

+

+Load a file's contents as Apache Ant properties. This is equivalent +to <property file|resource="..."/> except that it +supports nested <filterchain> elements. +Also if the file is missing, the build is halted with an error, rather +than a warning being printed. +

+ +

Note: the default value of this +task's prefixValues attribute is different from the +default value of the same attribute in +the <property> +task.

+ +

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
srcFilesource fileOne of these or a + nested resource
resourcethe resource name of the property file
encodingencoding to use when loading the fileNo
classpaththe classpath to use when looking up a resource.No
classpathrefthe classpath to use when looking up a resource, + given as reference + to a <path> defined elsewhere..No
prefixPrefix to apply to loaded properties; + a "." is appended to the prefix if not specified. Since Ant 1.8.1No
prefixValuesWhether to apply the prefix when expanding the + right hand side of the properties. + Since Ant 1.8.2No (default=true)
+ +

Parameters specified as nested elements

+ +

any resource or single element +resource collection

+ +

The specified resource will be used as src. Since Ant 1.7

+ +

FilterChain

+ +

classpath

+ +

for use with the resource attribute.

+ +

Examples

+
    <loadproperties srcFile="file.properties"/>
+
+or +
+    <loadproperties>
+      <file file="file.properties"/>
+    </loadproperties>
+
+Load contents of file.properties as Ant properties. + +
    <loadproperties srcFile="file.properties">
+      <filterchain>
+        <linecontains>
+          <contains value="import."/>
+        </linecontains>
+      </filterchain>
+    </loadproperties>
+
+Read the lines that contain the string "import." +from the file "file.properties" and load them as +Ant properties. + +
+    <loadproperties>
+      <gzipresource>
+        <url url="http://example.org/url.properties.gz"/>
+      </gzipresource>
+    </loadproperties>
+
+Load contents of http://example.org/url.properties.gz, uncompress it +on the fly and load the contents as Ant properties. + + + + + -- cgit 1.2.3-korg