Interface FileSpec
- All Known Implementing Classes:
DependencyFileSpec,LocalFileSpec,MavenFileSpec
@Experimental
public interface FileSpec
FileSpec should be used in MappingsSpec's that take an input file. The input file can either be a local file or a gradle dep.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileSpecCreates a file spec.static FileSpeccreateFromDependency(org.gradle.api.artifacts.Dependency dependency)static FileSpeccreateFromFile(File file)static FileSpeccreateFromFile(Path path)static FileSpeccreateFromFile(org.gradle.api.file.FileSystemLocation location)static FileSpeccreateFromFile(org.gradle.api.file.RegularFileProperty regularFileProperty)static FileSpeccreateFromMavenDependency(String dependencyNotation)get(MappingContext context)
-
Method Details
-
create
Creates a file spec.The parameter will be evaluated like this:
File,PathandFileSystemLocationwill be resolved as local filesProvider(includingPropertywill recursively be resolved as its current valueCharSequence(includingStringandGString) will be resolved as Maven dependenciesDependencywill be resolved as any dependency
- Parameters:
o- the file notation- Returns:
- the created file spec
-
createFromMavenDependency
-
createFromDependency
-
createFromFile
-
createFromFile
-
createFromFile
-
createFromFile
-
get
-