Interface AccessTransformersContainer.Options
- Enclosing interface:
AccessTransformersContainer
-
Method Summary
Modifier and TypeMethodDescriptionvoidSets the arguments to use when running AccessTransformers.default voidSets the arguments to use when running AccessTransformers.voidSets the arguments to use when running AccessTransformers.voidsetClasspath(Closure<? extends Dependency> closure) default voidsetClasspath(Object dependencyNotation) Sets the dependency to use as the classpath for AccessTransformers.default voidsetClasspath(Object dependencyNotation, Closure closure) Sets the dependency to use as the classpath for AccessTransformers.default voidsetClasspath(Object dependencyNotation, Action<? super Dependency> action) Sets the dependency to use as the classpath for AccessTransformers.default voidsetClasspath(Function<? super DependencyHandler, ? extends Dependency> dependency) Sets the dependency to use as the classpath for AccessTransformers.voidsetClasspath(FileCollection files) Sets the configuration to use as the classpath for AccessTransformers.default voidsetClasspath(Provider<?> dependencyNotation) Sets the dependency to use as the classpath for AccessTransformers.default voidsetClasspath(Provider<?> dependencyNotation, Closure closure) Sets the dependency to use as the classpath for AccessTransformers.default voidsetClasspath(Provider<?> dependencyNotation, Action<? super Dependency> action) Sets the dependency to use as the classpath for AccessTransformers.default voidsetClasspath(ProviderConvertible<?> dependencyNotation) Sets the dependency to use as the classpath for AccessTransformers.default voidsetClasspath(ProviderConvertible<?> dependencyNotation, Closure closure) Sets the dependency to use as the classpath for AccessTransformers.default voidsetClasspath(ProviderConvertible<?> dependencyNotation, Action<? super Dependency> action) Sets the dependency to use as the classpath for AccessTransformers.voidSets the AccessTransformer configuration to use.voidSets the AccessTransformer configuration to use.voidsetConfig(RegularFile configFile) Sets the AccessTransformer configuration to use.voidSets the AccessTransformer configuration to use.voidsetJavaLauncher(Provider<? extends JavaLauncher> javaLauncher) Sets the Java launcher to use to run AccessTransformers.voidsetJavaLauncher(JavaLauncher javaLauncher) Sets the Java launcher to use to run AccessTransformers.voidsetMainClass(String mainClass) Sets the main class to invoke when running AccessTransformers.voidsetMainClass(Provider<String> mainClass) Sets the main class to invoke when running AccessTransformers.
-
Method Details
-
setClasspath
Sets the configuration to use as the classpath for AccessTransformers.- Parameters:
files- The file collection to use
-
setClasspath
void setClasspath(@DelegatesTo(value=DependencyHandler.class,strategy=1) Closure<? extends Dependency> closure) -
setClasspath
Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependency- The dependency to use
-
setClasspath
default void setClasspath(Object dependencyNotation, @DelegatesTo(Dependency.class) Closure closure) Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to useclosure- A configuring closure for the dependency
-
setClasspath
Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to useaction- A configuring action for the dependency
-
setClasspath
Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to use
-
setClasspath
default void setClasspath(Provider<?> dependencyNotation, @DelegatesTo(Dependency.class) Closure closure) Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to useclosure- A configuring closure for the dependency
-
setClasspath
Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to useaction- A configuring action for the dependency
-
setClasspath
Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to use
-
setClasspath
default void setClasspath(ProviderConvertible<?> dependencyNotation, @DelegatesTo(Dependency.class) Closure closure) Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to useclosure- A configuring closure for the dependency
-
setClasspath
default void setClasspath(ProviderConvertible<?> dependencyNotation, Action<? super Dependency> action) Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to useaction- A configuring action for the dependency
-
setClasspath
Sets the dependency to use as the classpath for AccessTransformers.- Parameters:
dependencyNotation- The dependency (notation) to use
-
setMainClass
-
setMainClass
-
setJavaLauncher
Sets the Java launcher to use to run AccessTransformers.
This can be easily acquired using Java toolchains.
- Parameters:
javaLauncher- The Java launcher to use- See Also:
-
setJavaLauncher
Sets the Java launcher to use to run AccessTransformers.
This can be easily acquired using Java toolchains.
- Parameters:
javaLauncher- The Java launcher to use- See Also:
- API Note:
- This method exists in case consumers have an eagerly processed
JavaLauncherobject. It is recommended to usesetJavaLauncher(Provider)instead.
-
setArgs
Sets the arguments to use when running AccessTransformers.
When processed by the transform action, these arguments will have specific tokens in them replaced.
{inJar}- The input jar{atFile}- The AccessTransformers configuration file{outJar}- The output jar{logFile}- The log file
- Parameters:
args- The arguments to use
-
setArgs
Sets the arguments to use when running AccessTransformers.
When processed by the transform action, these arguments will have specific tokens in them replaced.
{inJar}- The input jar{atFile}- The AccessTransformers configuration file{outJar}- The output jar{logFile}- The log file
- Parameters:
args- The arguments to use
-
setArgs
Sets the arguments to use when running AccessTransformers.
When processed by the transform action, these arguments will have specific tokens in them replaced.
{inJar}- The input jar{atFile}- The AccessTransformers configuration file{outJar}- The output jar{logFile}- The log file
- Parameters:
args- The arguments to use
-
setConfig
Sets the AccessTransformer configuration to use.
If the given provider does not provide a file or regular file, the result will be resolved using
Project.file(Object), similarly tosetConfig(Object).- Parameters:
configFile- The configuration file to use
-
setConfig
Sets the AccessTransformer configuration to use.- Parameters:
configFile- The configuration file to use
-
setConfig
Sets the AccessTransformer configuration to use.- Parameters:
configFile- The configuration file to use
-
setConfig
Sets the AccessTransformer configuration to use.
The given object is resolved using
Project.file(Object).- Parameters:
configFile- The configuration file to use
-