From 18c29f70d3dc67a2788f09c55e584ec8a8131c08 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Fri, 20 Dec 2002 01:46:23 +0000 Subject: [PATCH] fixing line ending screwup from previous commit git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273676 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/loadfile.html | 89 ++++++++++++++++++++--------- 1 file changed, 62 insertions(+), 27 deletions(-) diff --git a/docs/manual/CoreTasks/loadfile.html b/docs/manual/CoreTasks/loadfile.html index 33f975a22..6d8084305 100644 --- a/docs/manual/CoreTasks/loadfile.html +++ b/docs/manual/CoreTasks/loadfile.html @@ -1,17 +1,22 @@ - - LoadFile Task +LoadFile Task + + +

LoadFile

Description

-

Load a text file into a single property. Unless an encoding is specified, - the encoding of the current locale is used.

+

+ Load a text file into a single property. Unless an encoding is specified, + the encoding of the current locale is used. + +

+

Parameters

- - + @@ -36,29 +41,59 @@ -
Attribute Description RequiredWhether to halt the build on failure No, default "true"
-

The LoadFile task supports nested FilterChains.

+

+The LoadFile task supports nested +FilterChains. +

Examples

-
    <loadfile property="message"
srcFile="message.txt"/>
-Load file message.txt into property "message"; an <echo>can -print this. -
    <loadfile property="encoded-file"
srcFile="loadfile.xml"
encoding="ISO-8859-1"/>
-Load a file using the latin-1 encoding -
    <loadfile
property="optional.value"
srcFile="optional.txt"
failonerror="false"/>
-Load a file, don't fail if it is missing (a message is printed, though) -
    <loadfile
property="mail.recipients"
srcFile="recipientlist.txt">
<filterchain>
<striplinebreaks/>
</filterchain>
</loadfile>
-Load a property which can be used as a parameter for another task (in this -case mail), merging lines to ensure this happens. -
    <loadfile
property="system.configuration.xml"
srcFile="configuration.xml">
<filterchain>
<expandproperties/>
</filterchain>
</loadfile>
-Load an XML file into a property, expanding all properties declared in the -file in the process. +
    <loadfile property="message"
+      srcFile="message.txt"/>
+
+Load file message.txt into property "message"; an <echo> +can print this. + +
    <loadfile property="encoded-file"
+      srcFile="loadfile.xml"
+      encoding="ISO-8859-1"/>
+
+Load a file using the latin-1 encoding + +
    <loadfile
+      property="optional.value"
+      srcFile="optional.txt"
+      failonerror="false"/>
+
+Load a file, don't fail if it is missing (a message is printed, though) + +
    <loadfile
+      property="mail.recipients"
+      srcFile="recipientlist.txt">
+      <filterchain>
+        <striplinebreaks/>
+      </filterchain>
+    </loadfile>
+
+Load a property which can be used as a parameter for another task (in this case mail), +merging lines to ensure this happens. + +
    <loadfile
+      property="system.configuration.xml"
+      srcFile="configuration.xml">
+        <filterchain>
+          <expandproperties/>
+        </filterchain>
+    </loadfile>
+
+Load an XML file into a property, expanding all properties declared +in the file in the process. + +
-

Copyright © 2001-2002 Apache Software Foundation. -All rights Reserved.

-
+ +

Copyright © 2001-2002 Apache Software Foundation. All rights +Reserved.

+ +