gate.util.ant.packager
Class PackageGappTask.MappingHint

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.Property
              extended by gate.util.ant.packager.PackageGappTask.MappingHint
All Implemented Interfaces:
Cloneable
Enclosing class:
PackageGappTask

public class PackageGappTask.MappingHint
extends org.apache.tools.ant.taskdefs.Property

Class to represent a nested hint element. Typically this will be a simple <hint from="X" to="Y" /> but the MappingHint class actually extends the property task, so it can read hints in Properties-file format using <hint file="hints.properties" />.


Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.Property
classpath, env, file, name, prefix, ref, resource, url, userProperty, value
 
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
PackageGappTask.MappingHint()
           
 
Method Summary
protected  void addProperty(String n, String v)
          Rather than adding properties to the project, add mapping hints to the task.
 void setAbsolute(boolean absolute)
          Should files matching this hint be made absolute?
 void setFrom(File from)
           
 void setTo(String to)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.Property
addProperties, addProperty, addText, createClasspath, execute, getClasspath, getEnvironment, getFile, getName, getPrefix, getRefid, getResource, getUrl, getValue, loadEnvironment, loadFile, loadResource, loadUrl, setBasedir, setClasspath, setClasspathRef, setEnvironment, setFile, setLocation, setName, setPrefix, setRefid, setRelative, setResource, setUrl, setUserProperty, setValue, setValue, toString
 
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, wait, wait, wait
 

Constructor Detail

PackageGappTask.MappingHint

public PackageGappTask.MappingHint()
Method Detail

setFrom

public void setFrom(File from)

setTo

public void setTo(String to)

setAbsolute

public void setAbsolute(boolean absolute)
Should files matching this hint be made absolute? If true, the "to" value is ignored.


addProperty

protected void addProperty(String n,
                           String v)
Rather than adding properties to the project, add mapping hints to the task.

Overrides:
addProperty in class org.apache.tools.ant.taskdefs.Property