|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gradle.api.tasks.compile.AbstractOptions
org.gradle.api.tasks.scala.ScalaCompileOptions
public class ScalaCompileOptions
Options for Scala compilation.
| Constructor Summary | |
|---|---|
ScalaCompileOptions()
|
|
| Method Summary | |
|---|---|
protected boolean |
excludeFromAntProperties(String fieldName)
|
List<String> |
getAdditionalParameters()
Additional parameters passed to the compiler. |
protected String |
getAntPropertyName(String fieldName)
|
protected Object |
getAntPropertyValue(String fieldName,
Object value)
|
String |
getDaemonServer()
Server (host:port) on which the compile daemon is running. |
String |
getDebugLevel()
Generate debugging information. |
String |
getEncoding()
Encoding of source files. |
String |
getForce()
Whether to force the compilation of all files. |
ScalaForkOptions |
getForkOptions()
Options for running the Scala compiler in a separate process. |
IncrementalCompileOptions |
getIncrementalOptions()
|
String |
getLoggingLevel()
Specifies the amount of logging. |
List<String> |
getLoggingPhases()
Phases of the compiler to log. |
String |
getTargetCompatibility()
Deprecated. use AbstractCompile.getTargetCompatibility() instead |
boolean |
isDeprecation()
Generate deprecation information. |
boolean |
isFailOnError()
Fail the build on compilation errors. |
boolean |
isFork()
Whether to run the Scala compiler in a separate process. |
boolean |
isListFiles()
List files to be compiled. |
boolean |
isOptimize()
Run optimizations. |
boolean |
isUnchecked()
Generate unchecked information. |
boolean |
isUseAnt()
Tells whether to use Ant for compilation. |
boolean |
isUseCompileDaemon()
Whether to use the fsc compile daemon. |
void |
setAdditionalParameters(List<String> additionalParameters)
|
void |
setDaemonServer(String daemonServer)
|
void |
setDebugLevel(String debugLevel)
|
void |
setDeprecation(boolean deprecation)
|
void |
setEncoding(String encoding)
|
void |
setFailOnError(boolean failOnError)
|
void |
setForce(String force)
|
void |
setFork(boolean fork)
|
void |
setForkOptions(ScalaForkOptions forkOptions)
|
void |
setIncrementalOptions(IncrementalCompileOptions incrementalOptions)
|
void |
setListFiles(boolean listFiles)
|
void |
setLoggingLevel(String loggingLevel)
|
void |
setLoggingPhases(List<String> loggingPhases)
|
void |
setOptimize(boolean optimize)
|
void |
setTargetCompatibility(String targetCompatibility)
Deprecated. use AbstractCompile.setTargetCompatibility(java.lang.String) instead |
void |
setUnchecked(boolean unchecked)
|
void |
setUseAnt(boolean useAnt)
|
void |
setUseCompileDaemon(boolean useCompileDaemon)
|
| Methods inherited from class org.gradle.api.tasks.compile.AbstractOptions |
|---|
define, optionMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScalaCompileOptions()
| Method Detail |
|---|
public boolean isUseCompileDaemon()
public void setUseCompileDaemon(boolean useCompileDaemon)
public String getDaemonServer()
public void setDaemonServer(String daemonServer)
public boolean isFailOnError()
public void setFailOnError(boolean failOnError)
public boolean isDeprecation()
public void setDeprecation(boolean deprecation)
public boolean isUnchecked()
public void setUnchecked(boolean unchecked)
@Input @Optional public String getDebugLevel()
public void setDebugLevel(String debugLevel)
@Input public boolean isOptimize()
public void setOptimize(boolean optimize)
@Input @Optional public String getEncoding()
public void setEncoding(String encoding)
public String getForce()
public void setForce(String force)
@Input @Optional @Deprecated public String getTargetCompatibility()
AbstractCompile.getTargetCompatibility() instead
@Deprecated public void setTargetCompatibility(String targetCompatibility)
AbstractCompile.setTargetCompatibility(java.lang.String) instead
public List<String> getAdditionalParameters()
public void setAdditionalParameters(List<String> additionalParameters)
public boolean isListFiles()
public void setListFiles(boolean listFiles)
public String getLoggingLevel()
public void setLoggingLevel(String loggingLevel)
public List<String> getLoggingPhases()
public void setLoggingPhases(List<String> loggingPhases)
public boolean isFork()
false
for the Ant based compiler (useAnt = true), and to true for the Zinc
based compiler (useAnt = false).
public void setFork(boolean fork)
public ScalaForkOptions getForkOptions()
fork is set to true.
public void setForkOptions(ScalaForkOptions forkOptions)
public boolean isUseAnt()
true, the standard Ant scalac (or fsc) task will be used for
Scala and Java joint compilation. If false, the Zinc incremental compiler will be used
instead. The latter can be significantly faster, especially if there are few source code changes
between compiler runs. Defaults to true.
public void setUseAnt(boolean useAnt)
public IncrementalCompileOptions getIncrementalOptions()
public void setIncrementalOptions(IncrementalCompileOptions incrementalOptions)
protected boolean excludeFromAntProperties(String fieldName)
excludeFromAntProperties in class AbstractOptionsprotected String getAntPropertyName(String fieldName)
getAntPropertyName in class AbstractOptions
protected Object getAntPropertyValue(String fieldName,
Object value)
getAntPropertyValue in class AbstractOptions
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||