xdoclet.ant.modulesbuilder
Class ModulesGrandBuilderTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by xdoclet.ant.modulesbuilder.ModulesGrandBuilderTask
All Implemented Interfaces:
java.lang.Cloneable

public class ModulesGrandBuilderTask
extends org.apache.tools.ant.Task

Loops over all modules and builds each one. It builds modules the module depends on first. The module dependency is specified in a module.xml file in the root of each module. It's based on Ant's dependency checking code. Refer to that code for more details.

Version:
$Revision: 1.13 $
Author:
Ara Abrahamian (ara_e_w@yahoo.com)
created
Jun 9, 2002

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
ModulesGrandBuilderTask()
           
 
Method Summary
 void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog catalog)
          add an XMLCatalog as a nested element; optional.
 org.apache.tools.ant.types.DTDLocation createDTD()
          Create a DTD location record; optional.
 void execute()
           
 void init()
          Initialize internal instance of XMLCatalog
 void setTarget(java.lang.String target)
          set the name of the target to be called in each of the modules' build files
 java.util.Vector topoSort(java.lang.String root, java.util.Hashtable modules)
           
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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 Detail

ModulesGrandBuilderTask

public ModulesGrandBuilderTask()
Method Detail

setTarget

public void setTarget(java.lang.String target)
set the name of the target to be called in each of the modules' build files

Parameters:
target - the target name

topoSort

public final java.util.Vector topoSort(java.lang.String root,
                                       java.util.Hashtable modules)
                                throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

addConfiguredXMLCatalog

public void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog catalog)
add an XMLCatalog as a nested element; optional.

Parameters:
catalog - The feature to be added to the ConfiguredXMLCatalog attribute

createDTD

public org.apache.tools.ant.types.DTDLocation createDTD()
Create a DTD location record; optional. This stores the location of a DTD. The DTD is identified by its public Id.

Returns:

init

public void init()
          throws org.apache.tools.ant.BuildException
Initialize internal instance of XMLCatalog

Overrides:
init in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

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

http://xdoclet.sourceforge.net/