Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 125 for someFile (0.3 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformWithFileInputsIntegrationTest.groovy

                        def input = inputArtifact.get().asFile
                        println "processing \${input.name} using \${parameters.someFile.get().asFile.name}"
                        def output = outputs.file(input.name + ".green")
                        output.text = input.text + parameters.someFile.get().asFile.text + ".green"
                    }
                }
            """
    
            when:
            run(":a:resolve")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 20.6K bytes
    - Viewed (0)
  5. 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)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/verification/serializer/DependencyVerificationsXmlReaderTest.groovy

             <trust group="group" name="module"/>
             <trust group="group" name="module" version="1.0" regex="true"/>
             <trust group="group" name="module" version="1.1" file="somefile.jar"/>
             <trust group="group2" name="module2" version="1.2" file="somefile.jar" regex="true"/>
          </trusted-artifacts>
       </configuration>
    </verification-metadata>
    """
            then:
            verifier.configuration.verifyMetadata
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 18 10:13:31 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/PublishArtifactNotationParserFactoryTest.groovy

        def "creates artifact from extension-less file"() {
            def file = new File("someFile")
    
            when:
            def publishArtifact = publishArtifactNotationParser.parseNotation(file)
    
            then:
            publishArtifact instanceof DefaultPublishArtifact
            publishArtifact.file == file
            publishArtifact.name == 'someFile'
            publishArtifact.type == ''
            publishArtifact.extension == ''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

            def watchableHierarchy = file("watchable").createDir()
            def fileOutsideOfWatchableHierarchy = file("outside").file("someFile.txt").createFile()
            def fileInDirectoryIgnoredForWatching = file("cache/some-cache/someFile.txt").createFile()
            ignoredForWatching.add(fileInDirectoryIgnoredForWatching.absolutePath)
    
            when:
            registerWatchableHierarchies([watchableHierarchy])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  9. testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/AbstractTaskSubclassingBinaryCompatibilityCrossVersionSpec.groovy

    }
    
    apply plugin: SomePlugin
    """
        }
    
        protected void prepareMethodUseTest(GradleVersion targetVersion) {
            file("someFile").touch()
            file("anotherFile").touch()
            file("yetAnotherFile").touch()
            file("someDir").createDir()
    
            def apiDepConf = "implementation"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/AbstractFileTreeElementTest.groovy

        }
    
        def defaultPermissionValuesAreUsed() {
            given:
            def dir = new TestFileTreeElement(temporaryFolder.getTestDirectory(), chmod)
            def file = new TestFileTreeElement(temporaryFolder.file("someFile"), chmod)
    
            expect:
            dir.getPermissions().toUnixNumeric() == FileSystem.DEFAULT_DIR_MODE
            file.getPermissions().toUnixNumeric() == FileSystem.DEFAULT_FILE_MODE
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top