@SuppressWarnings('MethodCount') @groovy.transform.CompileStatic 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. |
|
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. |
|
java.util.List<File> |
fileize(Iterable<Object> files)Converts a collection of file-like objects to a list of File instances with project context. |
|
FileCollection |
files(Object... paths) |
|
protected org.ysb33r.grolifant.api.core.ArchiveOperationsProxy |
getArchiveOperations() |
|
ConsoleOutput |
getConsoleOutput()Console output mode |
|
protected org.ysb33r.grolifant.api.core.ExecOperationsProxy |
getExecOperations() |
|
org.ysb33r.grolifant.api.core.ExecTools |
getExecTools()Tools to deal with out-of-process, non-JVM, executables. |
|
ExtensionContainer |
getExtensions()Extensions container for the project. |
|
org.ysb33r.grolifant.api.core.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. |
|
Provider<String> |
getGroupProvider()Lazy-evaluated project group.https://gitlab.com/ysb33rOrg/grolifant/-/jobs/3248448094 |
|
org.ysb33r.grolifant.api.core.JvmTools |
getJvmTools()Tools for working with JVMs |
|
File |
getProjectDir()Returns the project directory. |
|
String |
getProjectName()The project name |
|
String |
getProjectPath()Get project path. |
|
File |
getProjectRootDir()Returns the root directory of the project. |
|
org.ysb33r.grolifant.api.core.ProjectTools |
getProjectTools()Tools to deal with project & configuration specifics down to Gradle 4.0. |
|
protected org.ysb33r.grolifant.api.core.GradleSysEnvProvider |
getPropertyProvider() |
|
org.ysb33r.grolifant.api.core.ProviderTools |
getProviderTools()Tools to deal with provider down to Gradle 4.0. |
|
ProviderFactory |
getProviders()A reference to the provider factory. |
|
org.ysb33r.grolifant.api.core.RepositoryTools |
getRepositoryTools()Tools for dealing with repositories. |
|
org.ysb33r.grolifant.api.core.StringTools |
getStringTools()Tools for dealing with conversions of various objects into string or lists of strings. |
|
org.ysb33r.grolifant.api.core.TaskTools |
getTasks()Utilities for working with tasks in a consistent manner across Gradle versions. |
|
Provider<String> |
getVersionProvider()Lazy-evaluated project version. |
|
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 |
|
void |
updateFileProperty(Provider<File> provider, Object file)Updates a file provider. |
|
void |
updateStringProperty(Provider<String> provider, Object str)Updates a string provider. |
|
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.Converts a collection of file-like objects to a list of File instances with project context.
It will convert anything that the singular version of FileUtils.fileize can do.
In addition it will recursively resolve any collections that result out of resolving the supplied items.
files - List of object to evaluate
Creates a FileCollection containing the given files, as defined by Project#files(Object ...).
This method can also be used to create an empty collection, but the collection may not be mutated later.
paths - The paths to the files. May be empty.Console output mode
Tools to deal with out-of-process, non-JVM, executables.
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.
Lazy-evaluated project group.https://gitlab.com/ysb33rOrg/grolifant/-/jobs/3248448094
Tools for working with JVMs
Get project path.
Returns the root directory of the project.
Tools to deal with project & configuration specifics down to Gradle 4.0.
Tools to deal with provider down to Gradle 4.0.
A reference to the provider factory.
Tools for dealing with repositories.
Tools for dealing with conversions of various objects into string or lists of strings.
Utilities for working with tasks in a consistent manner across Gradle versions.
Lazy-evaluated project version.
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 fileUpdates a file provider.
Update property or otherwise the provider will be assigned a new Provider instance.
provider - Current propertyfile - Value that should be lazy-resolved to a file using file.Updates a string provider.
Update property or otherwise the provider will be assigned a new Provider instance.
provider - Current propertystr - Value that should be lazy-resolved to a string .