|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.ConventionTask
org.gradle.plugins.ide.api.GeneratorTask
org.gradle.plugins.ide.api.XmlGeneratorTask
org.gradle.plugins.ide.eclipse.GenerateEclipseClasspath
class GenerateEclipseClasspath extends XmlGeneratorTask
Generates an Eclipse .classpath
file. If you want to fine tune the eclipse configuration
At this moment nearly all configuration is done via EclipseClasspath.
Field Summary |
---|
Fields inherited from class GeneratorTask | |
---|---|
afterConfigured, beforeConfigured, domainObject, generator |
Property Summary | |
---|---|
EclipseClasspath |
classpath
|
Constructor Summary | |
GenerateEclipseClasspath()
|
Method Summary | |
---|---|
protected void
|
configure(Classpath xmlClasspath)
|
void
|
containers(String... containers)
Deprecated. |
protected Classpath
|
create()
|
Set
|
getContainers()
Deprecated. |
File
|
getDefaultOutputDir()
Deprecated. |
boolean
|
getDownloadJavadoc()
Deprecated. |
boolean
|
getDownloadSources()
Deprecated. |
Collection
|
getMinusConfigurations()
Deprecated. |
Collection
|
getPlusConfigurations()
Deprecated. |
Iterable
|
getSourceSets()
Deprecated. |
Map
|
getVariables()
Deprecated. |
void
|
setContainers(Set containers)
|
void
|
setDefaultOutputDir(File defaultOutputDir)
|
void
|
setDownloadJavadoc(boolean downloadJavadoc)
|
void
|
setDownloadSources(boolean downloadSources)
|
void
|
setMinusConfigurations(Collection minusConfigurations)
|
void
|
setPlusConfigurations(Collection plusConfigurations)
|
void
|
setSourceSets(Iterable sourceSets)
Deprecated. |
void
|
setVariables(Map variables)
|
void
|
variables(Map variables)
Deprecated. |
Methods inherited from class XmlGeneratorTask | |
---|---|
configure, create, getXmlTransformer |
Methods inherited from class GeneratorTask | |
---|---|
getInputFile, getOutputFile, setInputFile, setOutputFile |
Property Detail |
---|
EclipseClasspath classpath
Constructor Detail |
---|
GenerateEclipseClasspath()
Method Detail |
---|
@Override protected void configure(Classpath xmlClasspath)
void containers(String... containers)
Adds containers to the .classpath.
containers
- the container names to be added to the .classpath.
@Override protected Classpath create()
Set getContainers()
Containers to be added to the classpath
File getDefaultOutputDir()
The default output directory for eclipse generated files, eg classes.
boolean getDownloadJavadoc()
Whether to download and add javadocs associated with the dependency jars. Defaults to false.
boolean getDownloadSources()
Whether to download and add sources associated with the dependency jars. Defaults to true.
Collection getMinusConfigurations()
The configurations which files are to be excluded from the classpath entries.
Collection getPlusConfigurations()
The configurations which files are to be transformed into classpath entries.
Iterable getSourceSets()
The source sets to be added to the classpath.
Map getVariables()
Adds path variables to be used for replacing absolute paths in classpath entries.
pathVariables
- A map with String->File pairs.
void setContainers(Set containers)
void setDefaultOutputDir(File defaultOutputDir)
void setDownloadJavadoc(boolean downloadJavadoc)
void setDownloadSources(boolean downloadSources)
void setMinusConfigurations(Collection minusConfigurations)
void setPlusConfigurations(Collection plusConfigurations)
void setSourceSets(Iterable sourceSets)
The source sets to be added to the classpath.
void setVariables(Map variables)
void variables(Map variables)
Adds variables to be used for replacing absolute paths in classpath entries.
variables
- A map where the keys are the variable names and the values are the variable values.
Gradle API 1.12