net.sf.antcontrib.logic
Class OutofdateTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--net.sf.antcontrib.logic.OutofdateTask
All Implemented Interfaces:
org.apache.tools.ant.taskdefs.condition.Condition

public class OutofdateTask
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.taskdefs.condition.Condition

Place class description here.

Since:
Author:
inger

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
OutofdateTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createSourcefiles()
          Create the subelement
 org.apache.tools.ant.types.Path createTargetfiles()
          Create the subelement
 boolean eval()
          Evaluate (all) target and source file(s) to see if the target(s) is/are outoutdate.
 void execute()
           
 void setProperty(java.lang.String property)
          The property to set if any of the target files are outofdate with regard to any of the source files.
 void setValue(java.lang.String value)
          The value to set the named property to the target files are outofdate
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutofdateTask

public OutofdateTask()
Method Detail

setProperty

public void setProperty(java.lang.String property)
The property to set if any of the target files are outofdate with regard to any of the source files.

Parameters:
property - the name of the property to set if Target is outofdate.

setValue

public void setValue(java.lang.String value)
The value to set the named property to the target files are outofdate

Parameters:
value - the value to set the property

createTargetfiles

public org.apache.tools.ant.types.Path createTargetfiles()
Create the subelement

Returns:

createSourcefiles

public org.apache.tools.ant.types.Path createSourcefiles()
Create the subelement

Returns:

eval

public boolean eval()
             throws org.apache.tools.ant.BuildException
Evaluate (all) target and source file(s) to see if the target(s) is/are outoutdate.

Specified by:
eval in interface org.apache.tools.ant.taskdefs.condition.Condition
org.apache.tools.ant.BuildException

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException