public class ExtendCartridgeList
Task for the extension of an existing properties template with project configuration settings.
@NotNull public static java.lang.String CARTRIDGELISTFILE_NAME
Path for original cartridge list properties in build directory.
@NotNull public static java.lang.String CARTRIDGES_PROPERTY
Property name for cartridges.
@NotNull public static java.lang.String CARTRIDGES_DBINIT_PROPERTY
Property name for dbinit/dbprepare cartridges.
public static com.intershop.gradle.icm.tasks.ExtendCartridgeList.Companion Companion
@Inject
public ExtendCartridgeList(@NotNull
org.gradle.api.file.ProjectLayout projectLayout,
@NotNull
org.gradle.api.model.ObjectFactory objectFactory)
Creates a task for editing a special configuration file.
@Input @NotNull public org.gradle.api.provider.SetProperty<java.lang.String> getCartridges()
public void provideCartridges(@NotNull
org.gradle.api.provider.Provider<java.util.Set> list)
Provides a list of all additional project cartridges (project names, dependencies) for the ICM project.
list - provider of a String set.@Input @NotNull public org.gradle.api.provider.SetProperty<java.lang.String> getDbprepareCartridges()
public void provideDBprepareCartridges(@NotNull
org.gradle.api.provider.Provider<java.util.Set> list)
Provides a list of all additional DB project cartridges (project names, dependencies) for the ICM project.
list - provider of a String set.@InputFile @NotNull public org.gradle.api.file.RegularFileProperty getTemplateFile()
public void provideTemplateFile(@NotNull
org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> file)
Provides the base template file "cartridgelist.properties" from a base project.
file - provider of a regular file.@Optional @Input @NotNull public org.gradle.api.provider.ListProperty<com.intershop.gradle.icm.utils.EnvironmentType> getEnvironmentTypes()
public void provideEnvironmentTypes(@NotNull
org.gradle.api.provider.Provider<java.util.List> list)
Provides a list of environment types which should be handeled by this created list configuration.
list - provider of a list of environment types.@OutputFile @NotNull public org.gradle.api.file.RegularFileProperty getOutputFile()
public void provideOutputFile(@NotNull
org.gradle.api.provider.Provider<org.gradle.api.file.RegularFile> file)
Provides the output file of this task. It contains the cartridge list configuration of this project for special environment types.
file - regular file provider.public void extendList()
Task execution method of this task. It creates the new property file.