public class BuildFeatureTask extends AbstractPdeBuildTask
The BuildFeatureTaks can be used to build features. It implements a loop over all the plugins contained in the
feature.xml
.
_targetPlatformLocation
Constructor and Description |
---|
BuildFeatureTask()
Creates a new instance of type BuildFeatureTask.
|
Modifier and Type | Method and Description |
---|---|
void |
addParam(Property property)
Corresponds to
<antcall> 's nested <param> element. |
void |
addReference(Reference reference)
Corresponds to
<antcall> 's nested <reference> element. |
void |
execute() |
java.lang.String |
getBuildPluginTarget()
Returns the name of the ant target that should be called for each plugin.
|
java.io.File |
getFeature()
Returns the specified feature that should be build.
|
java.lang.String |
getFilter()
Returns the filter used to filter the plugins.
|
boolean |
isFeatureSet()
Returns whether the feature location is set.
|
void |
setBuildPluginTarget(java.lang.String buildPluginTargetName)
Sets the name of the ant target that should be called for each plugin.
|
void |
setFeature(java.io.File feature)
Sets the feature that should be build.
|
void |
setFilter(java.lang.String filter) |
containsTarget, executeSequential, getTargetPlatformLocation, isTarget, isTargetPlatformLocationSet, setTargetPlatformLocation
ensureJavaProject, getEclipseProject, getWorkspace, hasText, isProjectNameSet, isProjectSet, isWorkspaceSet, requireWorkspaceAndProjectNameOrProjectSet, requireWorkspaceSet, setInitialiseWorkspace, setProject, setProjectName, setWorkspace
public BuildFeatureTask()
public java.io.File getFeature()
Returns the specified feature that should be build.
public void setFeature(java.io.File feature)
Sets the feature that should be build.
feature
- featurepublic boolean isFeatureSet()
Returns whether the feature location is set.
public java.lang.String getBuildPluginTarget()
Returns the name of the ant target that should be called for each plugin.
public void setBuildPluginTarget(java.lang.String buildPluginTargetName)
Sets the name of the ant target that should be called for each plugin.
buildPluginTargetName
- the name of the ant target that should be called to build each plugin.public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
filter
- public void addParam(Property property)
Corresponds to <antcall>
's nested <param>
element.
property
- public void addReference(Reference reference)
Corresponds to <antcall>
's nested <reference>
element.
reference
- public void execute() throws BuildException
BuildException