Package org.gradle.api.file
Interface RegularFile
-
- All Superinterfaces:
FileSystemLocation
public interface RegularFile extends FileSystemLocation
Represents a regular file at a fixed location on the file system. A regular file is a file that is not a directory and is not some special kind of file such as a device.Note: This interface is not intended for implementation by build script or plugin authors. An instance of this class can be created from a
Directoryinstance using theDirectory.file(String)method or via various methods onProjectLayoutsuch asProjectLayout.getProjectDirectory().- Since:
- 4.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.FilegetAsFile()Returns the location of this file, as an absoluteFile.
-
-
-
Method Detail
-
getAsFile
java.io.File getAsFile()
Returns the location of this file, as an absoluteFile.- Specified by:
getAsFilein interfaceFileSystemLocation- Returns:
- the File
-
-