@Service public class DefaultDescriptorService extends Object implements DescriptorService
| Modifier and Type | Field and Description |
|---|---|
static String |
LIC_FILE_EXTENSION_TO_REMOVE |
| Constructor and Description |
|---|
DefaultDescriptorService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkFileDescriptorExistenceInsideMuleDistroOrInsideUpgradeTool(Path mulePath)
Checks File Descriptor existence inside a specific mule distro and inside the tool.
|
boolean |
checkIntegrity(List<AssemblyEntry> descriptorEntries,
Path dirWithFiles)
This method checks the integrity of the files inside a directory and a list of assembly entries
|
void |
compare(Path oldMulePath) |
void |
compareFileDescriptors(List<AssemblyEntry> currentDistroFileDescriptor,
List<AssemblyEntry> originalFileDescriptor,
List<String> excludedPaths) |
void |
compareMuleDistros(Path oldMulePath)
This method creates file descriptor of the current mule version and then compares with the newest file descriptor version.
|
List<AssemblyEntry> |
getAssemblyEntryListByFileDescriptor(String currentVersion,
Path mulePath)
Looking for File Descriptor inside the tool, and if doesn't exist there, try to find it inside the Mule Runtime Distribution.
|
List<AssemblyEntry> |
getEntriesInPath(Path directory)
This method recursively gets the assembly entries from the files inside a directory
|
List<AssemblyEntry> |
getEntriesInPathForSelectedPaths(Path mulePath,
List<Path> pathsToGetEntries) |
List<String> |
getFilesNamesList(Path muleDistroPath)
Makes a list with the names of all files which appears in the File Descriptor of an specific Mule Runtime Distribution.
|
public static final String LIC_FILE_EXTENSION_TO_REMOVE
public void compareMuleDistros(Path oldMulePath) throws IOException
compareMuleDistros in interface DescriptorServiceoldMulePath - Path of the current mule distro.Exception - I/O Exception.IOException - I/O Exception.public void compare(Path oldMulePath) throws IOException
IOExceptionpublic List<AssemblyEntry> getAssemblyEntryListByFileDescriptor(String currentVersion, Path mulePath) throws IOException
getAssemblyEntryListByFileDescriptor in interface DescriptorServicecurrentVersion - Mule Runtime Distribution version.mulePath - Mule Runtime Distribution Path.IOExceptionpublic void compareFileDescriptors(List<AssemblyEntry> currentDistroFileDescriptor, List<AssemblyEntry> originalFileDescriptor, List<String> excludedPaths)
public List<String> getFilesNamesList(Path muleDistroPath) throws IOException
getFilesNamesList in interface DescriptorServicemuleDistroPath - Mule Runtime Distribution Path.IOExceptionpublic List<AssemblyEntry> getEntriesInPathForSelectedPaths(Path mulePath, List<Path> pathsToGetEntries) throws IOException
IOExceptionpublic boolean checkFileDescriptorExistenceInsideMuleDistroOrInsideUpgradeTool(Path mulePath) throws IOException
checkFileDescriptorExistenceInsideMuleDistroOrInsideUpgradeTool in interface DescriptorServicemulePath - Mule Runtime Distribution path.FileNotFoundExceptionIOExceptionpublic List<AssemblyEntry> getEntriesInPath(Path directory) throws IOException
DescriptorServicegetEntriesInPath in interface DescriptorServicedirectory - Path of the directory to get the assembly entries list.IOException - I/O Exception.public boolean checkIntegrity(List<AssemblyEntry> descriptorEntries, Path dirWithFiles) throws IOException
DescriptorServicecheckIntegrity in interface DescriptorServicedescriptorEntries - List of assembly entriesdirWithFiles - Path of the directory to be checked against the assembly entries listIOException - I/O Exception.Copyright © 2022 MuleSoft, Inc.. All rights reserved.