Groovy Documentation

org.gradle.api.tasks.compile
[Java] Class Compile

java.lang.Object
  org.gradle.api.internal.ConventionTask
      org.gradle.api.tasks.SourceTask
          org.gradle.api.tasks.compile.AbstractCompile
              org.gradle.api.tasks.compile.Compile

@Deprecated
public class Compile
extends AbstractCompile

Compiles Java source files.

deprecated:
This class has been replaced by JavaCompile.


Field Summary
 
Fields inherited from class SourceTask
source
 
Constructor Summary
Compile()

 
Method Summary
protected void compile(IncrementalTaskInputs inputs)

protected void compile()

File getDependencyCacheDir()

Compiler getJavaCompiler()

This method was never intended to be used by the users.

CompileOptions getOptions()

Returns the compilation options.

void setDependencyCacheDir(File dependencyCacheDir)

void setJavaCompiler(Compiler javaCompiler)

This method was never intended to be used by the users.

 
Methods inherited from class AbstractCompile
compile, getClasspath, getDestinationDir, getSourceCompatibility, getTargetCompatibility, setClasspath, setDestinationDir, setSourceCompatibility, setTargetCompatibility
 
Methods inherited from class SourceTask
exclude, exclude, exclude, exclude, getDefaultSource, getExcludes, getIncludes, getSource, include, include, include, include, setExcludes, setIncludes, setSource, source
 

Constructor Detail

Compile

public Compile()


 
Method Detail

compile

@TaskAction
protected void compile(IncrementalTaskInputs inputs)


compile

protected void compile()


getDependencyCacheDir

@OutputDirectory
public File getDependencyCacheDir()


getJavaCompiler

@Deprecated
public Compiler getJavaCompiler()
This method was never intended to be used by the users.
Returns:
the compiler


getOptions

@Nested
public CompileOptions getOptions()
Returns the compilation options.
Returns:
The compilation options.


setDependencyCacheDir

public void setDependencyCacheDir(File dependencyCacheDir)


setJavaCompiler

@Deprecated
public void setJavaCompiler(Compiler javaCompiler)
This method was never intended to be used by the users.
Parameters:
javaCompiler - to set


 

Gradle API 1.12