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
cr
attribute. 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
cr
attribute, 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 tolf
on Unix,cr
on Macintosh, andcrlf
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.