mirror of
https://github.com/apache/ant.git
synced 2025-05-18 14:04:48 +00:00
(1) Make sure there is a Copyright notice on all visible files. (2) Make sure all years in which the file has been modified are listed. (3) Make sure the format is consistent, i.e. separate consecutive years with a dash, not a comma. When Stephane changed starteam.html it has been 2001 in France but 2002 in Australia - does that mean we add 2002 to the Copyright line or not? ;-) git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270652 13f79535-47bb-0310-9956-ffa450edef68
74 lines
1.8 KiB
HTML
74 lines
1.8 KiB
HTML
<html>
|
|
<head>
|
|
<title>LoadFile</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h2><a name="loadfile">LoadFile</a></h2>
|
|
<h3>Description</h3>
|
|
<p>
|
|
Load a text file into a single property. Unless an encoding is specified,
|
|
the encoding of the current locale is used. There is no explicit limit
|
|
upon the size of the file which can be loaded, but loading very large
|
|
files is not something anyone has yet explored.
|
|
|
|
</p>
|
|
|
|
<h3>Parameters</h3>
|
|
<table border="1" cellpadding="2" cellspacing="0">
|
|
<tr>
|
|
<td valign="top"><b>Attribute</b></td>
|
|
<td valign="top"><b>Description</b></td>
|
|
<td align="center" valign="top"><b>Required</b></td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">srcFile</td>
|
|
<td valign="top">source file</td>
|
|
<td valign="top" align="center">Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">property</td>
|
|
<td valign="top">property to save to</td>
|
|
<td valign="top" align="center">Yes</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">encoding</td>
|
|
<td valign="top">encoding to use when loading the file</td>
|
|
<td align="center" valign="top">No</td>
|
|
</tr>
|
|
<tr>
|
|
<td valign="top">failonerror</td>
|
|
<td valign="top">Whether to halt the build on failure</td>
|
|
<td align="center" valign="top">No, default "true"</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h3>Examples</h3>
|
|
<pre> <loadfile property="mail.recipients"
|
|
srcFile="recipients.txt" / >
|
|
</pre>
|
|
Load file recipients.txt into property "mail.recipients"
|
|
|
|
<pre> <loadfile property="encoded-file"
|
|
srcFile="loadfile.xml"
|
|
encoding="ISO-8859-1" / >
|
|
</pre>
|
|
Load a file using the latin-1 encoding
|
|
|
|
<pre> <loadfile
|
|
property="optional.value"
|
|
srcFile="optional.txt"
|
|
failonerror="false" />
|
|
</pre>
|
|
Load a file, don't fail if it is missing (a message is printed, though)
|
|
|
|
<hr>
|
|
|
|
<p align="center">Copyright © 2001 Apache Software Foundation. All rights
|
|
Reserved.</p>
|
|
|
|
</body>
|
|
</html>
|
|
|