Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 727 for tempdir (0.12 sec)

  1. src/os/tempfile.go

    // Multiple programs or goroutines calling CreateTemp simultaneously will not choose the same file.
    // The caller can use the file's Name method to find the pathname of the file.
    // It is the caller's responsibility to remove the file when it is no longer needed.
    func CreateTemp(dir, pattern string) (*File, error) {
    	if dir == "" {
    		dir = TempDir()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 18:04:39 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessMultipartRequestHandler.java

            final File tempDirFile = (File) LaServletContextUtil.getServletContext().getAttribute(CONTEXT_TEMPDIR_KEY);
            String tempDir = tempDirFile.getAbsolutePath();
            if (tempDir == null || tempDir.length() == 0) {
                tempDir = System.getProperty(JAVA_IO_TMPDIR_KEY);
            }
            return tempDir;
        }
    
        // ===================================================================================
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingFileSystemLocationSnapshotHasherTest.groovy

    import org.gradle.internal.snapshot.RegularFileSnapshot
    import spock.lang.Specification
    import spock.lang.TempDir
    
    import java.nio.charset.Charset
    
    import org.gradle.api.internal.changedetection.state.LineEndingContentFixture as content
    
    class LineEndingNormalizingFileSystemLocationSnapshotHasherTest extends Specification {
        @TempDir
        File tempDir
    
        def "calculates hash for text file with #description"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. src/runtime/vdso_test.go

    	if got := bytes.Count(out, []byte("gettime")); got >= calls {
    		t.Logf("found %d gettime calls, want < %d", got, calls)
    
    		// Try to double-check that a C program uses the VDSO.
    		tempdir := t.TempDir()
    		cfn := filepath.Join(tempdir, "time.c")
    		cexe := filepath.Join(tempdir, "time")
    		if err := os.WriteFile(cfn, []byte(vdsoCProgram), 0o644); err != nil {
    			t.Fatal(err)
    		}
    		cc := os.Getenv("CC")
    		if cc == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:47:47 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/bug/bug.go

    // printGlibcVersion prints information about the glibc version.
    // It ignores failures.
    func printGlibcVersion(w io.Writer) {
    	tempdir := os.TempDir()
    	if tempdir == "" {
    		return
    	}
    	src := []byte(`int main() {}`)
    	srcfile := filepath.Join(tempdir, "go-bug.c")
    	outfile := filepath.Join(tempdir, "go-bug")
    	err := os.WriteFile(srcfile, src, 0644)
    	if err != nil {
    		return
    	}
    	defer os.Remove(srcfile)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DaemonRegistryUnavailableExpirationStrategyTest.groovy

        @Subject DaemonRegistryUnavailableExpirationStrategy expirationStrategy = new DaemonRegistryUnavailableExpirationStrategy(daemon)
        @Rule TestNameTestDirectoryProvider tempDir = new TestNameTestDirectoryProvider(getClass())
        File daemonDir = tempDir.createDir("test_daemon_dir")
    
        def "daemon should expire when registry file is unreachable"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/path/filepath/path_test.go

    	tmpdir := t.TempDir()
    
    	wd, err := os.Getwd()
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.Chdir(wd)
    
    	err = os.Chdir(tmpdir)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	err = mklink(tmpdir, "link")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var visited []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  8. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/plugin/java/junit/PluginFunctionalTest.java.template

    import org.gradle.testkit.runner.BuildResult;
    import org.junit.jupiter.api.Test;
    import org.junit.jupiter.api.io.TempDir;
    import static org.junit.jupiter.api.Assertions.*;
    
    /**
     * A simple functional test for the '${pluginId.value}' plugin.
     */
    class ${className.javaIdentifier} {
        @TempDir
        File projectDir;
    
        private File getBuildFile() {
            return new File(projectDir, "build.gradle");
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. src/syscall/exec_pdeathsig_test.go

    	// execute a binary in this directory? (It could be mounted noexec.)
    	tempDir, err := os.MkdirTemp("", "TestDeathSignal")
    	if err != nil {
    		t.Fatalf("cannot create temporary directory: %v", err)
    	}
    	defer os.RemoveAll(tempDir)
    	os.Chmod(tempDir, 0755)
    
    	tmpBinary := filepath.Join(tempDir, filepath.Base(os.Args[0]))
    
    	src, err := os.Open(os.Args[0])
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 21:23:17 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  10. platforms/jvm/language-java/src/test/groovy/org/gradle/api/tasks/compile/ForkOptionsTest.groovy

        ForkOptions forkOptions = TestUtil.newInstance(ForkOptions)
    
        def 'initial values of forkOptions'() {
            expect:
            forkOptions.executable == null
            forkOptions.javaHome == null
            forkOptions.memoryInitialSize == null
            forkOptions.memoryMaximumSize == null
            forkOptions.tempDir == null
            forkOptions.jvmArgs == []
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top