Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.gradle.api.tasks.compile
[Java] Class AbstractCompile

    java.lang.Object
      org.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()`
`java.io.File` | `getDestinationDir()`
`java.lang.String` | `getSourceCompatibility()`
`java.lang.String` | `getTargetCompatibility()`
`void` | `setClasspath(FileCollection configuration)`
`void` | `setDestinationDir(java.io.File destinationDir)`
`void` | `setSourceCompatibility(java.lang.String sourceCompatibility)`
`void` | `setTargetCompatibility(java.lang.String targetCompatibility)`

Methods inherited from class SourceTask
exclude, exclude, exclude, exclude, getDefaultSource, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source

Method Detail

### compile

    @TaskAction
    protected void compile()

### getClasspath

    @InputFiles
    public FileCollection getClasspath()

### getDestinationDir

    @OutputDirectory
    public java.io.File getDestinationDir()

### getSourceCompatibility

    @Input
    public java.lang.String getSourceCompatibility()

### getTargetCompatibility

    @Input
    public java.lang.String getTargetCompatibility()

### setClasspath

    public void setClasspath(FileCollection configuration)

### setDestinationDir

    public void setDestinationDir(java.io.File destinationDir)

### setSourceCompatibility

    public void setSourceCompatibility(java.lang.String sourceCompatibility)

### setTargetCompatibility

    public void setTargetCompatibility(java.lang.String targetCompatibility)

Groovy Documentation