Class HytaleRunModel
java.lang.Object
net.janrupf.gradle.hytale.dev.extension.HytaleRunModel
- All Implemented Interfaces:
org.gradle.api.artifacts.dsl.Dependencies, org.gradle.api.Named
public abstract class HytaleRunModel
extends Object
implements org.gradle.api.Named, org.gradle.api.artifacts.dsl.Dependencies
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gradle.api.Named
org.gradle.api.Named.Namer -
Constructor Summary
ConstructorsConstructorDescriptionHytaleRunModel(String name, org.gradle.api.Project project, org.gradle.api.file.RegularFileProperty serverJar, org.gradle.api.file.RegularFileProperty assetsZip) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an argument to the run configuration.voidenvironment(String key, String value) Add an environment variable to the run configuration.abstract org.gradle.api.provider.Property<Boolean> Whether to allow operator commands in the server.abstract org.gradle.api.provider.ListProperty<String> The arguments to pass to the Hytale server on launch.abstract org.gradle.api.provider.Property<org.gradle.api.file.FileSystemLocation> The location of the plugin assets.abstract org.gradle.api.file.RegularFilePropertyThe assets zip file to use for this run configuration.abstract org.gradle.api.provider.Property<Boolean> Whether this run configuration is enabled.The environment variables to set for the Hytale server process.abstract org.gradle.api.provider.Property<String> The IDE name for this run configuration.abstract org.gradle.api.provider.ListProperty<String> The JVM arguments to pass to the Hytale server on launch.abstract org.gradle.api.provider.Property<String> The main class name to launch.@NonNull StringgetName()abstract org.gradle.api.file.RegularFilePropertyThe server jar file to use for this run configuration.abstract org.gradle.api.provider.Property<org.gradle.api.tasks.SourceSet> The source set this run configuration is associated with.abstract org.gradle.api.file.DirectoryPropertyThe directory this run configuration will use as working directory.voidAdd a JVM argument to the run configuration.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.artifacts.dsl.Dependencies
constraint, constraint, constraint, constraint, getDependencyConstraintFactory, getDependencyFactory, getObjectFactory, getProject, module, module, project, project
-
Constructor Details
-
HytaleRunModel
@Inject public HytaleRunModel(String name, org.gradle.api.Project project, org.gradle.api.file.RegularFileProperty serverJar, org.gradle.api.file.RegularFileProperty assetsZip)
-
-
Method Details
-
getWorkingDirectory
public abstract org.gradle.api.file.DirectoryProperty getWorkingDirectory()The directory this run configuration will use as working directory.- Returns:
- the working directory property
-
getArguments
The arguments to pass to the Hytale server on launch.- Returns:
- the list of arguments
-
getJvmArguments
The JVM arguments to pass to the Hytale server on launch.- Returns:
- the list of JVM arguments
-
getEnvironment
-
getAllowOp
Whether to allow operator commands in the server.- Returns:
- the allow op property
-
getAssetsZip
public abstract org.gradle.api.file.RegularFileProperty getAssetsZip()The assets zip file to use for this run configuration.- Returns:
- the assets zip file property
-
getServerJar
public abstract org.gradle.api.file.RegularFileProperty getServerJar()The server jar file to use for this run configuration.- Returns:
- the server jar file property
-
getSourceSet
public abstract org.gradle.api.provider.Property<org.gradle.api.tasks.SourceSet> getSourceSet()The source set this run configuration is associated with.- Returns:
- the source set property
-
getMainClassName
The main class name to launch.- Returns:
- the main class name property
-
getEnabled
Whether this run configuration is enabled.- Returns:
- the enabled property
-
getIdeName
The IDE name for this run configuration.- Returns:
- the IDE name property
-
getAssetsLocation
public abstract org.gradle.api.provider.Property<org.gradle.api.file.FileSystemLocation> getAssetsLocation()The location of the plugin assets.- Returns:
- the assets location property
-
arg
Add an argument to the run configuration.- Parameters:
argument- the argument to add
-
jvmArg
Add a JVM argument to the run configuration.- Parameters:
jvmArgument- the JVM argument to add
-
environment
-
getName
- Specified by:
getNamein interfaceorg.gradle.api.Named
-