com.threerings.editor.tools
Class StripTask

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

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

Strips classes and properties flagged as strippable from exported files.


Field Summary
protected  ConfigManager _cfgmgr
          The config manager.
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  List<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
StripTask()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Adds a fileset to the list of sets to process.
 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.
protected  void strip(File sourceDir, String sourceName)
          Strips a single file.
 
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

_cfgmgr

protected ConfigManager _cfgmgr
The config manager.


_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 List<org.apache.tools.ant.types.FileSet> _filesets
A list of filesets that contain XML exports.

Constructor Detail

StripTask

public StripTask()
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

strip

protected void strip(File sourceDir,
                     String sourceName)
              throws IOException
Strips a single file.

Throws:
IOException