Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for askBooleanQuestion (0.54 sec)

  1. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/DefaultUserInputHandlerTest.groovy

            0 * userInputHandler._
    
            and:
            input == null
        }
    
        def "can ask yes/no question"() {
            when:
            def input = ask { it.askBooleanQuestion(TEXT, true) }
    
            then:
            1 * outputEventBroadcaster.onOutput(_ as UserInputRequestEvent)
            1 * outputEventBroadcaster.onOutput(_) >> { BooleanQuestionPromptEvent event ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 04:50:46 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/java/org/gradle/buildinit/tasks/InitBuild.java

                if (isNotEmptyDirectory) {
                    boolean fileOverwriteAllowed = getAllowFileOverwrite().get();
                    if (!fileOverwriteAllowed) {
                        fileOverwriteAllowed = userQuestions.askBooleanQuestion("Found existing files in the project directory: '" + projectDirFile +
                            "'." + System.lineSeparator() + "Directory will be modified and existing files may be overwritten.  Continue?", false);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 10 12:58:10 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/userinput/UserInputHandlingIntegrationTest.groovy

                    doLast {
                        println "result = " + result.getOrElse("<default>")
                    }
                }
    
                task askBoolean {
                    def result = handler.askUser { it.askBooleanQuestion("thing?", true) }
                    doLast {
                        println "result = " + result.get()
                    }
                }
    
                task askInt {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top