com.threerings.jpkg.ant.dpkg
Class Dpkg

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.ListTask<Package>
                      extended by com.threerings.jpkg.ant.dpkg.Dpkg
All Implemented Interfaces:
Field, ReferenceField, RequiresValidation, Cloneable

public class Dpkg
extends ListTask<Package>


Field Summary
static String CHAR_ENCODING
          All user supplied data will be assumed to be in this character encoding, e.g.
 
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
Dpkg()
           
 
Method Summary
 void addPackage(Package pkg)
          Ant adder field: Add a <package> definition.
 void execute()
           
 String getChildFieldName()
          Returns the name of the child fields of this ListField.
 String getFieldName()
          Returns the unique name of this Field.
 void init()
           
 void setDistribution(String value)
          Ant setter field: distribution.
 void setOutput(String value)
          Ant setter field: output.
 void setPrefix(String value)
          Ant setter field: prefix.
protected  void validateField()
          Give each subclass a chance to do field specific validation.
 
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, 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
 
Methods inherited from interface com.threerings.antidote.field.Field
getLocation
 

Field Detail

CHAR_ENCODING

public static final String CHAR_ENCODING
All user supplied data will be assumed to be in this character encoding, e.g. maintainer script source.

See Also:
Constant Field Values
Constructor Detail

Dpkg

public Dpkg()
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<Package>

init

public void init()
Overrides:
init in class Task

execute

public void execute()
Overrides:
execute in class Task

setOutput

public void setOutput(String value)
Ant setter field: output. The directory to create all packages in.


setPrefix

public void setPrefix(String value)
Ant setter field: prefix. The prefix, or root, of all defined packages.


setDistribution

public void setDistribution(String value)
Ant setter field: distribution. The Apt distribution these packages will be apart of.


addPackage

public void addPackage(Package pkg)
Ant adder field: Add a <package> definition.


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.