com.threerings.cast.bundle.tools
Class DirectoryComponentBundlerTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.threerings.cast.bundle.tools.ComponentBundlerTask
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.
|
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 |
DirectoryComponentBundlerTask
public DirectoryComponentBundlerTask()
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