Class ExtensionInfoLoader

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

public class ExtensionInfoLoader extends Object
Responsible for the creation of Extension DTOs for the core build plugin.
  • Constructor Details

    • ExtensionInfoLoader

      @Inject public ExtensionInfoLoader(HybrisPluginExtension hybrisPluginExtension, org.gradle.api.file.FileCollection hybrisDependencies, org.gradle.api.file.ArchiveOperations archiveOperations, org.gradle.api.model.ObjectFactory objectFactory, org.gradle.api.file.ProjectLayout layout)
  • Method Details

    • getExtensionsFromCustomFolder

      public Map<String,Extension> getExtensionsFromCustomFolder()
      Gets the extensions from the Hybris project custom folder.
      Returns:
      found extensions
    • getExtensionsFromHybrisPlatformDependencies

      public Map<String,Extension> getExtensionsFromHybrisPlatformDependencies()
      Gets the extensions from the project dependecies in "hybrisPlatform" configuration.
      Returns:
      found extensions
    • getPlatfromExtension

      public Extension getPlatfromExtension()
      Gets the platform extension. Note that it does not have a real location in its directory property.
      Returns:
      the platform extension
    • loadAllNeededExtensions

      public Map<String,Extension> loadAllNeededExtensions(Map<String,Extension> allKnownExtensions)
      Loads all the extensions needed, based on the localextensions.xml.
      Parameters:
      allKnownExtensions - all extensions known
      Returns:
      the needed extensions
    • loadAlreadyExistingExtensions

      public Map<String,Extension> loadAlreadyExistingExtensions()
      Loads all the extensions already existing in the project folder.
      Returns:
      the existing extensions