Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 39 for createLink (0.15 sec)

  1. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/LinuxInstallationSupplierTest.groovy

        def "supplies installations with symlinked candidate"() {
            given:
            def otherLocation = temporaryFolder.createDir("other")
            candidates.createDir("14-real")
            candidates.file("symlinked").createLink(otherLocation.canonicalFile)
    
            def supplier = new LinuxInstallationSupplier(OperatingSystem.LINUX, candidates)
    
            when:
            def directories = supplier.get()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/SupportedBuildJvmIntegrationTest.groovy

            def installedJdk = Jvm.current().javaHome
            def symlinkedJdk = file("symlink-jdk")
            installedJdk.listFiles().each {
                symlinkedJdk.file(it.name).createLink(it)
            }
            file("gradle.properties").writeProperties("org.gradle.java.home": symlinkedJdk.canonicalPath)
            expect:
            succeeds("help")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/ArchiveTreePerformanceTest.groovy

                void beforeBuild(BuildContext context) {
                    TestFile target = new TestFile(invocationSettings.projectDir, "archive-contents")
                    if (!target.exists()) {
                        target.createLink(source)
                    }
                }
            }
        }
    
        private static sampleFileContent = RandomStringUtils.random(1500)
    
        private static generateArchiveContents(File target) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 11:42:52 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-groovy/src/test/groovy/org/gradle/api/internal/plugins/GroovyJarFileTest.groovy

        }
    
        def "parse symlinked Jar"(String symlinkName, String fileName, String version, String dependencyNotation) {
            def actualFile = tmpDir.file(fileName).touch()
            def symlinkFile = tmpDir.file(symlinkName).createLink(actualFile)
    
            def jar = GroovyJarFile.parse(symlinkFile)
    
            expect:
            jar != null
            jar.file == actualFile
            jar.baseName == "groovy"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 19 20:09:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/CommonFileSystemTest.groovy

        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "stats symlink"() {
            def file = tmpDir.file("file")
            file.text = "123"
            def link = tmpDir.file("link")
            link.createLink(file)
    
            expect:
            def stat = fs.stat(link)
            stat.type == FileType.RegularFile
            lastModified(stat) == lastModified(file)
            stat.length == 3
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/context/DaemonCompatibilitySpecSpec.groovy

        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "contexts with symlinked javaHome are compatible"() {
            def linkToJdk = tmp.testDirectory.file("link")
            linkToJdk.createLink(javaHome)
    
            assert javaHome != linkToJdk
            assert linkToJdk.exists()
            assert javaHome.canonicalFile == linkToJdk.canonicalFile
    
            clientWants(Jvm.forHome(javaHome))
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

            } catch (IOException e) {
                throw new UncheckedIOException(e);
            }
        }
    
        public TestFile createLink(String target) {
            return createLink(new File(target));
        }
    
        public TestFile createLink(File target) {
            if (Files.isSymbolicLink(this.toPath())) {
                try {
                    Files.delete(toPath());
                } catch (IOException e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

            def mode = 0746
            def testSourceFile = file(testFileName)
            testSourceFile << "test file content"
            testSourceFile.mode = mode
    
            def testSourceFileLink = file("${testFileName}_link").createLink(testSourceFile.getRelativePathFromBase())
    
            and:
            buildFile << """
            task copy(type: Copy) {
                from "${testSourceFile.absolutePath}"
                from "${testSourceFileLink.absolutePath}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ApplicationPluginIntegrationTest.groovy

        def "can execute generated Unix start script using JAVA_HOME with spaces"() {
            given:
            def testJavaHome = file("javahome/java home with spaces")
            testJavaHome.createLink(Jvm.current().javaHome)
    
            when:
            succeeds('installDist')
    
            then:
            file('build/install/sample').exists()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanParallelTest.groovy

            given:
            def taskOutput = file("outputDir").createDir()
            def symlink = file("symlink")
            symlink.createLink(taskOutput)
    
            and:
            Task a = task("a", type: AsyncWithOutputDirectory)
            _ * a.outputDirectory >> taskOutput
            Task b = task("b", type: AsyncWithOutputFile)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 93.5K bytes
    - Viewed (0)
Back to top