Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 607 for IsFile (1.11 sec)

  1. platforms/documentation/docs/src/snippets/tutorial/antLoadfile/groovy/build.gradle

    tasks.register('loadfile') {
        def resourceDirectory = file('./antLoadfileResources')
        doLast {
            def files = resourceDirectory.listFiles().sort()
            files.each { File file ->
                if (file.isFile()) {
                    ant.loadfile(srcFile: file, property: file.name)
                    println " *** $file.name ***"
                    println "${ant.properties[file.name]}"
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 423 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/tutorial/antLoadfile/kotlin/build.gradle.kts

    tasks.register("loadfile") {
        val resourceDirectory = file("./antLoadfileResources")
        doLast {
            val files = resourceDirectory.listFiles().sorted()
            files.forEach { file ->
                if (file.isFile) {
                    ant.withGroovyBuilder {
                        "loadfile"("srcFile" to file, "property" to file.name)
                    }
                    println(" *** ${file.name} ***")
                    println("${ant.properties[file.name]}")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 493 bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/resolver/ResolverEventLogger.kt

                logDir.listFiles { file ->
                    file.isFile && file.name.matches(resolverLogFilenameRegex) && Date(file.lastModified()).before(expiration)
                }.forEach { it.delete() }
            }
    
        private
        fun readyForCleanup(logDir: File, cleanup: () -> Unit) =
            logDir.resolve(".cleanup").run {
                if (!isFile || (isFile && Date(lastModified()).before(daysAgo(cleanupAfterDays)))) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/process/internal/DefaultExecActionFactoryTest.groovy

                spec.classpath(files as Object[])
                spec.mainClass = SomeMain.name
                spec.args testFile.absolutePath
            }
    
            then:
            testFile.isFile()
            result.exitValue == 0
        }
    
        def javaexecWithNonZeroExitValueShouldThrowException() {
            when:
            factory.javaexec { spec ->
                spec.mainClass = 'org.gradle.UnknownMain'
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 15 17:11:21 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. platforms/documentation/samples/src/integTest/groovy/org/gradle/integtests/samples/dependencymanagement/SamplesManagingTransitiveDependenciesIntegrationTest.groovy

            executer.inDirectory(dslDir)
    
            when:
            succeeds(COPY_LIBS_TASK_NAME)
    
            then:
            dslDir.file('build/libs/httpclient-4.5.3.jar').isFile()
            dslDir.file('build/libs/commons-codec-1.11.jar').isFile()
    
            where:
            dsl << ['groovy', 'kotlin']
        }
    
        @UsesSample("dependencyManagement/managingTransitiveDependencies-forceForDependency")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. subprojects/core/src/testFixtures/groovy/org/gradle/api/file/FileVisitorUtil.groovy

                        }
                        assertTrue(files.add(details.relativePath.pathString))
                        assertTrue(details.relativePath.isFile())
                        assertTrue(details.file.file)
                        ByteArrayOutputStream outstr = new ByteArrayOutputStream()
                        details.copyTo(outstr)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 22 14:26:33 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/api/plugins/JvmToolchainsPluginTest.groovy

        }
    
        def "toolchain service dependencies are satisfied"() {
            expect:
            project.extensions.getByType(JavaToolchainService).launcherFor(Actions.doNothing()).get().executablePath.asFile.isFile()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. pkg/kubelet/config/common.go

    }
    
    func applyDefaults(pod *api.Pod, source string, isFile bool, nodeName types.NodeName) error {
    	if len(pod.UID) == 0 {
    		hasher := md5.New()
    		hash.DeepHashObject(hasher, pod)
    		// DeepHashObject resets the hash, so we should write the pod source
    		// information AFTER it.
    		if isFile {
    			fmt.Fprintf(hasher, "host:%s", nodeName)
    			fmt.Fprintf(hasher, "file:%s", source)
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/tutorial/antLoadfileWithMethod/groovy/build.gradle

                ant.loadfile(srcFile: file, property: file.name)
                println "I'm fond of $file.name"
            }
        }
    }
    
    File[] fileList(String dir) {
        file(dir).listFiles({file -> file.isFile() } as FileFilter).sort()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 599 bytes
    - Viewed (0)
  10. subprojects/core-api/src/test/groovy/org/gradle/api/file/RelativePathTest.java

    public class RelativePathTest {
    
        private void assertPathContains(RelativePath path, boolean isFile, String... expectedSegments) {
            String[] actualPaths = path.getSegments();
            assertArrayEquals(expectedSegments, actualPaths);
            assertEquals(isFile, path.isFile());
        }
    
        @Test
        public void testConstructors() {
            RelativePath path;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 29 15:31:00 UTC 2023
    - 8.4K bytes
    - Viewed (0)
Back to top