public interface ConfigFilesService
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConflicts(Path oldMule,
Path newMule,
boolean isDryRunMode)
This method runs as a precondition of the upgrade command.
|
void |
copyFinalConfigFiles(Path oldMule,
boolean dryRun)
Copy the config files from the resolved config files folder "ready" to the ${MULE_HOME}/conf during the upgrade command after
no conflicts were found
|
Path |
getReadyConfigFileDestination(Path muleHome,
String configFilePath)
Extracts the filename of the configFilePath passed as argument and resolves the destination path inside the "ready" folder.
|
Path |
getReadyFolderInDistro(Path muleHome)
Gets the corresponding path of the "ready" folder inside the distribution.
|
Path |
getResolvedConflictsFolder()
Gets the folder where the config files to be used after the upgrade.
|
String |
getSolveConflictsDocsPage()
Gets the documentation page section explaining in detail how to resolve the config files conflicts to be used in the ERROR
messages logs.
|
Path |
getToReviewConfigFileDestination(Path muleHome,
String configFilePath)
Extracts the filename of the configFilePath passed as argument and resolves the destination path inside the "to_review"
folder .
|
Path |
getToReviewFolderInDistro(Path muleHome)
Gets the corresponding path of the "to_review" folder inside the distribution.
|
boolean checkConflicts(Path oldMule, Path newMule, boolean isDryRunMode) throws IOException
copyFinalConfigFiles(Path, boolean)
Finally, the new config files are copied too in the "new" aux folder so the user can detect the new changes in an easy way.oldMule - The Mule Runtime Distribution path of the old distro.newMule - The Mule Runtime Distribution path of the new distro.isDryRunMode - Flag which in case is in true it avoids copying the config files and deleting the resolved conflicts
folderIOExceptionvoid copyFinalConfigFiles(Path oldMule, boolean dryRun) throws IOException
oldMule - The Mule Runtime Distribution path where the resolved config files folder is present to copy the config files
from there during the upgrade.dryRun - Flag which in case is in true it avoids copying the config files and deleting the resolved conflicts folderIOExceptionPath getResolvedConflictsFolder()
String getSolveConflictsDocsPage()
FileNotFoundExceptionPath getToReviewFolderInDistro(Path muleHome)
muleHome - Path of the mule distribution inside the 'to_review' path is going to be resolvedPath getReadyFolderInDistro(Path muleHome)
muleHome - Path of the mule distribution inside the 'ready' path is going to be resolvedPath getToReviewConfigFileDestination(Path muleHome, String configFilePath)
muleHome - Path of the mule distribution against the 'to_review' path is going to be resolvedconfigFilePath - Path of the config file to extract its filenamePath getReadyConfigFileDestination(Path muleHome, String configFilePath)
muleHome - Path of the mule distribution against the 'ready' path is going to be resolvedconfigFilePath - Path of the config file to extract its filenameCopyright © 2022 MuleSoft, Inc.. All rights reserved.