com.threerings.jpkg.ant.dpkg.scripts
Class BaseTemplateScript

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.threerings.antidote.field.BaseComponent
              extended by com.threerings.antidote.field.BaseField
                  extended by com.threerings.jpkg.ant.dpkg.scripts.BaseTemplateScript
All Implemented Interfaces:
Field, ReferenceField, RequiresValidation, PackageScript, ValidationScript, VelocityTemplate, Cloneable
Direct Known Subclasses:
TemplateScript

public abstract class BaseTemplateScript
extends BaseField
implements ValidationScript, VelocityTemplate

A PackageScript where the script source comes from a Velocity template. See TemplateScript for a useful subclass to extend from.


Field Summary
 
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
BaseTemplateScript()
           
 
Method Summary
protected  InputStream mergeTemplate()
          Return an InputStream of the merged script template.
 
Methods inherited from class com.threerings.antidote.field.BaseField
execute, init, reconfigure, setRefid
 
Methods inherited from class com.threerings.antidote.field.BaseComponent
appendViolation, appendViolationList, getReferencedField, isReference, registerField, reportConflictingProperties, reportUnsetDependentFields, reportUnsetDependentProperties, reportUnsetField, setReference, validate, validateChildFields, validateChildFields, validateField, validateOptionalProperties, validateProperties, validateProperties
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, 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
 
Methods inherited from interface com.threerings.antidote.field.ReferenceField
getReferencedField, isReference
 
Methods inherited from interface com.threerings.antidote.field.Field
getFieldName, getLocation
 
Methods inherited from interface com.threerings.antidote.RequiresValidation
validate
 
Methods inherited from interface com.threerings.jpkg.ant.dpkg.scripts.runner.PackageScript
failOnError, getFriendlyName, getSource, getTypes
 
Methods inherited from interface com.threerings.jpkg.ant.VelocityTemplate
getTemplateName, populateContext
 

Constructor Detail

BaseTemplateScript

public BaseTemplateScript()
Method Detail

mergeTemplate

protected InputStream mergeTemplate()
                             throws IOException
Return an InputStream of the merged script template.

Throws:
IOException


Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.