public class GosuCompileOptions
extends org.gradle.api.tasks.compile.AbstractOptions
| Constructor and Description |
|---|
GosuCompileOptions() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
excludeFromAntProperties(java.lang.String fieldName)
Some compiler options are not recognizable by the gosuc ant task;
this method prevents incompatible values from being passed to the ant configuration closure
|
boolean |
isCheckedArithmetic() |
boolean |
isFailOnError()
Tells whether the compilation task should fail if compile errors occurred.
|
boolean |
isUseAnt()
Tells whether to use Ant for compilation.
|
void |
setCheckedArithmetic(boolean checkedArithmetic)
If true, Gosu classes will be compiled with
-DcheckedArithmetic=true. |
void |
setFailOnError(boolean failOnError)
Sets whether the compilation task should fail if compile errors occurred.
|
void |
setUseAnt(boolean useAnt) |
@Input public boolean isFailOnError()
true.public void setFailOnError(boolean failOnError)
true.failOnError - Fail the compilation task if compile errors occurpublic boolean isCheckedArithmetic()
public void setCheckedArithmetic(boolean checkedArithmetic)
-DcheckedArithmetic=true. Defaults to false.checkedArithmetic - Whether to compile with checked arithmeticpublic boolean isUseAnt()
true, the standard Ant gosuc task will be used for
Gosu compilation. false is currently not supported.
Defaults to true.
public void setUseAnt(boolean useAnt)
useAnt - true if the Ant-based compiler should be used, false otherwiseprotected boolean excludeFromAntProperties(java.lang.String fieldName)
excludeFromAntProperties in class org.gradle.api.tasks.compile.AbstractOptionsfieldName - name of field to exclude from the dynamically generated ant script