Class PackageFile
java.lang.Object
io.wcm.tooling.commons.packmgr.install.PackageFile
References a content package file for uploading.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDelay further steps after package installation by this amount of secondsgetFile()Content package file.HTTP socket timeout (in seconds).booleanisForce()Force upload and install of content package.booleanWhether to install (unpack) the uploaded package automatically or not.booleanIf set to true nested packages get installed as well.voidsetDelayAfterInstallSec(int delayAfterInstallSec) voidIf not delay was configured try to detect a sensible default value: A few secs for container/mixed packages, 0 sec for others.voidvoidsetForce(boolean force) voidvoidsetHttpSocketTimeoutSec(Integer httpSocketTimeoutSec) voidsetInstall(boolean install) voidsetRecursive(boolean recursive)
-
Constructor Details
-
PackageFile
public PackageFile()
-
-
Method Details
-
getFile
Content package file.- Returns:
- File
-
setFile
- Parameters:
file- Content package file
-
getDelayAfterInstallSec
public int getDelayAfterInstallSec()Delay further steps after package installation by this amount of seconds- Returns:
- Delay time
-
setDelayAfterInstallSec
public void setDelayAfterInstallSec(int delayAfterInstallSec) - Parameters:
delayAfterInstallSec- Delay further steps after package installation by this amount of seconds
-
setDelayAfterInstallSecAutoDetect
public void setDelayAfterInstallSecAutoDetect()If not delay was configured try to detect a sensible default value: A few secs for container/mixed packages, 0 sec for others. -
isInstall
public boolean isInstall()Whether to install (unpack) the uploaded package automatically or not.- Returns:
- Install/unpack
-
setInstall
public void setInstall(boolean install) - Parameters:
install- Whether to install (unpack) the uploaded package automatically or not.
-
isForce
public boolean isForce()Force upload and install of content package. If set to false a package is not uploaded or installed if it was already uploaded before.- Returns:
- Force
-
setForce
- Parameters:
force- Force upload and install of content package. If set to false a package is not uploaded or installed
-
setForce
public void setForce(boolean force) - Parameters:
force- Force upload and install of content package. If set to false a package is not uploaded or installed
-
isRecursive
public boolean isRecursive()If set to true nested packages get installed as well.- Returns:
- Recursive
-
setRecursive
public void setRecursive(boolean recursive) - Parameters:
recursive- If set to true nested packages get installed as well.
-
getHttpSocketTimeoutSec
HTTP socket timeout (in seconds).- Returns:
- Timeout
-
setHttpSocketTimeoutSec
- Parameters:
httpSocketTimeoutSec- HTTP socket timeout (in seconds)
-