Interface SlimeLauncherOptionsNested
- All Known Subinterfaces:
SlimeLauncherOptions,SlimeLauncherOptionsInternal
- All Known Implementing Classes:
SlimeLauncherOptionsImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds to the arguments to pass to the main class.voidAdds to the arguments to pass to the main class.voidAdds to the arguments to pass to the main class.voidAdds to the arguments to pass to the main class.voidenvironment(String name, Object value) Adds a single environment variable to use.voidenvironment(Map<String, ?> properties) Adds to the environment variables to use.voidenvironment(org.gradle.api.provider.Provider<? extends Map<String, ?>> properties) Adds to the environment variables to use.org.gradle.api.provider.ListProperty<String> getArgs()The arguments to pass to the main class.The environment variables to use.org.gradle.api.provider.Property<Boolean> Wither or not to inherit arguments from the UserDev provided run configs.org.gradle.api.provider.Property<Boolean> Wither or not to inherit JVM arguments from the UserDev provided run configs.org.gradle.api.provider.ListProperty<String> The JVM arguments to use.org.gradle.api.provider.Property<String> The main class for Slime Launcher to use.org.gradle.api.provider.Property<String> The maximum memory heap size to use.org.gradle.api.provider.Property<String> The minimum memory heap size to use.The system properties to use.org.gradle.api.file.DirectoryPropertyThe working directory to use.voidAdds to the JVM arguments to use.voidAdds to the JVM arguments to use.voidAdds to the JVM arguments to use.voidAdds to the JVM arguments to use.voidSets the arguments to pass to the main class.voidsetJvmArgs(Object... jvmArgs) Sets the JVM arguments to use.voidsystemProperties(Map<String, ?> properties) Adds to the system properties to use.voidsystemProperties(org.gradle.api.provider.Provider<? extends Map<String, ?>> properties) Adds to the system properties to use.voidsystemProperty(String name, Object value) Adds a single system property to use.
-
Method Details
-
getMainClass
The main class for Slime Launcher to use.
This is the class that will be invoked by Slime Launcher, not the main class of the
JavaExectask that will be produced from these options.- Returns:
- A property for the main class
-
getInheritArgs
Wither or not to inherit arguments from the UserDev provided run configs.
If you set this to false you must specify all arguments to start the process manually.
- Returns:
- A property controlling inheritance of arguments from UserDev config file.
-
getArgs
The arguments to pass to the main class.
This is the arguments that will be passed to the main class through Slime Launcher, not the arguments for Slime Launcher itself.
- Returns:
- A property for the arguments to pass to the main class
-
getInheritJvmArgs
Wither or not to inherit JVM arguments from the UserDev provided run configs.
If you set this to false you must specify all JVM arguments to start the process manually.
- Returns:
- A property controlling inheritance of JVM arguments from UserDev config file.
-
getJvmArgs
The JVM arguments to use.
These are applied immediately when Slime Launcher is executed. A reminder that Slime Launcher is not a re-launcher but a dev-environment bootstrapper.
- Returns:
- A property for the JVM arguments
-
getMinHeapSize
The minimum memory heap size to use.
Working with this property is preferred over manually using the
-Xmsargument in the JVM arguments.- Returns:
- A property for the minimum heap size
-
getMaxHeapSize
The maximum memory heap size to use.
Working with this property is preferred over manually using the
-Xmxargument in the JVM arguments.- Returns:
- A property for the maximum heap size
-
getSystemProperties
-
getEnvironment
-
getWorkingDir
@Internal org.gradle.api.file.DirectoryProperty getWorkingDir()The working directory to use.
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.
- Returns:
- A property for the working directory
-
args
Adds to the arguments to pass to the main class.- Parameters:
args- The arguments to add- See Also:
- API Note:
- To add multiple arguments, use
args(Object...)
-
args
Adds to the arguments to pass to the main class.- Parameters:
args- The arguments to add- See Also:
- API Note:
- Unlike
setArgs(String...), this method does not replace the existing arguments.
-
args
Adds to the arguments to pass to the main class.- Parameters:
args- The arguments to add- See Also:
- API Note:
- Unlike
HasMultipleValues.set(Iterable), this method does not replace the existing arguments.
-
args
Adds to the arguments to pass to the main class.- Parameters:
args- The arguments to add- See Also:
- API Note:
- Unlike
HasMultipleValues.set(Provider), this method does not replace the existing arguments.
-
setArgs
Sets the arguments to pass to the main class.- Parameters:
args- The arguments- See Also:
-
jvmArgs
Adds to the JVM arguments to use.- Parameters:
jvmArgs- The JVM argument to add- See Also:
- API Note:
- To add multiple arguments, use
jvmArgs(Object...)
-
jvmArgs
Adds to the JVM arguments to use.- Parameters:
jvmArgs- The JVM arguments to add- See Also:
- API Note:
- Unlike
setJvmArgs(Object...), this method does not replace the existing arguments.
-
jvmArgs
Adds to the JVM arguments to use.- Parameters:
jvmArgs- The JVM arguments to add- See Also:
- API Note:
- Unlike
HasMultipleValues.set(Iterable), this method does not replace the existing arguments.
-
jvmArgs
Adds to the JVM arguments to use.- Parameters:
jvmArgs- The JVM arguments to add- See Also:
- API Note:
- Unlike
HasMultipleValues.set(Provider), this method does not replace the existing arguments.
-
setJvmArgs
Sets the JVM arguments to use.- Parameters:
jvmArgs- The arguments- See Also:
-
systemProperty
Adds a single system property to use.- Parameters:
name- The namevalue- The value- See Also:
- API Note:
- To add multiple system properties at once, use
systemProperties(Provider).
-
systemProperties
Adds to the system properties to use.- Parameters:
properties- The system properties- See Also:
- API Note:
- Unlike
MapProperty.set(Map), this method does not replace the existing system properties. To add a single property, usesystemProperty(String,Object).
-
systemProperties
Adds to the system properties to use.- Parameters:
properties- The system properties- See Also:
- API Note:
- Unlike
MapProperty.set(Provider), this method does not replace the existing system properties. To add a single property, usesystemProperty(String,Object).
-
environment
Adds a single environment variable to use.- Parameters:
name- The namevalue- The value- See Also:
- API Note:
- To add multiple environment variables at once, use
environment(Provider).
-
environment
Adds to the environment variables to use.- Parameters:
properties- The environment variables- See Also:
- API Note:
- Unlike
MapProperty.set(Map), this method does not replace the existing environment variables. To add a single variable, useenvironment(String,Object).
-
environment
Adds to the environment variables to use.- Parameters:
properties- The environment variables- See Also:
- API Note:
- Unlike
MapProperty.set(Provider), this method does not replace the existing environment variables. To add a single variable, useenvironment(String,Object).
-