com.threerings.cast.bundle.tools
Class MetadataBundlerTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.threerings.cast.bundle.tools.MetadataBundlerTask
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- DirectoryMetadataBundlerTask
public class MetadataBundlerTask
- extends Task
Ant task for creating metadata bundles, which contain action sequence
and component class definition information. This task must be
configured with a number of parameters:
actiondef=[path to actions.xml]
classdef=[path to classes.xml]
file=[path to metadata bundle, which will be created]
| Methods inherited from class org.apache.tools.ant.Task |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
_actionDef
protected String _actionDef
_classDef
protected String _classDef
_target
protected File _target
MetadataBundlerTask
public MetadataBundlerTask()
setActiondef
public void setActiondef(String actiondef)
setClassdef
public void setClassdef(String classdef)
setTarget
public void setTarget(File target)
execute
public void execute()
throws BuildException
- Performs the actual work of the task.
- Overrides:
execute in class Task
- Throws:
BuildException
createOutputStream
protected OutputStream createOutputStream(File target)
throws IOException
- Creates the base output stream to which to write our bundle's files.
- Throws:
IOException
nextEntry
protected OutputStream nextEntry(OutputStream lastEntry,
String path)
throws IOException
- Advances to the next named entry in the bundle and returns the stream to which to write
that entry.
- Throws:
IOException
addTileSetRuleSet
protected static void addTileSetRuleSet(org.apache.commons.digester.Digester digester,
TileSetRuleSet ruleSet)
- Configures
ruleSet and hooks it into digester.
parseActions
protected Tuple<Map<String,ActionSequence>,Map<String,TileSet>> parseActions()
throws BuildException
- Throws:
BuildException
parseClasses
protected Map<String,ComponentClass> parseClasses()
throws BuildException
- Throws:
BuildException
parseList
protected ArrayList<?> parseList(org.apache.commons.digester.Digester digester,
String path)
throws BuildException
- Throws:
BuildException
ensureSet
protected void ensureSet(Object value,
String errmsg)
throws BuildException
- Throws:
BuildException