Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for printVersion (0.14 sec)

  1. src/cmd/go/testdata/script/mod_outside.txt

    # See mod_install_pkg_version.
    rm $GOPATH/bin
    go install example.com/printversion@v0.1.0
    exists $GOPATH/bin/printversion$GOEXE
    
    # 'go install' should fail if a package argument must be resolved to a module.
    ! go install example.com/printversion
    stderr '^go: ''go install'' requires a version when current directory is not in a module\n\tTry ''go install example.com/printversion@latest'' to install the latest version$'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 18 15:34:40 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/authoring-builds/tasks/implementing_custom_tasks.adoc

    [.multi-language-sample]
    =====
    .app/build.gradle.kts
    [source,kotlin]
    ----
    tasks.register<PrintVersion>("printVersion") {
    
        // Configuration code
        version = project.version as String
    }
    ----
    =====
    [.multi-language-sample]
    =====
    .app/build.gradle
    [source,groovy]
    ----
    tasks.register(PrintVersion, "printVersion") {
    
        // Configuration code
        version = project.version.toString()
    }
    ----
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 05:34:54 UTC 2024
    - 37.2K bytes
    - Viewed (0)
Back to top