Class ExportImportUtil


  • public class ExportImportUtil
    extends Object
    Helper for platform import/export operations
    • Constructor Detail

      • ExportImportUtil

        public ExportImportUtil()
    • Method Detail

      • getBundleEntry

        public static Optional<Path> getBundleEntry​(String path,
                                                    Class<?> bundleClass)
        Returns bundle file entry by its path.
        Parameters:
        path - path, cannot be null
        bundleClass - bundle class, cannot be null
        Returns:
        optional path, never null
      • assertProjectEquals

        public static void assertProjectEquals​(org.eclipse.core.resources.IProject expectedProject,
                                               org.eclipse.core.resources.IProject actualProject)
                                        throws Exception
        Checks two projects and reports errors if any
        Parameters:
        expectedProject - expected project to compare with, cannot be null
        actualProject - actual project to compare with, cannot be null
        Throws:
        Exception
      • assertPlatformFilesEqual

        public static void assertPlatformFilesEqual​(Path expectedPlatformPath,
                                                    Path actualPlatformPath)
                                             throws Exception
        Checks two directories with platform xml files
        Parameters:
        expectedPlatformPath - expected platform path to compare with, cannot be null
        actualPlatformPath - actual platform path to compare with, cannot be null
        Throws:
        Exception