net.sf.ant4eclipse.ant.task.pde
Class BuildFeatureTask

java.lang.Object
  extended by Task
      extended by net.sf.ant4eclipse.ant.task.project.AbstractProjectBasedTask
          extended by net.sf.ant4eclipse.ant.task.pde.AbstractPdeBuildTask
              extended by net.sf.ant4eclipse.ant.task.pde.BuildFeatureTask

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.


Field Summary
 
Fields inherited from class net.sf.ant4eclipse.ant.task.pde.AbstractPdeBuildTask
_targetPlatformLocation
 
Constructor Summary
BuildFeatureTask()
          Creates a new instance of type BuildFeatureTask.
 
Method Summary
 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)
           
 
Methods inherited from class net.sf.ant4eclipse.ant.task.pde.AbstractPdeBuildTask
containsTarget, executeSequential, getTargetPlatformLocation, isTarget, isTargetPlatformLocationSet, setTargetPlatformLocation
 
Methods inherited from class net.sf.ant4eclipse.ant.task.project.AbstractProjectBasedTask
ensureJavaProject, getEclipseProject, getWorkspace, hasText, isProjectNameSet, isProjectSet, isWorkspaceSet, requireWorkspaceAndProjectNameOrProjectSet, requireWorkspaceSet, setInitialiseWorkspace, setProject, setProjectName, setWorkspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildFeatureTask

public BuildFeatureTask()
Creates a new instance of type BuildFeatureTask.

Method Detail

getFeature

public java.io.File getFeature()

Returns the specified feature that should be build.

Returns:
the specified feature.

setFeature

public void setFeature(java.io.File feature)

Sets the feature that should be build.

Parameters:
feature - feature

isFeatureSet

public boolean isFeatureSet()

Returns whether the feature location is set.

Returns:
whether the feature location is set.

getBuildPluginTarget

public java.lang.String getBuildPluginTarget()

Returns the name of the ant target that should be called for each plugin.

Returns:
the name of the ant target that should be called for each plugin.

setBuildPluginTarget

public void setBuildPluginTarget(java.lang.String buildPluginTargetName)

Sets the name of the ant target that should be called for each plugin.

Parameters:
buildPluginTargetName - the name of the ant target that should be called to build each plugin.

getFilter

public java.lang.String getFilter()
Returns the filter used to filter the plugins.

Returns:
The filter used to filter the plugins.

setFilter

public void setFilter(java.lang.String filter)
Parameters:
filter -

addParam

public void addParam(Property property)

Corresponds to <antcall>'s nested <param> element.

Parameters:
property -

addReference

public void addReference(Reference reference)

Corresponds to <antcall>'s nested <reference> element.

Parameters:
reference -

execute

public void execute()
             throws BuildException
Throws:
BuildException