Groovy Documentation

org.gradle.api.plugins
[Java] Class JvmLanguagePlugin

java.lang.Object
  org.gradle.api.plugins.JvmLanguagePlugin
All Implemented Interfaces:
Plugin

@Incubating
public class JvmLanguagePlugin

Base plugin for JVM language support. Applies the LanguageBasePlugin. Adds a JvmBinaryContainer named jvm to the project's BinariesContainer. Registers the ClassDirectoryBinary element type for that container. Adds a lifecycle task named classes for each ClassDirectoryBinary. Adds a Copy task named processXYZResources for each ResourceSet added to a ClassDirectoryBinary.


Constructor Summary
JvmLanguagePlugin(Instantiator instantiator)

 
Method Summary
void apply(Project target)

void configureCompileTask(AbstractCompile compile, JvmLanguageSourceSet sourceSet, ClassDirectoryBinary binary)

Preconfigures the specified compile task based on the specified source set and class directory binary.

JvmBinaryContainer getJvmBinaryContainer()

Returns the binaries.jvm container that was added by this plugin to the project.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

JvmLanguagePlugin

@Inject
public JvmLanguagePlugin(Instantiator instantiator)


 
Method Detail

apply

public void apply(Project target)


configureCompileTask

public void configureCompileTask(AbstractCompile compile, JvmLanguageSourceSet sourceSet, ClassDirectoryBinary binary)
Preconfigures the specified compile task based on the specified source set and class directory binary.
Parameters:
compile - the compile task to be preconfigured
sourceSet - the source set for the compile task
binary - the binary for the compile task


getJvmBinaryContainer

public JvmBinaryContainer getJvmBinaryContainer()
Returns the binaries.jvm container that was added by this plugin to the project.
Returns:
the binaries.jvm container that was added by this plugin to the project


 

Gradle API 1.5-rc-1