|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.api.tasks.SourceTask
org.gradle.api.tasks.compile.AbstractCompile
public abstract class AbstractCompile extends SourceTask
The base class for all JVM-based language compilation tasks.
| Method Summary | |
|---|---|
protected void
|
compile()
|
FileCollection
|
getClasspath()
Returns the classpath to use to compile the source files. |
File
|
getDestinationDir()
Returns the directory to generate the .class files into. |
String
|
getSourceCompatibility()
Returns the Java language level to use to compile the source files. |
String
|
getTargetCompatibility()
Returns the target JVM to generate the .class files for. |
void
|
setClasspath(FileCollection configuration)
Sets the classpath to use to compile the source files. |
void
|
setDestinationDir(File destinationDir)
Sets the directory to generate the .class files into. |
void
|
setSourceCompatibility(String sourceCompatibility)
Sets the Java language level to use to compile the source files. |
void
|
setTargetCompatibility(String targetCompatibility)
Sets the target JVM to generate the .class files for. |
| Methods inherited from class SourceTask | |
|---|---|
| exclude, exclude, exclude, exclude, getDefaultSource, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source |
| Method Detail |
|---|
@TaskAction protected void compile()
@InputFiles public FileCollection getClasspath()
@OutputDirectory public File getDestinationDir()
@Input public String getSourceCompatibility()
@Input public String getTargetCompatibility()
public void setClasspath(FileCollection configuration)
configuration - The classpath. Must not be null, but may be empty.
public void setDestinationDir(File destinationDir)
destinationDir - The destination directory. Must not be null.
public void setSourceCompatibility(String sourceCompatibility)
sourceCompatibility - The source language level. Must not be null.
public void setTargetCompatibility(String targetCompatibility)
targetCompatibility - The target JVM. Must not be null.
Gradle API 1.5