Package com.zerog.ia.auto.project
Class FileSettings
- java.lang.Object
-
- com.zerog.ia.auto.project.FileSettings
-
public final class FileSettings extends java.lang.ObjectThe global file settings, like file modification timestamp and file overwrite behavior.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileOverwriteBehaviorgetDefaultFileOverwriteBehavior()The installer behavior when handling files that already exist on the target system.longgetFileModificationTimestamp()The specific timestamp for the deployed files.FileModificationTimestampBehaviorgetFileModificationTimestampBehavior()The file modification timestamp behavior, which specifies how the installer handles the deployed files timestamps.booleangetWindowsReplaceInUseFilesAfterRestart()Whether or not to replace locked files (in-use) after system restart on Windows.voidsetDefaultFileOverwriteBehavior(FileOverwriteBehavior mode)The installer behavior when handling files that already exist on the target system.voidsetFileModificationTimestamp(long timestamp)The specific timestamp for the deployed files.voidsetFileModificationTimestampBehavior(FileModificationTimestampBehavior value)The file modification timestamp behavior, which specifies how the installer handles the deployed files timestamps.voidsetWindowsReplaceInUseFilesAfterRestart(boolean neverReboots)Whether or not to replace locked files (in-use) after system restart on Windows.
-
-
-
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 thefileModificationTimestampBehaviorproperty 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 thefileModificationTimestampBehaviorproperty 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.
-
-