Clone
JB Nizet <jb@ninja-squad.com>
committed
on 06 Apr 16
GRADLE-1267 add a filteringCharset property to the copy spec
The copy task (and all the other tasks based on a CopySpec) allow filtering the… Show more
GRADLE-1267 add a filteringCharset property to the copy spec

The copy task (and all the other tasks based on a CopySpec) allow filtering the source files to transform them. But the charset used to read and write the files was always the platform default charset, which causes problem if, for example, the source files are encoded with UTF8 but the platform default charset is another one.

This commit allows specifying a charset to use when filtering the files using `filteringCharset = 'UTF8'` (for example).

Note that the name `filteringCharset` was chosen for this new property as specified in `design-docs/handling-encodings.md`. Show less

master + 534 more