|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectProjectComponent
net.sf.ant4eclipse.ant.condition.HasNature
public class HasNature
An ant condition that allows to check if a project has a specific nature.
| Constructor Summary | |
|---|---|
HasNature()
Creates a new instance of type HasNature. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HasNature()
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||