Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 153 for symlinks (0.16 sec)

  1. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/tools/ToolSearchPathTest.groovy

            then:
            result.available
            result.tool == file
        }
    
        def "resolves cygwin symlinks on Windows"() {
            def file = tmpDir.createFile("cc.bin")
            def symlink = tmpDir.file("cc")
    
            given:
            symlink.setText("!<symlink>cc.bin\u0000", "utf-8")
            os.path >> [symlink.parentFile]
            os.windows >> true
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/cgotest/overlaydir.go

    			}
    			perm = info.Mode() & os.ModePerm
    		}
    
    		// Always copy directories (don't symlink them).
    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If the OS supports symlinks, use them instead of copying bytes.
    		if err := os.Symlink(srcPath, dstPath); err == nil {
    			return nil
    		}
    
    		// Otherwise, copy the bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. cmd/os-readdir_test.go

    			t.Fatalf("Unable to create a file, %s", err)
    		}
    		// Symlink will not be added to entries.
    		if err := os.Symlink(filepath.Join(dir, name1), filepath.Join(dir, name2)); err != nil {
    			t.Fatalf("Unable to create a symlink, %s", err)
    		}
    		// Add to entries.
    		entries = append(entries, name1)
    		// Symlinks are preserved for regular files
    		entries = append(entries, name2)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  4. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/FileModeAccessor.java

     * limitations under the License.
     */
    
    package org.gradle.internal.file;
    
    import java.io.File;
    
    public interface FileModeAccessor {
        /**
         * @param f The file to get the mode for. Note that all symlinks are followed.
         * @return The unix mode of the file
         */
        int getUnixMode(File f) throws Exception;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 898 bytes
    - Viewed (0)
  5. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/AsdfInstallationSupplierTest.groovy

            directories*.source.unique() == ["asdf-vm"]
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "supplies installations with symlinked candidate"() {
            given:
            def real = candidates.createDir("installs/java/11.0.6.hs-adpt")
            def symlink = candidates.file("installs/java/symlink").createLink(real)
    
            when:
            def directories = supplier.get()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:17:53 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/api/file/DeleteSpec.java

         */
        DeleteSpec delete(Object... files);
    
        /**
         * Specifies whether or not symbolic links should be followed during deletion.
         *
         * @param followSymlinks deletion will follow symlinks when true.
         */
        void setFollowSymlinks(boolean followSymlinks);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 01 02:14:13 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/goroot_executable.txt

    # so it should find the new tree.
    mkdir $WORK/new/pkg/tool
    exec $WORK/bin/check$GOEXE $WORK/new/bin/go$GOEXE $WORK/new
    
    [!symlink] stop 'The rest of the test cases require symlinks'
    
    # Symlinked Executable:
    # With a symlink into go tree, we should still find the go tree.
    mkdir $WORK/other/bin
    symlink $WORK/other/bin/go$GOEXE -> $WORK/new/bin/go$GOEXE
    exec $WORK/bin/check$GOEXE $WORK/new/bin/go$GOEXE $WORK/new
    
    rm $WORK/new/pkg
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildSymlinkHandlingIntegrationTest.groovy

    import java.nio.file.Files
    import java.nio.file.StandardCopyOption
    
    @Requires(UnitTestPreconditions.Symlinks)
    class IncrementalBuildSymlinkHandlingIntegrationTest extends AbstractIntegrationSpec implements ValidationMessageChecker {
        def setup() {
            expectReindentedValidationMessage()
    
            // Must run on isolated daemons so that symlink data can be properly cleaned up between builds
            executer.requireDaemon()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 14:30:36 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. src/crypto/x509/root_unix.go

    			}
    		}
    	}
    
    	if roots.len() > 0 || firstErr == nil {
    		return roots, nil
    	}
    
    	return nil, firstErr
    }
    
    // readUniqueDirectoryEntries is like os.ReadDir but omits
    // symlinks that point within the directory.
    func readUniqueDirectoryEntries(dir string) ([]fs.DirEntry, error) {
    	files, err := os.ReadDir(dir)
    	if err != nil {
    		return nil, err
    	}
    	uniq := files[:0]
    	for _, f := range files {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:54:07 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/fingerprint/impl/BrokenSymlinkNormalizationStrategyTest.groovy

            strategy << allFingerprintingStrategies
            strategyName = getStrategyName(strategy)
        }
    
        def "non-root broken symlink is fingerprinted as missing for #strategyName"() {
            given:
            def root = file('root')
            root.mkdirs()
            def brokenSymlink = root.file('broken-symlink')
            brokenSymlink.createLink(file('non-existing'))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top