Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 437 for Advice (0.18 sec)

  1. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/DeprecationMessagesTest.groovy

            when:
            DeprecationLogger.deprecate("Something").withAdvice("Advice.").withContext("Contextual advice.").willBeRemovedInGradle9().undocumented().nagUser()
    
            then:
            expectMessage "Something has been deprecated. This is scheduled to be removed in Gradle ${NEXT_GRADLE_VERSION}. Contextual advice. Advice."
        }
    
        def "logs deprecated build invocation message"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/deprecation/DeprecatedFeatureUsageTest.groovy

            "summary" | "removalDetails" | "advice" | null               | null                                         | "summary removalDetails advice"
            "summary" | "removalDetails" | "advice" | "contextualAdvice" | null                                         | "summary removalDetails contextualAdvice advice"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 16:09:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecatedFeatureUsage.java

            return removalDetails;
        }
    
        /**
         * General, non usage specific, advice on what to do about this notice.
         *
         * Example: Use method Foo.baz() instead.
         */
        @Nullable
        public String getAdvice() {
            return advice;
        }
    
        /**
         * Advice on what to do about the notice, specific to this usage.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationMessageBuilder.java

        public T withContext(String context) {
            this.context = context;
            return (T) this;
        }
    
        @SuppressWarnings("unchecked")
        public T withAdvice(String advice) {
            this.advice = advice;
            return (T) this;
        }
    
        @SuppressWarnings("unchecked")
        public T withProblemIdDisplayName(String problemIdDisplayName) {
            this.problemIdDisplayName = problemIdDisplayName;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/internal/deprecation/DeprecationLogger.java

     * <p>
     * The deprecateX methods in this class return a builder that guides creation of the deprecation message.
     * Summary is populated by the deprecateX methods in this class.
     * Context can be added in free text using {@link DeprecationMessageBuilder#withContext(String)}.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheProblemsServiceIntegTest.groovy

                definition.severity == Severity.WARNING
            }
        }
    
        def "notCompatibleWithConfigurationCache task problems are reported as Advice"() {
            given:
            buildFile """
                task run {
                    notCompatibleWithConfigurationCache("because")
                    doLast {
                        println(project.name)
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 13:04:02 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/featurelifecycle/LoggingDeprecatedFeatureHandler.java

            }
            return createDefaultDeprecationId(usage.getProblemIdDisplayName());
        }
    
        private static void addSolution(@Nullable String advice, InternalProblemSpec problemSpec) {
            if (advice != null) {
                problemSpec.solution(advice);
            }
        }
    
        private static void addPossibleLocation(ProblemDiagnostics diagnostics, InternalProblemSpec deprecationProblemBuilder) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/ProblemsProgressEventConsumer.java

            return details == null ? null : new DefaultDetails(details);
        }
    
        private static InternalSeverity toInternalSeverity(Severity severity) {
            switch (severity) {
                case ADVICE:
                    return ADVICE;
                case WARNING:
                    return WARNING;
                case ERROR:
                    return ERROR;
                default:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. platforms/ide/problems-api/src/main/java/org/gradle/api/problems/internal/Problem.java

         */
        ProblemDefinition getDefinition();
    
        @Nullable
        String getContextualLabel();
    
        /**
         * Returns solutions and advice that contain context-sensitive data, e.g. the message contains references to variables, locations, etc.
         */
        List<String> getSolutions();
    
        /**
         * A long description detailing the problem.
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/optimizing-performance/build-cache/caching_android_projects.adoc

    == Annotation processors and Kotlin
    
    The <<caching_java_projects.adoc#annotation_processors,advice above>> for pure Java projects also applies to Android projects.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 12:54:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top