net.cafebabe.sat.xml
Class NestTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--net.cafebabe.sat.util.FileTask
                    |
                    +--net.cafebabe.sat.xml.NestTask

public class NestTask
extends FileTask

This task nest files within a given file to replace a processing instruction.

Author:
Michel CASABIANCA

Field Summary
 
Fields inherited from class net.cafebabe.sat.util.FileTask
 
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
NestTask()
          Empty constructor (needed for reflexion).
 
Method Summary
 void execute()
          The method to launch the program as an Ant task.
 void setPattern(java.lang.String pattern)
          Pattern setter.
 void setSource(java.lang.String source)
          Source setter.
 void setTimeFile(java.lang.String file)
          Set the reference file.
 
Methods inherited from class net.cafebabe.sat.util.FileTask
addFileset, getFiles, getNewFiles, newerFilesThan, setDir, setFile
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, 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

NestTask

public NestTask()
Empty constructor (needed for reflexion).

Method Detail

setPattern

public void setPattern(java.lang.String pattern)
Pattern setter.

Parameters:
pattern - The pattern to search.

setSource

public void setSource(java.lang.String source)
Source setter.

Parameters:
source - The source file to insert.

setTimeFile

public void setTimeFile(java.lang.String file)
Set the reference file.

Parameters:
file - The reference file as a String

execute

public void execute()
The method to launch the program as an Ant task.

Overrides:
execute in class org.apache.tools.ant.Task