public class EventProducerCollectorTask
extends org.apache.tools.ant.Task
EventProducer interface. For all such interfaces an event model
file and a translation file for the human-readable messages generated by the events is
created and/or updated.| Constructor and Description |
|---|
EventProducerCollectorTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Adds a file set.
|
void |
execute() |
java.io.File |
getTranslationFile()
Returns the translation file for the event producer methods.
|
static void |
main(java.lang.String[] args)
Command-line interface for testing purposes.
|
protected long |
processFileSets(org.apache.fop.tools.EventProducerCollector collector)
Processes the file sets defined for the task.
|
void |
setDestDir(java.io.File destDir)
Sets the destination directory for the event models.
|
void |
setTranslationFile(java.io.File f)
Sets the translation file for the event producer methods.
|
protected void |
updateTranslationFile(java.io.File modelFile)
Updates the translation file with new entries for newly found event producer methods.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected void updateTranslationFile(java.io.File modelFile)
throws java.io.IOException
modelFile - the model file to usejava.io.IOException - if an I/O error occursprotected long processFileSets(org.apache.fop.tools.EventProducerCollector collector)
throws java.io.IOException,
EventConventionException,
java.lang.ClassNotFoundException
collector - the collector to use for collecting the event producersjava.io.IOException - if an I/O error occursEventConventionException - if the EventProducer conventions are violatedjava.lang.ClassNotFoundException - if a required class cannot be foundpublic void addFileset(org.apache.tools.ant.types.FileSet set)
set - the file setpublic void setDestDir(java.io.File destDir)
destDir - the destination directorypublic void setTranslationFile(java.io.File f)
f - the translation filepublic java.io.File getTranslationFile()
public static void main(java.lang.String[] args)
args - the command-line argumentsCopyright © 2025 Apache Software Foundation. All rights reserved.