public class EclipseModel extends Object
apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'eclipse-wtp' //for web projects only eclipse { pathVariables 'GRADLE_HOME': file('/best/software/gradle'), 'TOMCAT_HOME': file('../tomcat') project { //see docs forMore examples in docs forEclipseProject
} classpath { //see docs forEclipseClasspath
} wtp { //see docs forEclipseWtp
} }
EclipseProject
, EclipseClasspath
, EclipseWtp
Constructor and Description |
---|
EclipseModel() |
Modifier and Type | Method and Description |
---|---|
void |
classpath(Action<? super EclipseClasspath> action)
Configures eclipse classpath information
|
void |
classpath(Closure closure)
Configures eclipse classpath information
|
EclipseClasspath |
getClasspath()
Configures eclipse classpath information
|
EclipseJdt |
getJdt()
Configures eclipse java compatibility information (jdt)
|
EclipseProject |
getProject()
Configures eclipse project information
|
EclipseWtp |
getWtp()
Configures eclipse wtp information
|
void |
jdt(Action<? super EclipseJdt> action)
Configures eclipse java compatibility information (jdt)
|
void |
jdt(Closure closure)
Configures eclipse java compatibility information (jdt)
|
void |
pathVariables(Map<String,File> pathVariables)
Adds path variables to be used for replacing absolute paths in classpath entries.
|
void |
project(Action<? super EclipseProject> action)
Configures eclipse project information
|
void |
project(Closure closure)
Configures eclipse project information
|
void |
setClasspath(EclipseClasspath classpath) |
void |
setJdt(EclipseJdt jdt) |
void |
setProject(EclipseProject project) |
void |
setWtp(EclipseWtp wtp) |
void |
wtp(Action<? super EclipseWtp> action)
Configures eclipse wtp information
|
void |
wtp(Closure closure)
Configures eclipse wtp information
|
public EclipseProject getProject()
For examples see docs for EclipseProject
public void setProject(EclipseProject project)
public EclipseClasspath getClasspath()
For examples see docs for EclipseClasspath
public void setClasspath(EclipseClasspath classpath)
public EclipseJdt getJdt()
For examples see docs for EclipseProject
public void setJdt(EclipseJdt jdt)
public EclipseWtp getWtp()
For examples see docs for EclipseWtp
public void setWtp(EclipseWtp wtp)
public void project(Closure closure)
For examples see docs for EclipseProject
public void project(Action<? super EclipseProject> action)
For examples see docs for EclipseProject
public void classpath(Closure closure)
For examples see docs for EclipseClasspath
public void classpath(Action<? super EclipseClasspath> action)
For examples see docs for EclipseClasspath
public void wtp(Closure closure)
For examples see docs for EclipseWtp
public void wtp(Action<? super EclipseWtp> action)
For examples see docs for EclipseWtp
public void jdt(Closure closure)
For examples see docs for EclipseProject
public void jdt(Action<? super EclipseJdt> action)
For examples see docs for EclipseProject
public void pathVariables(Map<String,File> pathVariables)
If the beginning of the absolute path of a library or other path-related element matches a value of a variable, a variable entry is used. The matching part of the library path is replaced with the variable name.
For example see docs for EclipseModel
pathVariables
- A map with String->File pairs.