Class ProcessorTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.MatchingTask
org.nuiton.processor.ant.ProcessorTask
- All Implemented Interfaces:
Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer
public class ProcessorTask
extends org.apache.tools.ant.taskdefs.MatchingTask
Tache ant pour lutinprocessor.
To use this task, put this code in ant build file:
<taskdef name="processor" classname="org.nuiton.processor.ant.ProcessorTask"
classpath="lib/lutinprocessor.jar" />
and use it with:
<processor srcdir="${src}" destdir="${targetgen}" filters="org.nuiton.processor.filters.GeneratorTemplatesFilter" />
Created: 14 janv. 2004- Version:
- $Revision$ Mise a jour: $Date$ par :
- Author:
- Benjamin Poussin <poussin@codelutin.com> Copyright Code Lutin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Fileprotected Stringprotected String[]protected Stringprotected Stringprotected String[]protected Stringprotected String[]static final intprotected booleanprotected Fileprotected booleanFields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
filesetFields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringabsoluteDestinationName(String fileName) protected StringabsoluteSourceName(String fileName) protected StringapplyTransformationFilename(String filename) protected voidprotected voidvoidexecute()protected String[]protected String[]protected booleanvoidsetDestdir(File destDir) voidsetEncoding(String encoding) voidsetExcludes(String excludes) voidsetExcludes(String[] excludes) voidsetFileInPattern(String fileInPattern) voidsetFileOutPattern(String fileOutPattern) voidsetFilters(String filters) voidsetIncludes(String includes) voidsetIncludes(String[] includes) voidsetOverwrite(boolean overwrite) voidvoidsetVerbose(boolean verbose) Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludesfile, setFollowSymlinks, setIncludesfile, setProject, XsetIgnore, XsetItemsMethods 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, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation
-
Field Details
-
MSG_VERBOSE
public static final int MSG_VERBOSE- See Also:
-
srcDir
-
destDir
-
includes
-
excludes
-
files
-
fileInPattern
-
fileOutPattern
-
filters
-
encoding
-
overwrite
protected boolean overwrite -
verbose
protected boolean verbose
-
-
Constructor Details
-
ProcessorTask
public ProcessorTask()
-
-
Method Details
-
applyTransformationFilename
-
doExecute
protected void doExecute() throws org.apache.tools.ant.BuildException- Throws:
org.apache.tools.ant.BuildException
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
buildFileList
protected void buildFileList() -
isNewer
-
getExcludes
-
getIncludes
-
setIncludes
-
setIncludes
- Overrides:
setIncludesin classorg.apache.tools.ant.taskdefs.MatchingTask
-
setExcludes
-
setExcludes
- Overrides:
setExcludesin classorg.apache.tools.ant.taskdefs.MatchingTask
-
absoluteDestinationName
-
absoluteSourceName
-
setVerbose
public void setVerbose(boolean verbose) -
setOverwrite
public void setOverwrite(boolean overwrite) -
setFileOutPattern
-
setFileInPattern
-
setSrcdir
-
setDestdir
-
setFilters
-
setEncoding
-