Documentation of 'org.hsqldb.util.preprocessor.PreprocessorAntTask' Java class
PreprocessorAntTask
org.hsqldb.util.preprocessor

Class PreprocessorAntTask



  • public class PreprocessorAntTask
    extends MatchingTask
    Provides a facility for invoking the Preprocessor from ANT.

    Example ANT target:

     
    
         
    
         
         
    
     
     
    Task attributes :
    namedescription
    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 provided
    backup (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.
    See Preprocessor for details
    testonly (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 Detail

      • PreprocessorAntTask

        public PreprocessorAntTask()
    • 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

Ads help maintain this website.