Interface SlimeLauncherOptions
- All Superinterfaces:
org.gradle.api.Named,SlimeLauncherOptionsNested
- All Known Subinterfaces:
SlimeLauncherOptionsInternal
- All Known Implementing Classes:
SlimeLauncherOptionsImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Method Summary
Modifier and TypeMethodDescriptiondefault voidAdds to the classpath to use.default voidAdds to the classpath to use.default voidclasspath(org.gradle.api.file.FileCollection classpath) Adds to the classpath to use.org.gradle.api.file.ConfigurableFileCollectionThe classpath to use.getName()org.gradle.api.file.DirectoryPropertyThe working directory to use.default voidsetClasspath(Iterable<?> classpath) Sets the classpath to use.default voidsetClasspath(Object... classpath) Sets the classpath to use.default voidsetClasspath(org.gradle.api.file.FileCollection classpath) Sets the classpath to use.voidwith(String sourceSetName, org.gradle.api.Action<? super SlimeLauncherOptionsNested> action) default voidwith(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.Action<? super SlimeLauncherOptionsNested> action) Methods inherited from interface net.minecraftforge.forgedev.tasks.launcher.SlimeLauncherOptionsNested
args, args, args, args, environment, environment, environment, getArgs, getEnvironment, getJvmArgs, getMainClass, getMaxHeapSize, getMinHeapSize, getSystemProperties, jvmArgs, jvmArgs, jvmArgs, jvmArgs, setArgs, setJvmArgs, systemProperties, systemProperties, systemProperty
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.gradle.api.Named
-
with
default void with(org.gradle.api.tasks.SourceSet sourceSet, org.gradle.api.Action<? super SlimeLauncherOptionsNested> action) -
with
-
getClasspath
@InputFiles @Classpath @Optional org.gradle.api.file.ConfigurableFileCollection getClasspath()The classpath to use.
The classpath in question must include Slime Launcher in it. By default, the forgedev extension adds Slime Launcher as a dependency to the consuming project's runtimeClasspath configuration.
Keep in mind that if the
JavaExectask is configured to have a different main class, the classpath does not need to include Slime Launcher.- Returns:
- The classpath to use
-
getWorkingDir
@Internal org.gradle.api.file.DirectoryProperty getWorkingDir()The working directory to use.
By default, this will be
run/sourceSet/name.To clarify: this is the working directory of the Java process. Slime Launcher uses absolute file locations to place its caches and metadata, which do not interfere with the working directory.
- Specified by:
getWorkingDirin interfaceSlimeLauncherOptionsNested- Returns:
- A property for the working directory
-
classpath
Adds to the classpath to use.- Parameters:
classpath- The classpath to include with the existing classpath- See Also:
- API Note:
- Unlike
setClasspath(Object...), this method does not replace the existing classpath.
-
classpath
Adds to the classpath to use.- Parameters:
classpath- The classpath to include with the existing classpath- See Also:
- API Note:
- Unlike
setClasspath(Iterable), this method does not replace the existing classpath.
-
classpath
default void classpath(org.gradle.api.file.FileCollection classpath) Adds to the classpath to use.- Parameters:
classpath- The classpath to include with the existing classpath- See Also:
- API Note:
- Unlike
setClasspath(FileCollection), this method does not replace the existing classpath.
-
setClasspath
Sets the classpath to use.- Parameters:
classpath- The classpath- See Also:
- API Note:
- This method will replace the existing classpath. To add to it, use
classpath(Object...).
-
setClasspath
Sets the classpath to use.- Parameters:
classpath- The classpath- See Also:
- API Note:
- This method will replace the existing classpath. To add to it, use
classpath(Iterable).
-
setClasspath
default void setClasspath(org.gradle.api.file.FileCollection classpath) Sets the classpath to use.- Parameters:
classpath- The classpath- See Also:
- API Note:
- This method will replace the existing classpath. To add to it, use
classpath(FileCollection).
-