Package org.gradle.work
Interface FileChange
-
public interface FileChangeA change to a file.- Since:
- 5.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeTypegetChangeType()The type of change to the file.java.io.FilegetFile()The file, which may no longer exist.FileTypegetFileType()The file type of the file.java.lang.StringgetNormalizedPath()The normalized path of the file, as specified by the path normalization strategy.
-
-
-
Method Detail
-
getFile
java.io.File getFile()
The file, which may no longer exist.
-
getChangeType
ChangeType getChangeType()
The type of change to the file.
-
getFileType
FileType getFileType()
The file type of the file.For
ChangeType.ADDEDandChangeType.MODIFIED, the type of the file which was added/modified is reported. ForChangeType.REMOVEDthe type of the file which was removed is reported.
-
getNormalizedPath
java.lang.String getNormalizedPath()
The normalized path of the file, as specified by the path normalization strategy.See
PathSensitivity,ClasspathandCompileClasspathfor the different path normalization strategies.
-
-