Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 58 for someFile (0.15 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/bundling/AbstractArchiveTaskTest.groovy

        }
    
        def "uses custom archive name when set"() {
            when:
            archiveTask.archiveFileName.set('somefile.out')
    
            then:
            archiveTask.archiveFileName.get() == 'somefile.out'
        }
    
        def "correct archive path"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 07 10:40:13 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/files/fileTrees/kotlin/build.gradle.kts

    tree.visit {
        println("${this.relativePath} => ${this.file}")
    }
    // end::use[]
    
    // tag::archive-trees[]
    // Create a ZIP file tree using path
    val zip: FileTree = zipTree("someFile.zip")
    
    // Create a TAR file tree using path
    val tar: FileTree = tarTree("someFile.tar")
    
    // tar tree attempts to guess the compression based on the file extension
    // however if you must specify the compression explicitly you can:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/plugins/buildService/kotlin/buildSrc/src/main/java/Download.java

        @TaskAction
        public void download() {
            // Use the server to download a file
            WebServer server = getServer().get();
            URI uri = server.getUri().resolve("somefile.zip");
            System.out.println(String.format("Downloading %s", uri));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 776 bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/plugins/buildServiceUsingServiceReference/groovy/buildSrc/src/main/java/Download.java

        @TaskAction
        public void download() {
            // Use the server to download a file
            WebServer server = getServer().get();
            URI uri = server.getUri().resolve("somefile.zip");
            System.out.println(String.format("Downloading %s", uri));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 802 bytes
    - Viewed (0)
  5. tensorflow/c/env_test.cc

        ASSERT_TF_OK(s) << "TF_CreateDir failed for " << dirpath << ": "
                        << TF_Message(s);
    
        ::tensorflow::string filepath =
            ::tensorflow::io::JoinPath(dirpath, "somefile.txt");
        TF_WritableFileHandle* handle;
        TF_NewWritableFile(filepath.c_str(), &handle, s);
        ASSERT_TF_OK(s) << "NewWritableFile failed for " << filepath << ": "
                        << TF_Message(s);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Dec 10 20:52:48 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/plugins/buildServiceUsingServiceReference/kotlin/buildSrc/src/main/java/Download.java

        @TaskAction
        public void download() {
            // Use the server to download a file
            WebServer server = getServer().get();
            URI uri = server.getUri().resolve("somefile.zip");
            System.out.println(String.format("Downloading %s", uri));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 802 bytes
    - Viewed (0)
  7. platforms/documentation/docs/src/snippets/plugins/buildService/groovy/buildSrc/src/main/java/Download.java

        @TaskAction
        public void download() {
            // Use the server to download a file
            WebServer server = getServer().get();
            URI uri = server.getUri().resolve("somefile.zip");
            System.out.println(String.format("Downloading %s", uri));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 776 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/plugins/buildServiceFromWorkAction/kotlin/buildSrc/src/main/java/Download.java

            @Override
            public void execute() {
                // Use the server to download a file
                WebServer server = getParameters().getServer().get();
                URI uri = server.getUri().resolve("somefile.zip");
                System.out.println(String.format("Downloading %s", uri));
            }
        }
    
        @Inject
        abstract public WorkerExecutor getWorkerExecutor();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/SimpleTemplateOperationSpec.groovy

    class SimpleTemplateOperationSpec extends Specification {
        @TempDir
        File temporaryFolder
    
        def "Template URL must not be null"() {
            when:
            new SimpleTemplateOperation(null, new File("someFile"), [:])
            then:
            def e = thrown(BuildInitException)
            e.message == "Template URL must not be null"
        }
    
        def "Target File must not be null"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/plugins/buildServiceFromWorkAction/groovy/buildSrc/src/main/java/Download.java

            @Override
            public void execute() {
                // Use the server to download a file
                WebServer server = getParameters().getServer().get();
                URI uri = server.getUri().resolve("somefile.zip");
                System.out.println(String.format("Downloading %s", uri));
            }
        }
    
        @Inject
        abstract public WorkerExecutor getWorkerExecutor();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top