api / org.gradle.api.tasks / FileNormalizer

FileNormalizer

@Incubating interface FileNormalizer

A normalizer used to remove unwanted noise when considering file inputs. The default behavior without specifying a normalizer is to ignore the order of the files.

See Also
TaskInputFilePropertyBuilder#withNormalizer(Class)

Since
4.3

Inheritors

ClasspathNormalizer

interface ClasspathNormalizer : FileNormalizer

Normalizes file input that represents a Java runtime classpath. Compared to the default behavior this normalizer keeps the order of any root files, but ignores the order and timestamps of files in directories and ZIP/JAR files.

CompileClasspathNormalizer

interface CompileClasspathNormalizer : FileNormalizer

Normalizes file input that represents a Java compile classpath. Compared to the default behavior this normalizer keeps the order of any root files, but ignores the order and timestamps of files in directories and ZIP/JAR files. Compared to ClasspathNormalizer this normalizer only snapshots the ABIs of class files, and ignores any non-class resource.