Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 385 for symlink2 (0.12 sec)

  1. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/SymlinkFileSystemWatchingIntegrationTest.groovy

            def actualDir = file("actualDir").createDir()
            file("symlink1").createLink(actualDir)
            file("symlink2").createLink(actualDir)
    
            buildFile << """
                task myTask {
                    def outputFile = file("build/output.txt")
                    inputs.dir("symlink1")
                    inputs.dir("symlink2")
                    outputs.file(outputFile)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/FileMetadata.java

         *
         * If we have a symlink situation like `symlink1` -&gt; `symlink2` -&gt; `target`,
         * then the metadata for `symlink1` will have an access type {@link AccessType#VIA_SYMLINK}
         * and the metadata of `target`, i.e. the accessor will resolve transitive symlinks.
         *
         * If the directory `symlinkedDir` -&gt; `targetDir` is a symlink, then the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/file/FileCollectionSymlinkTest.groovy

        @Shared TestFile file = baseDir.file("file")
        @Shared TestFile symlink = baseDir.file("symlink")
        @Shared TestFile symlinked = baseDir.file("symlinked")
    
        def setupSpec() {
            file.text = 'some contents'
            symlinked.text = 'target of symlink'
            symlink.createLink(symlinked)
        }
    
        def "#desc can handle symlinks"() {
            expect:
            fileCollection.contains(file)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. src/path/filepath/symlink.go

    			dest += pathSeparator
    		}
    
    		dest += path[start:end]
    
    		// Resolve symlink.
    
    		fi, err := os.Lstat(dest)
    		if err != nil {
    			return "", err
    		}
    
    		if fi.Mode()&fs.ModeSymlink == 0 {
    			if !fi.Mode().IsDir() && end < len(path) {
    				return "", syscall.ENOTDIR
    			}
    			continue
    		}
    
    		// Found symlink.
    
    		linksWalked++
    		if linksWalked > 255 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/Symlink.java

     * limitations under the License.
     */
    
    package org.gradle.internal.nativeintegration.filesystem;
    
    import java.io.File;
    
    public interface Symlink {
        boolean isSymlinkCreationSupported();
    
        void symlink(File link, File target) throws Exception;
    
        boolean isSymlink(File suspect);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 867 bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/file/FileCollectionSymlinkIntegrationTest.groovy

                def symlink = new File(baseDir, "symlink")
                def symlinked = new File(baseDir, "symlinked")
                def fileCollection = $code
    
                assert fileCollection.contains(file)
                assert fileCollection.contains(symlink)
                assert fileCollection.contains(symlinked)
                assert fileCollection.files == [file, symlink, symlinked] as Set
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SymlinkContinuousIntegrationTest.groovy

            // the symlink is watched between builds.
            linkdir.file("existing").createFile()
            buildFile << """
        task echo {
            def symlink = file("${symlink.toURI()}")
            inputs.files symlink
            inputs.files "src/linkdir/existing"
            outputs.file "build/outputs"
            doLast {
                println "text: " + (symlink.exists() ? symlink.text:"missing")
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  8. platforms/jvm/jvm-services/src/test/groovy/org/gradle/jvm/toolchain/internal/SdkmanInstallationSupplierTest.groovy

            directories*.source.unique() == ["SDKMAN!"]
        }
    
        @Requires(UnitTestPreconditions.Symlinks)
        def "supplies installations with symlinked candidate"() {
            given:
            def real = candidates.createDir("java/11.0.6.hs-adpt")
            def symlink = candidates.file("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)
  9. src/cmd/go/testdata/script/list_goroot_symlink.txt

    # Construct a fake GOROOT in $WORK/lib/goroot whose src directory is a symlink
    # to a subdirectory of $WORK/share. This mimics the directory structure reported
    # in https://go.dev/issue/57754.
    #
    # Symlink everything else to the original $GOROOT to avoid needless copying work.
    
    mkdir $WORK/lib/goroot
    mkdir $WORK/share/goroot
    symlink $WORK/share/goroot/src -> $GOROOT${/}src
    symlink $WORK/lib/goroot/src -> ../../share/goroot/src
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:01:07 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. 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)
Back to top