@SuppressWarnings('MethodCount') @groovy.transform.CompileStatic abstract class ProjectOperationsProxy extends Object
| Constructor and description |
|---|
protected ProjectOperationsProxy
(Project tempProjectReference, FileSystemOperations fsOperations, TaskTools taskTools1) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
ReadableResource |
bzip2Resource(Object compressedFile)Creates resource that points to a bzip2 compressed file at the given path. |
|
WorkResult |
copy(Action<? super CopySpec> action)Performs a copy according to copy specification. |
|
boolean |
delete(Object... paths) |
|
WorkResult |
delete(Action<? super DeleteSpec> action) |
|
Provider<String> |
environmentVariable(Object name, boolean configurationTimeSafety)Creates a provider to an environmental variable. |
|
ExecResult |
exec(Action<? super ExecSpec> action)Executes the specified external process. |
|
File |
file(Object path)Convert an object to a file |
|
File |
fileOrNull(Object file)Similar to {@Link #file}, but does not throw an exception if the object is null or an empty provider. |
|
protected ArchiveOperationsProxy |
getArchiveOperations() |
|
ConsoleOutput |
getConsoleOutput()Console output mode |
|
protected ExecOperationsProxy |
getExecOperations() |
|
ExtensionContainer |
getExtensions()Extensions container for the project. |
|
protected FileSystemOperationsProxy |
getFileSystemOperations() |
|
FileSystemOperations |
getFsOperations()Returns an object instance for filesystem operations that deals coprrectly with the functionality of the curretn Gradle version. |
|
String |
getFullProjectPath()Get the full project path including the root project name in case of a multi-project. |
|
LogLevel |
getGradleLogLevel()Get the minimum log level for Gradle. |
|
Provider<File> |
getGradleUserHomeDir()Gradle user home directory. |
|
File |
getProjectDir()Returns the project directory. |
|
String |
getProjectName()The project name |
|
String |
getProjectPath()Get project path. |
|
protected GradleSysEnvProvider |
getPropertyProvider() |
|
ProviderFactory |
getProviders()A reference to the provider factory. |
|
TaskTools |
getTasks()Utilities for working with tasks in a consistent manner across Gradle versions. |
|
Provider<String> |
gradleProperty(Object name, boolean configurationTimeSafety)Creates a provider to a project property. |
|
ReadableResource |
gzipResource(Object compressedFile)Creates resource that points to a gzip compressed file at the given path. |
|
boolean |
isConfigurationCacheEnabled()Whether configuration cache is enabled for a build. |
|
boolean |
isOffline()Whether Gradle is operating in offline mode. |
|
boolean |
isRefreshDependencies()Whether dependencies should be refreshed. |
|
boolean |
isRerunTasks()Whether tasks should be re-ruin |
|
boolean |
isRoot()Whether current project is the root project. |
|
ExecResult |
javaexec(Action<? super JavaExecSpec> action)Executes the specified external java process. |
|
String |
relativePath(Object f)Returns the relative path from the project directory to the given path. |
|
Provider<String> |
resolveProperty(Object name, Object defaultValue, boolean configurationTimeSafety)Searches by Gradle property, then system property and finally by environment variable using the PropertyResolver convention. |
|
Provider<String> |
systemProperty(Object name, boolean configurationTimeSafety)Creates a provider to a system property. |
|
FileTree |
tarTree(Object tarPath)Returns a TAR tree presentation |
|
FileTree |
zipTree(Object zipPath)Returns a ZIP tree presentation |
Creates resource that points to a bzip2 compressed file at the given path.
compressedFile - File evaluated as per file.Performs a copy according to copy specification.
action - Copy specificationCreates a provider to an environmental variable.
name - Anything convertible to a stringconfigurationTimeSafety - Whether this property can be read safely at configuration time. It is suggested
to just use atConfigurationTime for this parameterExecutes the specified external process.
Convert an object to a file
path - Path to convert.Similar to {
null or an empty provider.file - Potential File objectnull.Console output mode
Extensions container for the project.
Returns an object instance for filesystem operations that deals coprrectly with the functionality of the curretn Gradle version.
Get the full project path including the root project name in case of a multi-project.
Gradle user home directory. Usually ~/.gradle on non -Windows.
Get project path.
A reference to the provider factory.
Utilities for working with tasks in a consistent manner across Gradle versions.
Creates a provider to a project property.
name - Anything convertible to a stringconfigurationTimeSafety - Whether this property can be read safely at configuration time. It is suggested
to just use atConfigurationTime for this parameterCreates resource that points to a gzip compressed file at the given path.
compressedFile - File evaluated as per file.Whether configuration cache is enabled for a build.
true is configuration cache is available and enabled.Whether Gradle is operating in offline mode.
true if offline.Whether dependencies should be refreshed.
true to check dependencies again.Whether tasks should be re-ruin
true if tasks were set to be re-run.Whether current project is the root project.
true is current project is root project.Executes the specified external java process.
Returns the relative path from the project directory to the given path.
f - Object that is resolvable to a file within project contextnull.
Searches by Gradle property, then system property and finally by environment variable using the
PropertyResolver convention.
name - Anything convertible to a stringdefaultValue - Default value to return if the property search order does not return any value.
Can be null. Anything convertible to a string.configurationTimeSafety - Whether this property can be read safely at configuration time. It is suggested
to just use atConfigurationTime for this parameter.Creates a provider to a system property.
name - Anything convertible to a stringconfigurationTimeSafety - Whether this property can be read safely at configuration time. It is suggested
to just use atConfigurationTime for this parameterReturns a TAR tree presentation
tarPath - Path to tar file