Name

fixcrlf

Synopsis

Cleans up special characters in source files, such as tabs, carriage returns, linefeeds, and EOF characters.

Attributes

cr (all, Enum, N)

Deprecated in Ant 1.4. Specifies how CR characters are modified. Legal values are add, asis, and remove. On Unix platforms, defaults to remove, converting Windows-style CRLF to LF. On Windows platforms, defaults to add, converting Unix-style LF characters to CRLF.

defaultexcludes (all, boolean, N)

Determines whether to use default excludes, as described in Chapter 4 under “FileSet DataType.” Defaults to true.

destdir (all, File, N)

Specifies where “fixed” files are placed. If unspecified, source files are overwritten.

eof (all, Enum, N)

Specifies how DOS-style EOF characters (Ctrl-Z) are handled. Supports the same attributes and default values as the cr attribute. When the default remove, remove the EOF character if present. When it is add, add an EOF character if necessary. When it is asis, do nothing.

eol (1.4, Enum, N)

Replaces the deprecated cr attribute, adding better support for Macintosh. Legal values are asis, cr, lf, and crlf. Each of these values specifies what EOL characters are placed in the “fixed” files. Defaults to lf on Unix, cr on Macintosh, and crlf on Windows.

excludes (all, String, N)

A comma-separated list of file patterns to exclude. These patterns are in addition to the default excludes.

excludesfile (all, File, N)

The name of a file containing one exclude pattern per line.

includes (all, String, N)

A comma-separated ...

Get Ant: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.