Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for createLink (0.18 sec)

  1. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterTest.groovy

            def linkTarget3 = tmpDir.createFile("linkTarget3")
    
            rootDir.createLink(linkTarget1)
            linkTarget1.file("includedSymlink").createLink(linkTarget2)
            linkTarget1.file("excludedSymlink").createLink(linkTarget2)
            linkTarget2.file("symlinkedFile.txt").createLink(linkTarget3)
            linkTarget2.file("excludedSymlinkedFile.png").createLink(linkTarget3)
    
            // rootDir -> linkTarget1
            //   - included
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy

            def baseDir = file('build')
            baseDir.file('file').text = 'some contents'
            def symlinked = baseDir.file('symlinked')
            symlinked.text = 'target of symlink'
            baseDir.file('symlink').createLink(symlinked)
    
            buildScript << """
                def baseDir = new File("${escapeString(baseDir)}")
                def file = new File(baseDir, "file")
                def symlink = new File(baseDir, "symlink")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/execution/commandline/CommandLineIntegrationTest.groovy

            def binary = new File("/usr/bin/$command")
            if (!binary.exists()) {
                binary = new File("/bin/$command")
            }
            assert binary.exists()
            binDir.file(command).createLink(binary)
        }
    
        def "can define gradle user home via environment variable"() {
            // the actual testing is done in the build script.
            when:
            buildFile """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. android/guava-tests/test/com/google/common/io/SourceSinkFactories.java

      public static CharSinkFactory asCharSinkFactory(final ByteSinkFactory factory) {
        checkNotNull(factory);
        return new CharSinkFactory() {
          @Override
          public CharSink createSink() throws IOException {
            return factory.createSink().asCharSink(Charsets.UTF_8);
          }
    
          @Override
          public String getSinkContents() throws IOException {
            return new String(factory.getSinkContents(), Charsets.UTF_8);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Apr 06 12:56:11 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. src/runtime/mfinal.go

    		}
    	}
    }
    
    func wakefing() *g {
    	if ok := fingStatus.CompareAndSwap(fingCreated|fingWait|fingWake, fingCreated); ok {
    		return fing
    	}
    	return nil
    }
    
    func createfing() {
    	// start the finalizer goroutine exactly once
    	if fingStatus.Load() == fingUninitialized && fingStatus.CompareAndSwap(fingUninitialized, fingCreated) {
    		go runfinq()
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top