Package com.zerog.ia.auto.project
Class FileSettings
- java.lang.Object
-
- com.zerog.ia.auto.project.FileSettings
-
public final class FileSettings extends java.lang.Object
The global file settings, like file modification timestamp and file overwrite behavior.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileOverwriteBehavior
getDefaultFileOverwriteBehavior()
The installer behavior when handling files that already exist on the target system.long
getFileModificationTimestamp()
The specific timestamp for the deployed files.FileModificationTimestampBehavior
getFileModificationTimestampBehavior()
The file modification timestamp behavior, which specifies how the installer handles the deployed files timestamps.boolean
getWindowsReplaceInUseFilesAfterRestart()
Whether or not to replace locked files (in-use) after system restart on Windows.void
setDefaultFileOverwriteBehavior(FileOverwriteBehavior mode)
The installer behavior when handling files that already exist on the target system.void
setFileModificationTimestamp(long timestamp)
The specific timestamp for the deployed files.void
setFileModificationTimestampBehavior(FileModificationTimestampBehavior value)
The file modification timestamp behavior, which specifies how the installer handles the deployed files timestamps.void
setWindowsReplaceInUseFilesAfterRestart(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 thefileModificationTimestampBehavior
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 thefileModificationTimestampBehavior
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.
-
-