Class FileSettings


  • public final class FileSettings
    extends java.lang.Object
    The global file settings, like file modification timestamp and file overwrite behavior.
    • Method Detail

      • setFileModificationTimestampBehavior

        public void setFileModificationTimestampBehavior​(FileModificationTimestampBehavior value)
        The file modification timestamp behavior, which specifies how the installer handles the deployed files timestamps.

        It can be INSTALL_TIME_TIMESTAMP, PRESERVE_TIMESTAMP or SPECIFIED_TIMESTAMP. Default to PRESERVE_TIMESTAMP. When using SPECIFIED_TIMESTAMP the timestamp should be defined by calling setFileModificationTimestamp(int).

      • getFileModificationTimestampBehavior

        public FileModificationTimestampBehavior getFileModificationTimestampBehavior()
        The file modification timestamp behavior, which specifies how the installer handles the deployed files timestamps.

        It can be INSTALL_TIME_TIMESTAMP, PRESERVE_TIMESTAMP or SPECIFIED_TIMESTAMP. Default to PRESERVE_TIMESTAMP. When using SPECIFIED_TIMESTAMP the timestamp should be defined by calling setFileModificationTimestamp(int).

      • setFileModificationTimestamp

        public void setFileModificationTimestamp​(long timestamp)
        The specific timestamp for the deployed files. This setting is used by the installer when the fileModificationTimestampBehavior property is set to SPECIFIED_TIMESTAMP.
        See Also:
        #setFileModificationTimestampBehavior()
      • getFileModificationTimestamp

        public long getFileModificationTimestamp()
        The specific timestamp for the deployed files. This setting is used by the installer when the fileModificationTimestampBehavior property is set to SPECIFIED_TIMESTAMP.
        See Also:
        getFileModificationTimestampBehavior()
      • setWindowsReplaceInUseFilesAfterRestart

        public void setWindowsReplaceInUseFilesAfterRestart​(boolean neverReboots)
        Whether or not to replace locked files (in-use) after system restart on Windows.
      • getWindowsReplaceInUseFilesAfterRestart

        public boolean getWindowsReplaceInUseFilesAfterRestart()
        Whether or not to replace locked files (in-use) after system restart on Windows.
      • setDefaultFileOverwriteBehavior

        public void setDefaultFileOverwriteBehavior​(FileOverwriteBehavior mode)
        The installer behavior when handling files that already exist on the target system.

        The supported values are ALWAYS_OVERWRITE, NEVER_OVERWRITE, OVERWRITE_IF_OLDER_NOT_INSTALL_IF_NEWER, OVERWRITE_IF_OLDER_PROMPT_IF_NEWER (default), PROMPT_IF_OLDER_NOT_INSTALL_IF_NEWER and ALWAYS_PROMPT_USER.
      • getDefaultFileOverwriteBehavior

        public FileOverwriteBehavior getDefaultFileOverwriteBehavior()
        The installer behavior when handling files that already exist on the target system.

        The supported values are ALWAYS_OVERWRITE, NEVER_OVERWRITE, OVERWRITE_IF_OLDER_NOT_INSTALL_IF_NEWER, OVERWRITE_IF_OLDER_PROMPT_IF_NEWER (default), PROMPT_IF_OLDER_NOT_INSTALL_IF_NEWER and ALWAYS_PROMPT_USER.