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, andremove. On Unix platforms, defaults toremove, converting Windows-style CRLF to LF. On Windows platforms, defaults toadd, 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
crattribute. When the defaultremove, remove the EOF character if present. When it isadd, add an EOF character if necessary. When it isasis, do nothing.-
eol(1.4, Enum, N) Replaces the deprecated
crattribute, adding better support for Macintosh. Legal values areasis,cr,lf, andcrlf. Each of these values specifies what EOL characters are placed in the “fixed” files. Defaults tolfon Unix,cron Macintosh, andcrlfon 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access