org.hsqldb.util.preprocessor
Class PreprocessorAntTask
- java.lang.Object
-
- MatchingTask
-
- org.hsqldb.util.preprocessor.PreprocessorAntTask
-
public class PreprocessorAntTask extends MatchingTaskProvides a facility for invoking the Preprocessor from ANT.Example ANT target:
Task attributes :name description srcdir (required) string - directory under which input files are located targetdir (required) string - directory under which output files are to be written altext (optional) string - alternate extension to use for output file names.
If needed, leading dot should be providedbackup (optional - default: false) boolean - whether to back up pre-existing target files.
When true, pre-existing target files are preserved by renaming with postfix "~"encoding (optional) string - the encoding with which to read and write file content.
If specified, must be a valid Java encoding identifier, such as "UTF8".
When unspecified, the default Java platformn encoding is used.filter (optional - default: false) boolean - whether to exclude directive lines from output. indent (optional - default: false) boolean - whether to indent directive lines in output. symbols (optional) string - CSV list of preprocessor symbols to predefine.
When specified, each list element must be of the form:
IDENT (ASSIGN? (STRING | NUMBER | IDENT) )?
Not that forward assignments are illegal.
SeePreprocessorfor detailstestonly (optional - default: false) boolean - whether to omit writing output files. verbose (optional - default: false) boolean - whether to log detailed information. - Since:
- 1.8.1
-
-
Constructor Summary
Constructors Constructor and Description PreprocessorAntTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute()voidinit()booleanisActive()voidsetAltext(java.lang.String ext)voidsetBackup(boolean backup)voidsetEncoding(java.lang.String encoding)voidsetFilter(boolean filter)voidsetIf(java.lang.String expr)voidsetIndent(boolean indent)voidsetSrcdir(java.io.File value)voidsetSymbols(java.lang.String value)voidsetTargetdir(java.io.File value)voidsetTestonly(boolean testOnly)voidsetUnless(java.lang.String expr)voidsetVerbose(boolean verbose)
-
-
-
Method Detail
-
init
public void init()
-
setSrcdir
public void setSrcdir(java.io.File value)
-
setTargetdir
public void setTargetdir(java.io.File value)
-
setSymbols
public void setSymbols(java.lang.String value)
-
setVerbose
public void setVerbose(boolean verbose)
-
setBackup
public void setBackup(boolean backup)
-
setIndent
public void setIndent(boolean indent)
-
setTestonly
public void setTestonly(boolean testOnly)
-
setFilter
public void setFilter(boolean filter)
-
setAltext
public void setAltext(java.lang.String ext)
-
setEncoding
public void setEncoding(java.lang.String encoding)
-
setIf
public void setIf(java.lang.String expr)
-
setUnless
public void setUnless(java.lang.String expr)
-
isActive
public boolean isActive()
-
execute
public void execute() throws BuildException- Throws:
BuildException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG