Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 215 for SetMode (0.11 sec)

  1. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/NativePlatformBackedChmod.java

        public NativePlatformBackedChmod(PosixFiles posixFiles) {
            this.posixFiles = posixFiles;
        }
    
        @Override
        public void chmod(File file, int mode) {
            posixFiles.setMode(file, mode);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. src/math/big/float_test.go

    	}
    
    	// compute expected accuracy
    	a := Exact
    	switch {
    	case r < x:
    		a = Below
    	case r > x:
    		a = Above
    	}
    
    	// round
    	f := new(Float).SetMode(mode).SetInt64(x).SetPrec(prec)
    
    	// check result
    	r1 := f.int64()
    	p1 := f.Prec()
    	a1 := f.Acc()
    	if r1 != r || p1 != prec || a1 != a {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestWorkspaceBuilder.groovy

        }
    
        TestFile file(String name) {
            baseDir.file(name).createFile()
        }
    
        TestFile link(String name, String target) {
            baseDir.file(name).createLink(target)
        }
    
        def setMode(int mode) {
            baseDir.mode = mode
        }
    
        def methodMissing(String name, Object args) {
            if (args.length == 1 && args[0] instanceof Closure) {
                baseDir.file(name).create(args[0])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/math/big/floatexample_test.go

    			// sample operands above require 2 bits to represent mantissa
    			// set binary precision to 2 to round them to integer values
    			f := new(big.Float).SetPrec(2).SetMode(mode).SetFloat64(f64)
    			fmt.Printf("  %*g", len(mode.String()), f)
    		}
    		fmt.Println()
    	}
    
    	// Output:
    	//    x  ToNearestEven  ToNearestAway  ToZero  AwayFromZero  ToNegativeInf  ToPositiveInf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComSeek.java

         *            the fid to set
         */
        public void setFid ( int fid ) {
            this.fid = fid;
        }
    
    
        /**
         * @param mode
         *            the mode to set
         */
        public final void setMode ( int mode ) {
            this.mode = mode;
        }
    
    
        /**
         * @param offset
         *            the offset to set
         */
        public final void setOffset ( long offset ) {
            this.offset = offset;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

    		            it.mode = 0755
    	            }
                    into ("build/tmp")
                }
                """
            when:
            executer.expectDocumentedDeprecationWarning("The CopyProcessingSpec.setMode() method has been deprecated. " +
                "This is scheduled to be removed in Gradle 9.0. " +
                "Please use the permissions(Action) method instead. " +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. src/cmd/go/internal/telemetrycmd/telemetry.go

    		cmd.Usage()
    	}
    
    	mode := args[0]
    	if mode != "local" && mode != "off" && mode != "on" {
    		cmd.Usage()
    	}
    	if old := telemetry.Mode(); old == mode {
    		return
    	}
    
    	if err := telemetry.SetMode(mode); err != nil {
    		base.Fatalf("go: failed to set the telemetry mode to %s: %v", mode, err)
    	}
    	if mode == "on" {
    		fmt.Fprintln(os.Stderr, telemetryOnMessage())
    	}
    }
    
    func telemetryOnMessage() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 20:16:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. src/cmd/distpack/archive.go

    	files := a.Files[:0]
    	for _, f := range a.Files {
    		if keep(f.Name) {
    			files = append(files, f)
    		}
    	}
    	a.Files = files
    }
    
    // SetMode changes the mode of every file in the archive
    // to be mode(name, m), where m is the file's current mode.
    func (a *Archive) SetMode(mode func(name string, m fs.FileMode) fs.FileMode) {
    	for i := range a.Files {
    		a.Files[i].Mode = mode(a.Files[i].Name, a.Files[i].Mode)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 17:37:52 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/api/file/FileCopyDetails.java

         *
         * @param mode the Unix permissions, e.g. {@code 0644}.
         *
         * @deprecated Use {@link #permissions(Action)} instead. This method is scheduled for removal in Gradle 9.0.
         */
        @Deprecated
        void setMode(int mode);
    
        /**
         * Configuration action for specifying file and directory access permissions.
         * For details see {@link ConfigurableFilePermissions}.
         *
         * @since 8.3
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 12:31:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/NormalizingCopyActionDecorator.java

            @Override
            public void setRelativePath(RelativePath path) {
                throw new UnsupportedOperationException();
            }
    
            @Override
            @Deprecated
            public void setMode(int mode) {
                throw new UnsupportedOperationException();
            }
    
            @Override
            public void permissions(Action<? super ConfigurableFilePermissions> configureAction) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top