org.apache.avalon.fortress.tools
Class ComponentMetaInfoCollector

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bycom.thoughtworks.qdox.ant.AbstractQdoxTask
              extended byorg.apache.avalon.fortress.tools.ComponentMetaInfoCollector

public final class ComponentMetaInfoCollector
extends com.thoughtworks.qdox.ant.AbstractQdoxTask

ANT task to collect all the meta information for the components.

Version:
CVS $Revision: 1.1 $ $Date: 2004/04/02 08:29:44 $
Author:
The Avalon Team

Field Summary
 
Fields inherited from class com.thoughtworks.qdox.ant.AbstractQdoxTask
allClasses, allSources, fileMap
 
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
ComponentMetaInfoCollector()
           
 
Method Summary
 void execute()
          Execute generator task.
protected  org.apache.avalon.fortress.tools.Service getService(java.lang.String type)
          Get the unique Service object for the specified type.
 void setDestDir(java.io.File destDir)
          Set the destination directory for the meta information.
 void writeServiceList(java.util.Iterator it)
          Write the service list to the "/service.list" file.
 
Methods inherited from class com.thoughtworks.qdox.ant.AbstractQdoxTask
addFileset, buildFileMap, buildFileMap, createDocletTagFactory, processClasses, processSources, validateAttributes
 
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

ComponentMetaInfoCollector

public ComponentMetaInfoCollector()
Method Detail

setDestDir

public void setDestDir(java.io.File destDir)
Set the destination directory for the meta information.

Parameters:
destDir - The destination directory

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute generator task.

Throws:
org.apache.tools.ant.BuildException - if there was a problem collecting the info

writeServiceList

public void writeServiceList(java.util.Iterator it)
                      throws java.io.IOException
Write the service list to the "/service.list" file.

Parameters:
it - The iterator for the services
Throws:
java.io.IOException - if there is a problem writing the file

getService

protected org.apache.avalon.fortress.tools.Service getService(java.lang.String type)
Get the unique Service object for the specified type.

Parameters:
type - The service type name
Returns:
the Service object


Copyright © 1997-2005 The Apache Software Foundation. All Rights Reserved.