com.threerings.export.tools
Class XMLToBinaryTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.threerings.export.tools.XMLToBinaryTask
All Implemented Interfaces:
Cloneable

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

Converts XML export files into binary export files.


Field Summary
protected  boolean _compress
          Whether or not to compress the output files.
protected  File _dest
          The directory in which we will generate our output (in a directory tree mirroring the source files.
protected  ArrayList<org.apache.tools.ant.types.FileSet> _filesets
          A list of filesets that contain XML exports.
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
XMLToBinaryTask()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Adds a fileset to the list of sets to process.
protected  void convert(File sourceDir, String sourceName)
          Converts a single file.
 void execute()
           
 void setCompress(boolean compress)
          Sets whether or not to compress the resulting files.
 void setDest(File dest)
          Sets the destination directory to which generated files will be written.
 
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
 
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
 

Field Detail

_dest

protected File _dest
The directory in which we will generate our output (in a directory tree mirroring the source files.


_compress

protected boolean _compress
Whether or not to compress the output files.


_filesets

protected ArrayList<org.apache.tools.ant.types.FileSet> _filesets
A list of filesets that contain XML exports.

Constructor Detail

XMLToBinaryTask

public XMLToBinaryTask()
Method Detail

setDest

public void setDest(File dest)
Sets the destination directory to which generated files will be written.


setCompress

public void setCompress(boolean compress)
Sets whether or not to compress the resulting files.


addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
Adds a fileset to the list of sets to process.


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

convert

protected void convert(File sourceDir,
                       String sourceName)
                throws IOException
Converts a single file.

Throws:
IOException