Interface ArtifactAccessTransformer.Parameters
- All Superinterfaces:
TransformParameters
- Enclosing class:
ArtifactAccessTransformer
The parameters for the transform action.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.artifacts.transform.TransformParameters
TransformParameters.None -
Method Summary
Modifier and TypeMethodDescriptiongetArgs()The arguments to pass into AccessTransformers.The caches directory to use.The dependency configuration to resolve where AccessTransformers will be found in.The AccessTransformer configuration to use.The executable path of the Java launcher to use to run AccessTransformers.The main class for AccessTransformers.
-
Method Details
-
getClasspath
The dependency configuration to resolve where AccessTransformers will be found in.- Returns:
- A property for the AccessTransformers dependency
-
getMainClass
-
getJavaLauncher
The executable path of the Java launcher to use to run AccessTransformers.
This can be acquired by mapping (a provider of) a
JavaLaunchertoJavaLauncher.getExecutablePath()->RegularFile.getAsFile()->File.getAbsolutePath().- Returns:
- A property for the path of the Java launcher
-
getArgs
The arguments to pass into AccessTransformers.
These arguments accept tokens that will be replaced when the transform action is run.
inJar- The input jaratFile- The AccessTransformers configuration fileoutJar- The output jarlogFile- The log file
- Returns:
- A property for the arguments
-
getConfig
The AccessTransformer configuration to use.
This is usually named
accesstransformer.cfg. In Forge, it is required in production that this file exists in the mod jar'sMETA-INFdirectory.- Returns:
- A property for the AccessTransformer configuration
-
getCachesDir
The caches directory to use.
This will include non-transform output files, such as in-house caching for the transformation process.
- Returns:
- A property for the caches directory
-