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

    Constructors
    Constructor
    Description
    HytaleRunModel(String name, org.gradle.api.Project project, org.gradle.api.file.RegularFileProperty serverJar, org.gradle.api.file.RegularFileProperty assetsZip)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    arg(String argument)
    Add an argument to the run configuration.
    void
    environment(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.RegularFileProperty
    The assets zip file to use for this run configuration.
    abstract org.gradle.api.provider.Property<Boolean>
    Whether this run configuration is enabled.
    abstract org.gradle.api.provider.MapProperty<String,String>
    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 String
     
    abstract org.gradle.api.file.RegularFileProperty
    The 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.DirectoryProperty
    The directory this run configuration will use as working directory.
    void
    jvmArg(String jvmArgument)
    Add a JVM argument to the run configuration.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public abstract org.gradle.api.provider.ListProperty<String> getArguments()
      The arguments to pass to the Hytale server on launch.
      Returns:
      the list of arguments
    • getJvmArguments

      public abstract org.gradle.api.provider.ListProperty<String> getJvmArguments()
      The JVM arguments to pass to the Hytale server on launch.
      Returns:
      the list of JVM arguments
    • getEnvironment

      public abstract org.gradle.api.provider.MapProperty<String,String> getEnvironment()
      The environment variables to set for the Hytale server process.
      Returns:
      the map of environment variables
    • getAllowOp

      public abstract org.gradle.api.provider.Property<Boolean> 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

      public abstract org.gradle.api.provider.Property<String> getMainClassName()
      The main class name to launch.
      Returns:
      the main class name property
    • getEnabled

      public abstract org.gradle.api.provider.Property<Boolean> getEnabled()
      Whether this run configuration is enabled.
      Returns:
      the enabled property
    • getIdeName

      public abstract org.gradle.api.provider.Property<String> 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

      public void arg(String argument)
      Add an argument to the run configuration.
      Parameters:
      argument - the argument to add
    • jvmArg

      public void jvmArg(String jvmArgument)
      Add a JVM argument to the run configuration.
      Parameters:
      jvmArgument - the JVM argument to add
    • environment

      public void environment(String key, String value)
      Add an environment variable to the run configuration.
      Parameters:
      key - the environment variable key
      value - the environment variable value
    • getName

      public @NonNull String getName()
      Specified by:
      getName in interface org.gradle.api.Named