Class ExtensionInfoLoader
java.lang.Object
mpern.sap.commerce.build.extensioninfo.ExtensionInfoLoader
Responsible for the creation of
Extension DTOs for the core build
plugin.-
Constructor Summary
ConstructorsConstructorDescriptionExtensionInfoLoader(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 Summary
Modifier and TypeMethodDescriptionGets the extensions from the Hybris project custom folder.Gets the extensions from the project dependecies in "hybrisPlatform" configuration.Gets the platform extension.loadAllNeededExtensions(Map<String, Extension> allKnownExtensions) Loads all the extensions needed, based on the localextensions.xml.Loads all the extensions already existing in the project folder.
-
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
Gets the extensions from the Hybris project custom folder.- Returns:
- found extensions
-
getExtensionsFromHybrisPlatformDependencies
Gets the extensions from the project dependecies in "hybrisPlatform" configuration.- Returns:
- found extensions
-
getPlatfromExtension
Gets the platform extension. Note that it does not have a real location in its directory property.- Returns:
- the platform extension
-
loadAllNeededExtensions
Loads all the extensions needed, based on the localextensions.xml.- Parameters:
allKnownExtensions- all extensions known- Returns:
- the needed extensions
-
loadAlreadyExistingExtensions
Loads all the extensions already existing in the project folder.- Returns:
- the existing extensions
-