Class GosuCompileOptions

java.lang.Object
org.gosulang.gradle.tasks.compile.GosuCompileOptions
All Implemented Interfaces:
Serializable

public class GosuCompileOptions extends Object implements Serializable
See Also:
  • Constructor Details

    • GosuCompileOptions

      public GosuCompileOptions()
  • Method Details

    • isFailOnError

      @Input public boolean isFailOnError()
      Tells whether the compilation task should fail if compile errors occurred. Defaults to true.
      Returns:
      the failOnError property
    • setFailOnError

      public void setFailOnError(boolean failOnError)
      Sets whether the compilation task should fail if compile errors occurred. Defaults to true.
      Parameters:
      failOnError - Fail the compilation task if compile errors occur
    • isFork

      @Input public boolean isFork()
      Returns:
      Whether to run the Gosu compiler in a separate process. Defaults to true.
    • setFork

      public void setFork(boolean fork)
      Parameters:
      fork - Sets whether to run the Gosu compiler in a separate process. Defaults to true.
    • getForkOptions

      public org.gradle.api.tasks.compile.BaseForkOptions getForkOptions()
      Returns:
      options for running the Gosu compiler in a separate process. These options only take effect if fork is set to true.
    • setForkOptions

      public void setForkOptions(org.gradle.api.tasks.compile.BaseForkOptions forkOptions)
      Parameters:
      forkOptions - Set these options for running the Gosu compiler in a separate process. These options only take effect if fork is set to true.
    • isCheckedArithmetic

      @Input public boolean isCheckedArithmetic()
      Returns:
      Whether compilation with checked arithmetic operations is enabled or not.
    • setCheckedArithmetic

      public void setCheckedArithmetic(boolean checkedArithmetic)
      If true, Gosu classes will be compiled with -DcheckedArithmetic=true. Defaults to false.
      Parameters:
      checkedArithmetic - Whether to compile with checked arithmetic
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets whether the compilation task should use verbose logging. Defaults to false.
      Parameters:
      verbose - Use verbose logging
    • isVerbose

      @Console public boolean isVerbose()
      Returns:
      Whether to use verbose logging. Defaults to false.
    • setMaxWarns

      public void setMaxWarns(int maxwarns)
    • getMaxWarns

      @Input @Optional public Integer getMaxWarns()
      Returns:
      Max error threshold, if specified. May be null.
    • setMaxErrs

      public void setMaxErrs(int maxerrs)
    • getMaxErrs

      @Input @Optional public Integer getMaxErrs()
      Returns:
      Max error threshold, if specified. May be null.