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

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.ListComponent<V>
                  extended by com.threerings.antidote.field.ListField<ValidationScript>
                      extended by com.threerings.jpkg.ant.dpkg.scripts.Scripts
All Implemented Interfaces:
Field, ReferenceField, RequiresValidation, Cloneable

public class Scripts
extends ListField<ValidationScript>

The <dpkg> task <package> <scripts> field. Used to add package maintainer scripts.

See Also:
MaintainerScript, PackageScript

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
Scripts()
           
 
Method Summary
 void add(ValidationScript script)
          Ant adder field: Add a ValidationScript.
 String getChildFieldName()
          Returns the name of the child fields of this ListField.
 String getFieldName()
          Returns the unique name of this Field.
 List<PackageScript> getPackageScripts()
          Return the list of PackageScript objects in the <scripts> section.
protected  void validateField()
          Give each subclass a chance to do field specific validation.
 
Methods inherited from class com.threerings.antidote.field.ListField
execute, init, reconfigure, setRefid
 
Methods inherited from class com.threerings.antidote.field.ListComponent
appendRequiresValidation, getValidatedFieldList, noChildFieldsDefined, requireChildFieldValidation, validateFieldList
 
Methods inherited from class com.threerings.antidote.field.BaseComponent
appendViolation, appendViolationList, getReferencedField, isReference, registerField, reportConflictingProperties, reportUnsetDependentFields, reportUnsetDependentProperties, reportUnsetField, setReference, validate, validateChildFields, validateChildFields, 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.Field
getLocation
 

Constructor Detail

Scripts

public Scripts()
Method Detail

getFieldName

public String getFieldName()
Description copied from interface: Field
Returns the unique name of this Field.


getChildFieldName

public String getChildFieldName()
Description copied from class: ListComponent
Returns the name of the child fields of this ListField.

Specified by:
getChildFieldName in class ListComponent<ValidationScript>

add

public void add(ValidationScript script)
Ant adder field: Add a ValidationScript.


getPackageScripts

public List<PackageScript> getPackageScripts()
Return the list of PackageScript objects in the <scripts> section.


validateField

protected void validateField()
Description copied from class: BaseComponent
Give each subclass a chance to do field specific validation.

Specified by:
validateField in class BaseComponent


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