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() |
File |
getTranslationFile()
Returns the translation file for the event producer methods.
|
static void |
main(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(File destDir)
Sets the destination directory for the event models.
|
void |
setTranslationFile(File f)
Sets the translation file for the event producer methods.
|
protected void |
updateTranslationFile(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(File modelFile) throws IOException
modelFile - the model file to useIOException - if an I/O error occursprotected long processFileSets(org.apache.fop.tools.EventProducerCollector collector)
throws IOException,
EventConventionException,
ClassNotFoundException
collector - the collector to use for collecting the event producersIOException - if an I/O error occursEventConventionException - if the EventProducer conventions are violatedClassNotFoundException - if a required class cannot be foundpublic void addFileset(org.apache.tools.ant.types.FileSet set)
set - the file setpublic void setDestDir(File destDir)
destDir - the destination directorypublic void setTranslationFile(File f)
f - the translation filepublic File getTranslationFile()
public static void main(String[] args)
args - the command-line argumentsCopyright © 2021 Apache Software Foundation. All rights reserved.