Class CreateServerInfo
-
- 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 = "The output contains the build time stamp, so it is never up to date.") public abstract class CreateServerInfo extends DefaultTaskCreateServerInfoProperties Gradle task 'createServerInfoProperties'
This task creates a properties file with all project information. This property is used by the server.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classCreateServerInfo.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static StringDEFAULT_NAMEpublic final static StringVERSIONINFO_FILENAMEpublic final static StringVERSIONINFO_FOLDERpublic final static StringVERSIONINFOprivate final Property<String>productIdprivate final Property<String>productNameprivate final Property<String>copyrightOwnerprivate final Property<String>copyrightFromprivate final Property<String>organizationprivate final Property<String>projectVersionprivate final Property<String>projectNameprivate final RegularFilePropertyoutputFileprivate final TaskOutputsInternaloutputsprivate 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 TaskIdentity<?>taskIdentityprivate final TaskDependencyshouldRunAfterprivate final ExtensionContainerextensionsprivate final BooleanisCompatibleWithConfigurationCacheprivate final TaskDependencyfinalizedByprivate final AntBuilderantprivate final DynamicObjectasDynamicObjectprivate final List<ResourceLock>sharedResourcesprivate BooleandidWorkprivate final Optional<String>reasonNotToTrackStateprivate Stringgroupprivate final Set<String>reasonsNotToTrackStateprivate final BooleanisHasCustomActionsprivate List<Action<in Task>>actionsprivate final Stringnameprivate final FiletemporaryDirprivate final LoggingManagerloggingprivate final PathidentityPathprivate final TaskDependencymustRunAfterprivate final StandardOutputCapturestandardOutputCaptureprivate final Projectprojectprivate Stringdescriptionpublic final static CreateServerInfo.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description CreateServerInfo(ProjectLayout projectLayout, ObjectFactory objectFactory)
-
Method Summary
Modifier and Type Method Description final Property<String>getProductId()final Property<String>getProductName()final Property<String>getCopyrightOwner()final Property<String>getCopyrightFrom()final Property<String>getOrganization()final Property<String>getProjectVersion()The version of the project this task belongs to. final Property<String>getProjectName()The name of the project this task belongs to. final RegularFilePropertygetOutputFile()Output file for generated cluster id. final UnitprovideProductId(Provider<String> id)Configure product id provider for this task. final UnitprovideProductName(Provider<String> name)Configure product name provider for this task. final UnitprovideCopyrightOwner(Provider<String> owner)Configure copyright owner provider for this task. final UnitprovideCopyrightFrom(Provider<String> from)Configure copyright from provider for this task. final UnitprovideOrganization(Provider<String> org)Configure organization provider for this task. final UnitprovideProjectVersion(Provider<String> version)Configure the project version provider for this task. final UnitprovideOutputfile(Provider<RegularFile> file)Provides an output file for this task. final UnitwriteProperties()Main function to run the task functionality. -
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 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 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
-
getProductId
@Input() final Property<String> getProductId()
-
getProductName
@Input() final Property<String> getProductName()
-
getCopyrightOwner
@Input() final Property<String> getCopyrightOwner()
-
getCopyrightFrom
@Input() final Property<String> getCopyrightFrom()
-
getOrganization
@Input() final Property<String> getOrganization()
-
getProjectVersion
@Input() final Property<String> getProjectVersion()
The version of the project this task belongs to. It is provided by the plugin at configuration time, so that the task does not access the project during execution.
-
getProjectName
@Input() final Property<String> getProjectName()
The name of the project this task belongs to. It is used as fall back for the product name.
-
getOutputFile
@OutputFile() final RegularFileProperty getOutputFile()
Output file for generated cluster id.
-
provideProductId
final Unit provideProductId(Provider<String> id)
Configure product id provider for this task.
-
provideProductName
final Unit provideProductName(Provider<String> name)
Configure product name provider for this task.
-
provideCopyrightOwner
final Unit provideCopyrightOwner(Provider<String> owner)
Configure copyright owner provider for this task.
-
provideCopyrightFrom
final Unit provideCopyrightFrom(Provider<String> from)
Configure copyright from provider for this task.
-
provideOrganization
final Unit provideOrganization(Provider<String> org)
Configure organization provider for this task.
-
provideProjectVersion
final Unit provideProjectVersion(Provider<String> version)
Configure the project version provider for this task.
-
provideOutputfile
final Unit provideOutputfile(Provider<RegularFile> file)
Provides an output file for this task.
-
writeProperties
final Unit writeProperties()
Main function to run the task functionality.
-
-
-
-