Browse Source

Document the preservation of lineendings in Translate

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274862 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
bc4909539a
2 changed files with 8 additions and 2 deletions
  1. +2
    -0
      WHATSNEW
  2. +6
    -2
      docs/manual/OptionalTasks/translate.html

+ 2
- 0
WHATSNEW View File

@@ -56,6 +56,8 @@ Changes that could break older environments:
* Output stored from a <java> or <exec> task is now exactly as generated. No
conversion to platform end-of-line characters is performed.

* <translate> will now preserve line endings.

Fixed bugs:
-----------
* Filter readers were not handling line endings properly. Bugzilla


+ 6
- 2
docs/manual/OptionalTasks/translate.html View File

@@ -45,12 +45,16 @@ to make up the file names that are to be used.
File encoding is supported. The encoding scheme of the source files,
destination files and the bundle files can be specified.

Destination files can be exlicitly overwritten using the
Destination files can be explicitly overwritten using the
<var>forceoverwrite</var> attribute. If <var>forceoverwrite</var>
is false, the destination file is overwritten only if either the
source file or any of the files that make up the bundle have been
modified after the destination file was last modified.
</p>
<p>
<em>New in Ant 1.6:</em><br/>
Line endings of source files are preserved in the translated files.
</p>
<p><a href="../CoreTypes/fileset.html">FileSet</a>s are used to select files to
translate.
</p>
@@ -157,7 +161,7 @@ equivalent using a resource bundle encoded in japanese.
&lt;/translate&gt;
</pre>
<hr>
<p align="center">Copyright &copy; 2001 Apache Software Foundation. All rights
<p align="center">Copyright &copy; 2001-2003 Apache Software Foundation. All rights
Reserved.</p>
</body>
</html>

Loading…
Cancel
Save