Class MuleRuntimeInstaller
java.lang.Object
com.aeontronix.enhancedmule.tools.onprem.MuleRuntimeInstaller
public class MuleRuntimeInstaller extends Object
-
Field Summary
Fields Modifier and Type Field Description static StringINSTANCE_NAMEstatic StringINSTANCE_VERSION -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static voidcopy(File from, File to)FilegetArchiveDir()FilegetLicenseFile()StringgetName()StringgetRegistrationToken()FilegetRuntimeArchive()FilegetRuntimeDir()FilegetTarget()StringgetVersion()voidinstall()booleanisForce()booleanisUpgrade()booleanisWindows()voidmodifyRuntimeFile(String path, Function<String,String> function)voidsetArchiveDir(File archiveDir)voidsetForce(boolean force)voidsetLicenseFile(File licenseFile)voidsetRegistrationToken(String registrationToken)voidsetRuntimeArchive(File runtimeArchive)voidsetTarget(File target)voidsetUpgrade(boolean upgrade)voidsetVersion(String version)voidunzip(File zipFile, File destDir)
-
Field Details
-
INSTANCE_NAME
- See Also:
- Constant Field Values
-
INSTANCE_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
copy
- Throws:
IOException
-
install
- Throws:
MuleRuntimeInstallationException
-
modifyRuntimeFile
- Throws:
IOException
-
getName
-
getRuntimeDir
-
isWindows
public boolean isWindows() -
getRuntimeArchive
-
setRuntimeArchive
-
getTarget
-
setTarget
-
getRegistrationToken
-
setRegistrationToken
-
isForce
public boolean isForce() -
setForce
public void setForce(boolean force) -
isUpgrade
public boolean isUpgrade() -
setUpgrade
public void setUpgrade(boolean upgrade) -
getVersion
-
setVersion
-
getLicenseFile
-
setLicenseFile
-
getArchiveDir
-
setArchiveDir
-
unzip
- Throws:
IOException
-