Class StringTemplateBasedTask

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    MakeMultiFsmSbbTask

    public abstract class StringTemplateBasedTask
    extends org.apache.tools.ant.Task
    This class defines common behaviour for tasks that uses a String template group to generate some code
    • Field Detail

      • log

        protected static final org.apache.log4j.Logger log
    • Constructor Detail

      • StringTemplateBasedTask

        public StringTemplateBasedTask()
    • Method Detail

      • setTemplate

        public void setTemplate​(String pathToTemplate)
      • setDestDir

        public void setDestDir​(String destDir)
      • setPackage

        public void setPackage​(String packageName)
      • execute

        protected final void execute​(String taskDescription)
                              throws org.apache.tools.ant.BuildException
        Throws:
        org.apache.tools.ant.BuildException
      • getDestinationDirectory

        protected final File getDestinationDirectory​(String destination)
                                              throws org.apache.tools.ant.BuildException
        Throws:
        org.apache.tools.ant.BuildException
      • getFile

        protected final File getFile​(String fileName,
                                     String description)
                              throws org.apache.tools.ant.BuildException
        Throws:
        org.apache.tools.ant.BuildException
      • getDefaultTemplate

        protected abstract String getDefaultTemplate()
      • getPackageName

        protected final String getPackageName()
      • logMessages

        protected void logMessages​(Collection<com.opencloud.sce.fsmtool.fsm.BuilderMessage> messages)