Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 242 for GREETING (0.14 sec)

  1. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/kotlinapplication/AppTest.kt.template

    import kotlin.test.Test
    import kotlin.test.assertNotNull
    
    class AppTest {
        @Test fun appHasAGreeting() {
            val classUnderTest = App()
            assertNotNull(classUnderTest.greeting, "app should have a greeting")
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 284 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/tasks/customTaskWithProperty/tests/customTaskWithProperty.sample.conf

    # tag::cli[]
    # gradle --quiet hello greeting
    # end::cli[]
    executable: gradle
    args: hello greeting
    flags: --quiet
    expected-output-file: customTaskWithProperty.out
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 192 bytes
    - Viewed (0)
  3. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerExecutorNestingIntegrationTest.groovy

            workerClass.constructorAction = "this.executor = executor"
            workerClass.action = """
                def theGreeting = parameters.greeting
                parameters.childSubmissions.times {
                    executor.$nestedIsolationMode().submit(SecondLevelExecution) {
                        greeting.set(theGreeting)
                    }
                }
            """
            return workerClass
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/samples/build-organization/composite-builds/plugin-dev/tests/sanityCheck.sample.conf

    commands: [{
        executable: gradle
        args: tasks -q
        flags: "--include-build=greeting-plugin"
    },{
        execution-subdirectory: greeting-plugin
        executable: gradle
        args: tasks -q
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 193 bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/customPlugins/customPluginWithConvention/kotlin/build.gradle.kts

    interface GreetingPluginExtension {
        val message: Property<String>
    }
    
    class GreetingPlugin : Plugin<Project> {
        override fun apply(project: Project) {
            // Add the 'greeting' extension object
            val extension = project.extensions.create<GreetingPluginExtension>("greeting")
            extension.message.convention("Hello from GreetingPlugin")
            // Add a task that uses configuration from the extension object
            project.task("hello") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 22:56:31 UTC 2024
    - 588 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/base/customExternalTask/kotlin/task/src/main/groovy/org/gradle/GreetingTask.groovy

    import org.gradle.api.DefaultTask
    import org.gradle.api.tasks.TaskAction
    import org.gradle.api.tasks.Input
    
    class GreetingTask extends DefaultTask {
    
        @Input
        String greeting = 'hello from GreetingTask'
    
        @TaskAction
        def greet() {
            println greeting
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 297 bytes
    - Viewed (0)
  7. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/cppapp/app.cpp.template

    ${fileComment.multilineComment}
    #include <iostream>
    #include <stdlib.h>
    #include "app.h"
    
    std::string ${namespace.groovyString}::Greeter::greeting() {
        return std::string("Hello, World!");
    }
    
    int main () {
        ${namespace.groovyString}::Greeter greeter;
        std::cout << greeter.greeting() << std::endl;
        return 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 323 bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/AppSuite.scala.template

    import org.scalatest.funsuite.AnyFunSuite
    import org.junit.runner.RunWith
    import org.scalatestplus.junit.JUnitRunner
    
    @RunWith(classOf[JUnitRunner])
    class AppSuite extends AnyFunSuite {
      test("App has a greeting") {
        assert(App.greeting() != null)
      }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 314 bytes
    - Viewed (0)
  9. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/javaapplication/groovy/AppTest.groovy.template

    ${fileComment.multilineComment}${packageDecl.statement}
    import spock.lang.Specification
    
    class AppTest extends Specification {
        def "application has a greeting"() {
            setup:
            def app = new App()
    
            when:
            def result = app.greeting
    
            then:
            result != null
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 306 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/customPlugins/customPluginNoConvention/kotlin/build.gradle.kts

    interface GreetingPluginExtension {
        val message: Property<String>
    }
    
    class GreetingPlugin : Plugin<Project> {
        override fun apply(project: Project) {
            // Add the 'greeting' extension object
            val extension = project.extensions.create<GreetingPluginExtension>("greeting")
            // Add a task that uses configuration from the extension object
            project.task("hello") {
                doLast {
                    println(extension.message.get())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 14 22:56:31 UTC 2024
    - 608 bytes
    - Viewed (0)
Back to top