@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 |
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> |
getEntriesInPath(Path directory)
This method recursively gets the assembly entries from the files inside a directory
|
List<AssemblyEntry> |
getEntriesInPathForSelectedPaths(Path mulePath,
List<Path> pathsToGetEntries) |
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 void compareFileDescriptors(List<AssemblyEntry> currentDistroFileDescriptor, List<AssemblyEntry> originalFileDescriptor, List<String> excludedPaths)
public List<AssemblyEntry> getEntriesInPathForSelectedPaths(Path mulePath, List<Path> pathsToGetEntries) throws IOException
IOExceptionpublic 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 © 2021 MuleSoft, Inc.. All rights reserved.