Package net.neoforged.elc.configs
Record Class GradleLaunchConfig
java.lang.Object
java.lang.Record
net.neoforged.elc.configs.GradleLaunchConfig
- Record Components:
tasks- An ordered list of gradle tasks that will be executed by this config.workingDirectory- The working directory for the launch config.gradleDistribution- The gradle distribution to use.offlineMode- If offline mode is enabled or not.showConsoleView- If the eclipse console will be shown when execution begins.showExecutionView- If the eclipse "Gradle Executions" window will be shown when execution begins.gradleUserHome- The gradle user home.javaHome- The java home used by gradle.arguments- Command-line arguments passed to the program (gradle, in this case) before execution.jvmArguments- Command-line arguments passed to the JVM before startup.overrideWorkspace- If the workspace settings are overridden. If false, most of the settings here are ignored. SeeGradleLaunchConfig.Keys.OVERRIDE_WORKSPACE.
- All Implemented Interfaces:
LaunchConfig
public record GradleLaunchConfig(List<String> tasks, String workingDirectory, String gradleDistribution, boolean offlineMode, boolean showConsoleView, boolean showExecutionView, @Nullable String gradleUserHome, @Nullable String javaHome, List<String> arguments, List<String> jvmArguments, boolean overrideWorkspace)
extends Record
implements LaunchConfig
This class implements the
org.eclipse.buildship.core.launch.runconfiguration launch configuration type.
It is used for launching one or more gradle tasks.
When executing this via LaunchGroup, it must always be run in LaunchGroup.Mode.RUN.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder forGradleLaunchConfig.static classHolds keys relevant to serialization ofGradleLaunchConfig. -
Constructor Summary
ConstructorsConstructorDescriptionGradleLaunchConfig(List<String> tasks, String workingDirectory, String gradleDistribution, boolean offlineMode, boolean showConsoleView, boolean showExecutionView, @Nullable String gradleUserHome, @Nullable String javaHome, List<String> arguments, List<String> jvmArguments, boolean overrideWorkspace) Creates an instance of aGradleLaunchConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theargumentsrecord component.Serializes this launch configuration into E-Attribute form forLaunchConfig.write(Writer).static GradleLaunchConfig.BuilderCreates a new builder for a specific Eclipse project.final booleanIndicates whether some other object is "equal to" this one.getType()Returns the type name that corresponds to this launch config.Returns the value of thegradleDistributionrecord component.@Nullable StringReturns the value of thegradleUserHomerecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringjavaHome()Returns the value of thejavaHomerecord component.Returns the value of thejvmArgumentsrecord component.booleanReturns the value of theofflineModerecord component.booleanReturns the value of theoverrideWorkspacerecord component.booleanReturns the value of theshowConsoleViewrecord component.booleanReturns the value of theshowExecutionViewrecord component.tasks()Returns the value of thetasksrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkingDirectoryrecord component.Methods inherited from interface net.neoforged.elc.configs.LaunchConfig
write
-
Constructor Details
-
GradleLaunchConfig
public GradleLaunchConfig(List<String> tasks, String workingDirectory, String gradleDistribution, boolean offlineMode, boolean showConsoleView, boolean showExecutionView, @Nullable @Nullable String gradleUserHome, @Nullable @Nullable String javaHome, List<String> arguments, List<String> jvmArguments, boolean overrideWorkspace) Creates an instance of aGradleLaunchConfigrecord class.- Parameters:
tasks- the value for thetasksrecord componentworkingDirectory- the value for theworkingDirectoryrecord componentgradleDistribution- the value for thegradleDistributionrecord componentofflineMode- the value for theofflineModerecord componentshowConsoleView- the value for theshowConsoleViewrecord componentshowExecutionView- the value for theshowExecutionViewrecord componentgradleUserHome- the value for thegradleUserHomerecord componentjavaHome- the value for thejavaHomerecord componentarguments- the value for theargumentsrecord componentjvmArguments- the value for thejvmArgumentsrecord componentoverrideWorkspace- the value for theoverrideWorkspacerecord component
-
-
Method Details
-
getType
Description copied from interface:LaunchConfigReturns the type name that corresponds to this launch config.- Specified by:
getTypein interfaceLaunchConfig
-
bakeAttributes
Description copied from interface:LaunchConfigSerializes this launch configuration into E-Attribute form forLaunchConfig.write(Writer).- Specified by:
bakeAttributesin interfaceLaunchConfig- Returns:
- A list containing all E-Attributes that make up this launch config.
-
builder
Creates a new builder for a specific Eclipse project.- Parameters:
project- The name of the Eclipse project the launch config is for.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tasks
Returns the value of thetasksrecord component.- Returns:
- the value of the
tasksrecord component
-
workingDirectory
Returns the value of theworkingDirectoryrecord component.- Returns:
- the value of the
workingDirectoryrecord component
-
gradleDistribution
Returns the value of thegradleDistributionrecord component.- Returns:
- the value of the
gradleDistributionrecord component
-
offlineMode
public boolean offlineMode()Returns the value of theofflineModerecord component.- Returns:
- the value of the
offlineModerecord component
-
showConsoleView
public boolean showConsoleView()Returns the value of theshowConsoleViewrecord component.- Returns:
- the value of the
showConsoleViewrecord component
-
showExecutionView
public boolean showExecutionView()Returns the value of theshowExecutionViewrecord component.- Returns:
- the value of the
showExecutionViewrecord component
-
gradleUserHome
Returns the value of thegradleUserHomerecord component.- Returns:
- the value of the
gradleUserHomerecord component
-
javaHome
Returns the value of thejavaHomerecord component.- Returns:
- the value of the
javaHomerecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
jvmArguments
Returns the value of thejvmArgumentsrecord component.- Returns:
- the value of the
jvmArgumentsrecord component
-
overrideWorkspace
public boolean overrideWorkspace()Returns the value of theoverrideWorkspacerecord component.- Returns:
- the value of the
overrideWorkspacerecord component
-