public class HasNature
extends ProjectComponent
| Constructor and Description |
|---|
HasNature()
Creates a new instance of type HasNature.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
eval() |
boolean |
isNatureSet()
Returns
true if the nature has been set. |
void |
requireNatureSet()
Makes sure the nature attribute has been set.
|
void |
setNature(java.lang.String nature)
Sets the nature to check for.
|
void |
setProject(java.io.File project)
Sets the project.
|
void |
setProjectName(java.lang.String project)
Sets the name of the project.
|
void |
setWorkspace(java.io.File workspace)
Sets the workspace.
|
public boolean eval()
throws BuildException
BuildExceptionpublic void setNature(java.lang.String nature)
nature - the nature to set.public boolean isNatureSet()
true if the nature has been set.true if the nature has been set.public final void requireNatureSet()
public void setProjectName(java.lang.String project)
project - the name of the project.public void setWorkspace(java.io.File workspace)
workspace - the workspace.public void setProject(java.io.File project)
project - the project.