Class PluginInfoTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.java.plugin.tools.ant.PluginInfoTask
All Implemented Interfaces:
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$
  • Field Summary

    Fields inherited from class org.apache.tools.ant.Task

    target, taskName, taskType, wrapper

    Fields inherited from class org.apache.tools.ant.ProjectComponent

    description, location, project
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    setManifest(File aManifest)
     
    void
    setPropertyId(String propertyName)
     
    void
     
    void
     
    void
     
    void
    setPropertyVendor(String propertyName)
     
    void
    setPropertyVersion(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

    Methods inherited from class org.apache.tools.ant.ProjectComponent

    clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PluginInfoTask

      public PluginInfoTask()
  • Method Details

    • setManifest

      public void setManifest(File aManifest)
      Parameters:
      aManifest - plug-in manifest to read data from
    • setPropertyId

      public void setPropertyId(String propertyName)
      Parameters:
      propertyName - name of the property to read plug-in or plug-in fragment ID in
      See Also:
    • setPropertyVersion

      public void setPropertyVersion(String propertyName)
      Parameters:
      propertyName - name of the property to read plug-in or plug-in fragment version in
      See Also:
    • setPropertyVendor

      public void setPropertyVendor(String propertyName)
      Parameters:
      propertyName - name of the property to read plug-in or plug-in fragment vendor in
      See Also:
    • setPropertyPluginId

      public void setPropertyPluginId(String propertyName)
      Parameters:
      propertyName - name of the property to read plug-in ID in
      See Also:
    • setPropertyPluginVersion

      public void setPropertyPluginVersion(String propertyName)
      Parameters:
      propertyName - name of the property to read plug-in version in
      See Also:
    • setPropertyMatchingRule

      public void setPropertyMatchingRule(String propertyName)
      Parameters:
      propertyName - name of the property to read plug-in fragment matching rule in
      See Also:
    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
      See Also:
      • Task.execute()