Implements FileSystemOperations for Gradle 78x.
| Fields inherited from class | Fields |
|---|---|
class org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy |
__$stMC |
| Constructor and description |
|---|
DefaultFileSystemOperations
(org.ysb33r.grolifant.api.core.ProjectOperations incompleteReference, Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
WorkResult |
copy(Action<? super CopySpec> action)Copies the specified files. |
|
WorkResult |
delete(Action<? super DeleteSpec> action)Deletes the specified files. |
|
ConfigurableFileCollection |
emptyFileCollection()Creates an empty file collection. |
|
File |
file(Object file)Converts a file-like object to a File instance with project context. |
|
File |
fileOrNull(Object file)Similar to {@Link #file}, but does not throw an exception if the object is null or an empty provider. |
|
org.ysb33r.grolifant.api.core.FilePropertyWrapper |
filePropertyWrapper()Creates a simple file property wrapper that works in Gradle 4.0+ |
|
WorkResult |
sync(Action<? super CopySpec> action)Synchronizes the contents of a destination directory with some source directories and files. |
| Methods inherited from class | Name |
|---|---|
class org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy |
org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#files(java.util.Collection), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#relativePath(java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#this$dist$invoke$1(java.lang.String, java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#this$dist$set$1(java.lang.String, java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#this$dist$get$1(java.lang.String), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#updateFileProperty(org.gradle.api.provider.Property, java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#toSafePath([Ljava.lang.String;), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#listDirs(java.io.File), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#resolveFilesFromCopySpec(org.gradle.api.file.CopySpec), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#relativePathToProjectDir(java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#relativeRootPath(java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#relativePathToRootDir(java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#filesDropNull(java.util.Collection), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#invokeMethod(java.lang.String, java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#createTempDirectory(java.lang.String), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#getMetaClass(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#setMetaClass(groovy.lang.MetaClass), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#toSafeFileName(java.lang.String), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#setProperty(java.lang.String, java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#getProperty(java.lang.String), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#wait(long, int), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#wait(long), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#wait(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#equals(java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#toString(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#hashCode(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#getClass(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#notify(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#notifyAll(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#fileOrNull(java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#relativePathNotEmpty(java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#toSafeFile([Ljava.lang.String;), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#emptyFileCollection(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#filePropertyWrapper(), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#delete(org.gradle.api.Action), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#copy(org.gradle.api.Action), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#file(java.lang.Object), org.ysb33r.grolifant.loadable.core.FileSystemOperationsProxy#sync(org.gradle.api.Action) |
Copies the specified files.
action - Configures a CopySpecDeletes the specified files.
action - Configures a DeleteSpecCreates an empty file collection.
Converts a file-like object to a File instance with project context.
Converts any of the following recursively until it gets to a file:
CharSequence including String and GString.
file: schemes.
file - Potential File objectSimilar to {
null or an empty provider.file - Potential File objectnull.Creates a simple file property wrapper that works in Gradle 4.0+
Synchronizes the contents of a destination directory with some source directories and files.
action - Action to configure the CopySpec.