org.carrot2.ant.tasks
Class CollectMetaTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.carrot2.ant.tasks.BaseDependencyPathTask
              extended by org.carrot2.ant.tasks.CollectMetaTask

public class CollectMetaTask
extends BaseDependencyPathTask

An ANT task that collects all meta information snippets of a given type from dependencies of a given component.


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
CollectMetaTask()
           
 
Method Summary
protected  void checkParameters()
          Checks if all parameters are correct.
 void execute()
          Searches for components that are not up to date and updates them if possible.
 void setComponentDescriptor(File dependencyFile)
          Sets a path to the dependency of the component for which dependencies are to be retrieved.
 void setProfile(String profile)
          Set the profile for dependency traversal.
 void setProperty(String propertyName)
          Sets the property to be set with collected meta information.
 void setType(String type)
          Sets the meta information type to collect.
 
Methods inherited from class org.carrot2.ant.tasks.BaseDependencyPathTask
createDependencies, getAllComponents
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectMetaTask

public CollectMetaTask()
Method Detail

setProfile

public void setProfile(String profile)
Set the profile for dependency traversal.

Parameters:
profile -

setProperty

public void setProperty(String propertyName)
Sets the property to be set with collected meta information.


setType

public void setType(String type)
Sets the meta information type to collect.


setComponentDescriptor

public void setComponentDescriptor(File dependencyFile)
Sets a path to the dependency of the component for which dependencies are to be retrieved.


checkParameters

protected void checkParameters()
                        throws BuildException
Checks if all parameters are correct.

Throws:
BuildException

execute

public void execute()
             throws BuildException
Searches for components that are not up to date and updates them if possible.

Overrides:
execute in class Task
Throws:
BuildException


Copyright (c) Dawid Weiss, Stanislaw Osinski