abstract class ProjectOperationsProxy extends Object
| Constructor and description |
|---|
protected ProjectOperationsProxy
(Project tempProjectReference) |
| 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. |
|
CopySpec |
copySpec(Action<? super CopySpec> action)Creates a CopySpec which can later be used to copy files or create an archive. |
|
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. |
|
protected ArchiveOperationsProxy |
getArchiveOperations() |
|
ConsoleOutput |
getConsoleOutput()Console output mode |
|
protected ExecOperationsProxy |
getExecOperations() |
|
ExtensionContainer |
getExtensions()Extensions container for the project. |
|
protected FileSystemOperationsProxy |
getFileSystemOperations() |
|
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 |
|
protected GradleSysEnvProvider |
getPropertyProvider() |
|
ProviderFactory |
getProviders()A reference to the provider factory. |
|
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 |
|
ExecResult |
javaexec(Action<? super JavaExecSpec> action)Executes the specified external java process. |
|
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 CopySpec which can later be used to copy files or create an archive. The given action is used to configure the CopySpec before it is returned by this method.
action - Action to configure the CopySpecCreates 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.
Console output mode
Extensions container for the project.
Gradle user home directory. Usually ~/.gradle on non -Windows.
A reference to the provider factory.
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.Executes the specified external java process.
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