com.threerings.cast.bundle.tools
Class DirectoryComponentBundlerTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.threerings.cast.bundle.tools.ComponentBundlerTask
              extended by com.threerings.cast.bundle.tools.DirectoryComponentBundlerTask
All Implemented Interfaces:
Cloneable

public class DirectoryComponentBundlerTask
extends ComponentBundlerTask

Creates all the information for a component bundle but places it into a specified directory rather than a bundle jar file.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.cast.bundle.tools.ComponentBundlerTask
ComponentBundlerTask.HashMapIDBroker
 
Field Summary
 
Fields inherited from class com.threerings.cast.bundle.tools.ComponentBundlerTask
_actionDef, _filesets, _keepRawPngs, _mapfile, _root, _target, _uncompressed, AUX_EXTS, SEP_STR
 
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
DirectoryComponentBundlerTask()
           
 
Method Summary
protected  OutputStream createOutputStream(File target)
          Creates the base output stream to which to write our bundle's files.
protected  OutputStream nextEntry(OutputStream lastEntry, String path)
          Advances to the next named entry in the bundle and returns the stream to which to write that entry.
protected  boolean skipEntry(String path, long newest)
          Returns whether we should skip the specified entry in the bundle, presumably if it was already created and up to date.
protected  boolean skipIfTargetNewer()
          Returns whether we should skip updating the bundle if the target is newer than any component.
protected  TrimmedTileSet trim(TileSet aset, OutputStream fout)
          Converts the tileset to a trimmed tile set and saves it at the specified location.
 
Methods inherited from class com.threerings.cast.bundle.tools.ComponentBundlerTask
addFileset, composePath, decomposePath, ensureSet, execute, getNewestDate, getNewestDate, loadBroker, processComponent, saveBroker, setActiondef, setKeepRawPngs, setMapfile, setRoot, setTarget, setUncompressed
 
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
 

Constructor Detail

DirectoryComponentBundlerTask

public DirectoryComponentBundlerTask()
Method Detail

createOutputStream

protected OutputStream createOutputStream(File target)
                                   throws IOException
Description copied from class: ComponentBundlerTask
Creates the base output stream to which to write our bundle's files.

Overrides:
createOutputStream in class ComponentBundlerTask
Throws:
IOException

nextEntry

protected OutputStream nextEntry(OutputStream lastEntry,
                                 String path)
                          throws IOException
Description copied from class: ComponentBundlerTask
Advances to the next named entry in the bundle and returns the stream to which to write that entry.

Overrides:
nextEntry in class ComponentBundlerTask
Throws:
IOException

skipEntry

protected boolean skipEntry(String path,
                            long newest)
Description copied from class: ComponentBundlerTask
Returns whether we should skip the specified entry in the bundle, presumably if it was already created and up to date.

Overrides:
skipEntry in class ComponentBundlerTask

trim

protected TrimmedTileSet trim(TileSet aset,
                              OutputStream fout)
                       throws IOException
Description copied from class: ComponentBundlerTask
Converts the tileset to a trimmed tile set and saves it at the specified location.

Overrides:
trim in class ComponentBundlerTask
Throws:
IOException

skipIfTargetNewer

protected boolean skipIfTargetNewer()
Description copied from class: ComponentBundlerTask
Returns whether we should skip updating the bundle if the target is newer than any component.

Overrides:
skipIfTargetNewer in class ComponentBundlerTask