Class ExtensionXmlUtil

java.lang.Object
mpern.sap.commerce.build.extensioninfo.ExtensionXmlUtil

public final class ExtensionXmlUtil extends Object
Utility functions for loading extension information from Hybris specific XML files.
  • Method Details

    • loadExtensionNamesFromLocalExtensionsXML

      public static Set<String> loadExtensionNamesFromLocalExtensionsXML(File file)
      Loads the names of all extensions declared in localextensions.xml. Only extensions declared with "extension" elements are supported. Autoloaded paths are not supported.
      Parameters:
      file - the localextensions.xml to be loaded
      Returns:
      the declared extensions names
    • loadExtensionFromExtensioninfoXml

      @Nonnull public static Extension loadExtensionFromExtensioninfoXml(File extensioninfoXmlFile, String rootLocation, ExtensionType extensionType)
      Extracts an Extension information object from a given extensioninfo.xml file.
      Parameters:
      extensioninfoXmlFile - the location of extensioninfo.xml file
      rootLocation - the root location of the project
      extensionType - type of extension being extracted
      Returns:
      the information object