|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.ant.AntBuildGenerator
A Cocoon Generator that runs an Ant build file
| Field Summary |
| Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
| Constructor Summary | |
AntBuildGenerator()
|
|
| Method Summary | |
void |
buildFinished(org.apache.tools.ant.BuildEvent anEvent)
|
void |
buildStarted(org.apache.tools.ant.BuildEvent anEvent)
|
void |
contextualize(Context aContext)
gets the HttpContext for resolving the path to build.xml. |
void |
generate()
Generate the XML and stream it into the pipeline |
void |
initialize()
instantiates ThreadLocal objects and finds the build file. |
void |
messageLogged(org.apache.tools.ant.BuildEvent anEvent)
|
void |
parameterize(Parameters aParams)
gets the default values. |
void |
setConsumer(XMLConsumer aConsumer)
Set the XMLConsumer that will receive XML data. |
void |
setup(SourceResolver aResolver,
Map aMap,
String aString,
Parameters aParams)
parses parameters passed with url eg: ? |
void |
targetFinished(org.apache.tools.ant.BuildEvent anEvent)
|
void |
targetStarted(org.apache.tools.ant.BuildEvent anEvent)
|
void |
taskFinished(org.apache.tools.ant.BuildEvent anEvent)
|
void |
taskStarted(org.apache.tools.ant.BuildEvent anEvent)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AntBuildGenerator()
| Method Detail |
public void contextualize(Context aContext)
throws ContextException
contextualize in interface ContextualizableContextExceptionContextualizable.contextualize(org.apache.avalon.framework.context.Context)
public void parameterize(Parameters aParams)
throws ParameterException
parameterize in interface ParameterizableParameterExceptionParameterizable.parameterize(org.apache.avalon.framework.parameters.Parameters)
public void initialize()
throws Exception
initialize in interface InitializableExceptionInitializable.initialize()
public void setup(SourceResolver aResolver,
Map aMap,
String aString,
Parameters aParams)
throws ProcessingException,
SAXException,
IOException
setup in interface SitemapModelComponentaResolver - The SourceResolver to find resources within your context.aMap - A java.util.Map that contains the request and session information.aString - The value of the "src" attribute in the sitemap.aParams - The sitemap parameters passed into your component.
ProcessingException - if there is any other unexpected problem.
IOException - if there is a problem reading files.
SAXException - if there is a problem reading a SAX stream.SitemapModelComponent.setup(org.apache.cocoon.environment.SourceResolver, java.util.Map, java.lang.String, org.apache.avalon.framework.parameters.Parameters)public void setConsumer(XMLConsumer aConsumer)
XMLProducerXMLConsumer that will receive XML data.
setConsumer in interface XMLProduceraConsumer - The XMLConsumer target for SAX events.XMLProducer.setConsumer(org.apache.cocoon.xml.XMLConsumer)
public void generate()
throws IOException,
SAXException,
ProcessingException
Generator
generate in interface GeneratorIOException
SAXException
ProcessingExceptionGenerator.generate()public void buildStarted(org.apache.tools.ant.BuildEvent anEvent)
buildStarted in interface org.apache.tools.ant.BuildListenerBuildListener.buildStarted(org.apache.tools.ant.BuildEvent)public void buildFinished(org.apache.tools.ant.BuildEvent anEvent)
buildFinished in interface org.apache.tools.ant.BuildListenerBuildListener.buildFinished(org.apache.tools.ant.BuildEvent)public void targetStarted(org.apache.tools.ant.BuildEvent anEvent)
targetStarted in interface org.apache.tools.ant.BuildListenerBuildListener.targetStarted(org.apache.tools.ant.BuildEvent)public void targetFinished(org.apache.tools.ant.BuildEvent anEvent)
targetFinished in interface org.apache.tools.ant.BuildListenerBuildListener.targetFinished(org.apache.tools.ant.BuildEvent)public void taskStarted(org.apache.tools.ant.BuildEvent anEvent)
taskStarted in interface org.apache.tools.ant.BuildListenerBuildListener.taskStarted(org.apache.tools.ant.BuildEvent)public void taskFinished(org.apache.tools.ant.BuildEvent anEvent)
taskFinished in interface org.apache.tools.ant.BuildListenerBuildListener.taskFinished(org.apache.tools.ant.BuildEvent)public void messageLogged(org.apache.tools.ant.BuildEvent anEvent)
messageLogged in interface org.apache.tools.ant.BuildListenerBuildListener.messageLogged(org.apache.tools.ant.BuildEvent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||