net.cafebabe.sat.xml
Class InsertTask

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

public class InsertTask
extends FileTask

This task replace a given processing instruction with the content of a given file.

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
InsertTask()
          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 file for date reference.
 
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

InsertTask

public InsertTask()
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 file for date reference.

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