Class AbstractICMASContainerTask
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
@DisableCachingByDefault(because = "Executes a command inside a live ICM-AS container - the result depends on external container state and must never be taken from the build cache") public abstract class AbstractICMASContainerTask<RC extends ResultCallback<Frame>, RCT extends ResultCallbackTemplate<RC, Frame>, ER extends Object> extends AbstractExistingContainerTask
Abstract base task to run a typical ICM-AS classes on a previously prepared container
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringDEFAULT_COMMANDprivate final Property<DevelopmentConfiguration.DatabaseParameters>databaseConfigurationprivate final Property<DevelopmentConfiguration.WebserverConfiguration>webserverConfigurationprivate final Property<DevelopmentConfiguration.ASPortConfiguration>portConfigurationprivate final SetProperty<String>cartridgeListprivate final SetProperty<String>testCartridgeListprivate Stringdebugprivate StringclasspathLayoutprivate final Property<ContainerHandle>containerprivate final TaskOutputsInternaloutputsprivate final Property<String>apiVersionprivate final Spec<in TaskInternal>onlyIfprivate final Property<Duration>timeoutprivate final TaskRequiredServicesrequiredServicesprivate final TaskDependencyInternaltaskDependenciesprivate final Set<Object>dependsOnprivate final TaskDestroyablesdestroyablesprivate final Loggerloggerprivate final Stringpathprivate final Factory<File>temporaryDirFactoryprivate final Optional<String>reasonTaskIsIncompatibleWithConfigurationCacheprivate final TaskLocalStatelocalStateprivate final List<InputChangesAwareTaskAction>taskActionsprivate final TaskDependencyInternallifecycleDependenciesprivate BooleanisEnabledprivate BooleanimpliesSubProjectsprivate final TaskInputsInternalinputsprivate Booleanenabledprivate final TaskStateInternalstateprivate final Property<String>urlprivate final TaskIdentity<?>taskIdentityprivate final TaskDependencyshouldRunAfterprivate final ExtensionContainerextensionsprivate final BooleanisCompatibleWithConfigurationCacheprivate final TaskDependencyfinalizedByprivate final AntBuilderantprivate final DynamicObjectasDynamicObjectprivate final List<ResourceLock>sharedResourcesprivate BooleandidWorkprivate final Property<DockerClientService>dockerClientServiceprivate final Optional<String>reasonNotToTrackStateprivate Stringgroupprivate final Set<String>reasonsNotToTrackStateprivate final BooleanisHasCustomActionsprivate List<Action<in Task>>actionsprivate final DirectoryPropertycertPathprivate final Stringnameprivate final FiletemporaryDirprivate final LoggingManagerloggingprivate final PathidentityPathprivate final DockerClientdockerClientprivate final TaskDependencymustRunAfterprivate final StandardOutputCapturestandardOutputCaptureprivate final Projectprojectprivate Stringdescription
-
Constructor Summary
Constructors Constructor Description AbstractICMASContainerTask(ObjectFactory objectFactory, ProviderFactory providerFactory)
-
Method Summary
Modifier and Type Method Description final Property<DevelopmentConfiguration.DatabaseParameters>getDatabaseConfiguration()The database configuration. final Property<DevelopmentConfiguration.WebserverConfiguration>getWebserverConfiguration()The webserver configuration. final Property<DevelopmentConfiguration.ASPortConfiguration>getPortConfiguration()The port configuration. final SetProperty<String>getCartridgeList()The cartridge list to be used to start the ICM-AS server final SetProperty<String>getTestCartridgeList()The cartridge list to be used to start the ICM-AS server for tests final StringgetDebug()Enable debugging for the JVM running the ICM-AS inside the container. final UnitsetDebug(String value)Enable debugging for the JVM running the ICM-AS inside the container. final StringgetClasspathLayout()Provide a custom classpath layout. final UnitsetClasspathLayout(String value)Provide a custom classpath layout. final Collection<String>getDebugOptionValues()Return the possible values for the task option debug UnitrunRemoteCommand()Executes a docker-execon the container provided by containerId.-
Methods inherited from class com.intershop.gradle.icm.docker.tasks.AbstractContainerTask
currentContainerState, getContainer, getContainer -
Methods inherited from class org.gradle.api.DefaultTask
getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, setActions, setDescription, setDidWork, setEnabled, setEnabled, setGroup -
Methods inherited from class com.bmuschko.gradle.docker.tasks.AbstractDockerRemoteApiTask
getApiVersion, getCertPath, getDockerClient, getDockerClientService, getUrl, onComplete, onError, onNext, start -
Methods inherited from class org.gradle.api.internal.AbstractTask
getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getReasonsNotToTrackState, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, setImpliesSubProjects -
Methods inherited from class com.intershop.gradle.icm.docker.tasks.AbstractExistingContainerTask
executeUsing -
Methods inherited from class org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setDependsOn, setFinalizedBy, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class kotlin.Comparable
compareTo -
Methods inherited from class org.gradle.api.internal.TaskInternal
acceptServiceReferences, appendParallelSafeAction, doNotTrackStateIf, hasTaskActions, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDatabaseConfiguration
@Input() final Property<DevelopmentConfiguration.DatabaseParameters> getDatabaseConfiguration()
The database configuration. It is lazily determined from com.intershop.gradle.icm.docker.extension.DevelopmentConfiguration.databaseConfiguration
-
getWebserverConfiguration
@Input() final Property<DevelopmentConfiguration.WebserverConfiguration> getWebserverConfiguration()
The webserver configuration. It is lazily determined from com.intershop.gradle.icm.docker.extension.DevelopmentConfiguration.webserverConfiguration
-
getPortConfiguration
@Input() final Property<DevelopmentConfiguration.ASPortConfiguration> getPortConfiguration()
The port configuration. It is lazily determined from com.intershop.gradle.icm.docker.extension.DevelopmentConfiguration.asPortConfiguration
-
getCartridgeList
@Input() final SetProperty<String> getCartridgeList()
The cartridge list to be used to start the ICM-AS server
-
getTestCartridgeList
@Input() final SetProperty<String> getTestCartridgeList()
The cartridge list to be used to start the ICM-AS server for tests
-
getDebug
@Input() final String getDebug()
Enable debugging for the JVM running the ICM-AS inside the container. This option defaults to the value of the JVM property (SYSPROP_DEBUG_JVM) respectively
falseif not set. The port on the host can be configured using the propertyicm.properties/intershop.as.debug.port
-
setDebug
final Unit setDebug(String value)
Enable debugging for the JVM running the ICM-AS inside the container. This option defaults to the value of the JVM property (SYSPROP_DEBUG_JVM) respectively
falseif not set. The port on the host can be configured using the propertyicm.properties/intershop.as.debug.port
-
getClasspathLayout
@Optional()@Input() final String getClasspathLayout()
Provide a custom classpath layout. Default value is
sourceJar,release.
-
setClasspathLayout
final Unit setClasspathLayout(String value)
Provide a custom classpath layout. Default value is
sourceJar,release.
-
getDebugOptionValues
final Collection<String> getDebugOptionValues()
Return the possible values for the task option debug
-
runRemoteCommand
Unit runRemoteCommand()
Executes a
docker-execon the container provided by containerId. Thisdocker-execuses the environment variables provided by createContainerEnvironment and the callback created by createCallback. When thedocker-exechas finished the return code is processed by processExecutionResult. Finally postRunRemoteCommand is executed.
-
-
-
-