Class GosuCompileOptions
java.lang.Object
org.gosulang.gradle.tasks.compile.GosuCompileOptions
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.tasks.compile.BaseForkOptionsbooleanbooleanTells whether the compilation task should fail if compile errors occurred.booleanisFork()booleanvoidsetCheckedArithmetic(boolean checkedArithmetic) If true, Gosu classes will be compiled with-DcheckedArithmetic=true.voidsetFailOnError(boolean failOnError) Sets whether the compilation task should fail if compile errors occurred.voidsetFork(boolean fork) voidsetForkOptions(org.gradle.api.tasks.compile.BaseForkOptions forkOptions) voidsetMaxErrs(int maxerrs) voidsetMaxWarns(int maxwarns) voidsetVerbose(boolean verbose) Sets whether the compilation task should use verbose logging.
-
Constructor Details
-
GosuCompileOptions
public GosuCompileOptions()
-
-
Method Details
-
isFailOnError
@Input public boolean isFailOnError()Tells whether the compilation task should fail if compile errors occurred. Defaults totrue.- Returns:
- the failOnError property
-
setFailOnError
public void setFailOnError(boolean failOnError) Sets whether the compilation task should fail if compile errors occurred. Defaults totrue.- 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 totrue.
-
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
forkis set totrue.
-
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 ifforkis set totrue.
-
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 tofalse.- Parameters:
checkedArithmetic- Whether to compile with checked arithmetic
-
setVerbose
public void setVerbose(boolean verbose) Sets whether the compilation task should use verbose logging. Defaults tofalse.- 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
- Returns:
- Max error threshold, if specified. May be null.
-
setMaxErrs
public void setMaxErrs(int maxerrs) -
getMaxErrs
- Returns:
- Max error threshold, if specified. May be null.
-