com.threerings.media.tile.bundle.tools
Class DirectoryTileSetBundlerTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.threerings.media.tile.bundle.tools.TileSetBundlerTask
              extended by com.threerings.media.tile.bundle.tools.DirectoryTileSetBundlerTask
All Implemented Interfaces:
Cloneable

public class DirectoryTileSetBundlerTask
extends TileSetBundlerTask

Ant task for creating tileset bundles that are placed in a specified directory instead of wrapped up in a fancy jar file.


Field Summary
protected  File _deployDir
          The directory in which we want to place our tile set files for deployment.
 
Fields inherited from class com.threerings.media.tile.bundle.tools.TileSetBundlerTask
_config, _filesets, _keepRawPngs, _mapfile, _uncompressed
 
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
DirectoryTileSetBundlerTask()
           
 
Method Summary
protected  TileSetBundler createBundler()
          Create the bundler to use during creation.
 void execute()
          Performs the actual work of the task.
protected  String getTargetPath(File fromDir, String path)
          Returns the target path in which our bundler will write the tile set.
 void setDeployDir(File deployDir)
          Sets the path to the directory in which we'll be putting our bundle's files.
 
Methods inherited from class com.threerings.media.tile.bundle.tools.TileSetBundlerTask
addFileset, ensureSet, setConfig, setKeepRawPngs, setMapfile, 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
 

Field Detail

_deployDir

protected File _deployDir
The directory in which we want to place our tile set files for deployment.

Constructor Detail

DirectoryTileSetBundlerTask

public DirectoryTileSetBundlerTask()
Method Detail

setDeployDir

public void setDeployDir(File deployDir)
Sets the path to the directory in which we'll be putting our bundle's files.


execute

public void execute()
             throws BuildException
Description copied from class: TileSetBundlerTask
Performs the actual work of the task.

Overrides:
execute in class TileSetBundlerTask
Throws:
BuildException

createBundler

protected TileSetBundler createBundler()
                                throws IOException
Description copied from class: TileSetBundlerTask
Create the bundler to use during creation.

Overrides:
createBundler in class TileSetBundlerTask
Throws:
IOException

getTargetPath

protected String getTargetPath(File fromDir,
                               String path)
Description copied from class: TileSetBundlerTask
Returns the target path in which our bundler will write the tile set.

Overrides:
getTargetPath in class TileSetBundlerTask