Package org.java.plugin.tools.ant
Class PluginInfoTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.java.plugin.tools.ant.PluginInfoTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class PluginInfoTask extends org.apache.tools.ant.Task
Simple task to read some data from plug-in manifest into project properties.Inspired by Sebastian Kopsan.
- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description PluginInfoTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
void
setManifest(java.io.File aManifest)
void
setPropertyId(java.lang.String propertyName)
void
setPropertyMatchingRule(java.lang.String propertyName)
void
setPropertyPluginId(java.lang.String propertyName)
void
setPropertyPluginVersion(java.lang.String propertyName)
void
setPropertyVendor(java.lang.String propertyName)
void
setPropertyVersion(java.lang.String propertyName)
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setManifest
public void setManifest(java.io.File aManifest)
- Parameters:
aManifest
- plug-in manifest to read data from
-
setPropertyId
public void setPropertyId(java.lang.String propertyName)
- Parameters:
propertyName
- name of the property to read plug-in or plug-in fragment ID in- See Also:
ManifestInfo.getId()
-
setPropertyVersion
public void setPropertyVersion(java.lang.String propertyName)
- Parameters:
propertyName
- name of the property to read plug-in or plug-in fragment version in- See Also:
ManifestInfo.getVersion()
-
setPropertyVendor
public void setPropertyVendor(java.lang.String propertyName)
- Parameters:
propertyName
- name of the property to read plug-in or plug-in fragment vendor in- See Also:
ManifestInfo.getVendor()
-
setPropertyPluginId
public void setPropertyPluginId(java.lang.String propertyName)
- Parameters:
propertyName
- name of the property to read plug-in ID in- See Also:
ManifestInfo.getPluginId()
-
setPropertyPluginVersion
public void setPropertyPluginVersion(java.lang.String propertyName)
- Parameters:
propertyName
- name of the property to read plug-in version in- See Also:
ManifestInfo.getPluginVersion()
-
setPropertyMatchingRule
public void setPropertyMatchingRule(java.lang.String propertyName)
- Parameters:
propertyName
- name of the property to read plug-in fragment matching rule in- See Also:
ManifestInfo.getMatchingRule()
-
execute
public void execute() throws org.apache.tools.ant.BuildException
- Overrides:
execute
in classorg.apache.tools.ant.Task
- Throws:
org.apache.tools.ant.BuildException
- See Also:
Task.execute()
-
-