public class HasBuildCommand
extends ProjectComponent
The HasBuildCommand implements a condition to test whether a eclipse project has a specific build command or not
Constructor and Description |
---|
HasBuildCommand()
Creates a new instance of type HasBuildCommand.
|
Modifier and Type | Method and Description |
---|---|
boolean |
eval()
Returns
true if the eclipse project contains the requested buildCommand |
boolean |
isBuildCommandSet()
Returns
true if the build command has been set. |
void |
requireBuildCommandSet()
Throws a build exception if a build command is not set.
|
void |
setBuildCommand(java.lang.String command)
Sets the name of the build command.
|
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 HasBuildCommand()
public boolean eval() throws BuildException
true
if the eclipse project contains the requested buildCommandtrue
if the eclipse project contains the requested buildCommand.BuildException
public void setBuildCommand(java.lang.String command)
command
- name of the build command.public boolean isBuildCommandSet()
true
if the build command has been set.true
if the build command has been set.public final void requireBuildCommandSet()
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.