Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for isPresent (0.18 sec)

  1. build-logic-commons/module-identity/src/main/kotlin/gradlebuild.module-identity.gradle.kts

        val rcNumber = buildRcNumber
        val milestoneNumber = buildMilestoneNumber
    
        if (
            (buildFinalRelease.isPresent && buildRcNumber.isPresent) ||
            (buildFinalRelease.isPresent && buildMilestoneNumber.isPresent) ||
            (buildRcNumber.isPresent && buildMilestoneNumber.isPresent)
        ) {
            throw InvalidUserDataException("Cannot set any combination of milestoneNumber, rcNumber and finalRelease at the same time")
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

        }
    
        @Internal
        protected
        fun getContributorsFromPullRequests(): Set<GitHubUser> {
            if (!milestone.isPresent) {
                throw IllegalStateException("Milestone not set: please rerun the task with `--milestone <milestone>`")
            }
            val prs: MutableList<GitHubPullRequest> = mutableListOf()
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon May 16 05:03:11 GMT 2022
    - 5.7K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/extensions.kt

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import japicmp.util.Optional
    
    
    internal
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 764 bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractSuperClassChangesRule.groovy

            if (!changed(member)) {
                return null
            }
    
            Optional<CtClass> oldClass = member.oldClass
            Optional<CtClass> newClass = member.newClass
            if (!oldClass.isPresent() || !newClass.isPresent()) {
                // breaking change would be reported
                return null
            }
    
            return checkSuperClassChanges(member, oldClass.get(), newClass.get())
        }
    
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Thu Oct 06 19:15:15 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  5. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioSystemProperties.kt

                val androidStudioPath = studioInstallation.studioInstallLocation.asFile.get().absolutePath
                return "-Dstudio.home=$androidStudioPath"
            } else if (androidStudioHome.isPresent) {
                return "-Dstudio.home=${androidStudioHome.get()}"
            }
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Tue Feb 20 09:51:32 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

                if (!wildcardType.getExtendedType().isPresent() && !wildcardType.getSuperType().isPresent()) {
                    typeMetaData.setWildcard();
                } else {
                    wildcardType.getExtendedType().ifPresent(referenceType -> typeMetaData.setUpperBounds(extractTypeName(referenceType)));
                    wildcardType.getSuperType().ifPresent(referenceType -> typeMetaData.setLowerBounds(extractTypeName(referenceType)));
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Thu Sep 21 13:27:02 GMT 2023
    - 11.7K bytes
    - Viewed (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/BuildParams.kt

            }
        }.toMap()
    
    
    /**
     * Creates a [Provider] that returns `true` when this [Provider] has a value
     * and `false` otherwise. The returned [Provider] always has a value.
     * @see Provider.isPresent
     */
    private
    fun <T> Provider<T>.presence(): Provider<Boolean> =
        map { true }.orElse(false)
    
    
    fun Project.gradleProperty(propertyName: String) = providers.gradleProperty(propertyName)
    
    
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Jan 01 01:23:31 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  8. build-logic-commons/module-identity/src/main/kotlin/gradlebuild/identity/provider/BuildTimestampValueSource.kt

        private
        val timestampSource: String
            get() = parameters.run {
                when {
                    buildTimestampFromBuildReceipt.isPresent -> "from build receipt"
                    buildTimestampFromGradleProperty.isPresent -> "from buildTimestamp property"
                    runningInstallTask.get() -> "from current time because installing"
    Plain Text
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java

        private static RichReport.Configuration reportConfigurationOf(Provider<RichReport> report) {
            if (report.isPresent()) {
                return report.get().toConfiguration();
            }
            return null;
        }
    
        private static File maybeFile(RegularFileProperty property) {
            if (property.isPresent()) {
                return property.getAsFile().get();
            }
            return null;
        }
    
    Java
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Wed Apr 26 10:58:32 GMT 2023
    - 13.3K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

            Set<AccessorKey> seenOldAccessorsOfUpgradedProperties = (Set<AccessorKey>) context.userData[SEEN_OLD_ACCESSORS_OF_UPGRADED_PROPERTIES]
            UpgradedProperties.maybeGetKeyOfOldAccessorOfUpgradedProperty(member, context).ifPresent { seenOldAccessorsOfUpgradedProperties.add(it) }
    
            def change = new ApiChange(
                context.className,
                Violation.describe(member),
                changes
            )
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 10.4K bytes
    - Viewed (0)
Back to top