Class TemplateManagerOptions


  • public class TemplateManagerOptions
    extends Object
    Holds the options relevant to template management and execution.
    • Method Detail

      • isMinimalUpdate

        public boolean isMinimalUpdate()
        Determines whether the template should minimally update a target file. A minimal update means the template manager is requested to update a file only if it is newer. This option avoids "touching" a file and causing the last modification time (mtime) to change.
        Returns:
        true to prefer updating only changed files, false to disable that suggestion
      • isSkipOverwrite

        public boolean isSkipOverwrite()
        Determines whether the template manager should avoid overwriting an existing file. This differs from requesting isMinimalUpdate() which evaluates contents, while this option only evaluates whether the file exists.
        Returns:
        true to avoid overwriting existing files (where supported), false to disable that suggestion.