Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for createFile2 (0.49 sec)

  1. maven-compat/src/test/java/org/apache/maven/artifact/testutils/TestFileManager.java

        protected void finalize() throws Throwable {
            maybeWarnAboutCleanUp();
    
            super.finalize();
        }
    
        public File createFile(String filename, String content, String encoding) throws IOException {
            File dir = createTempDir();
            return createFile(dir, filename, content, encoding);
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 25 05:46:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/classpath/ManifestUtilTest.groovy

    public class ManifestUtilTest extends Specification {
        @Rule
        final TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
        def jarFile = tmpDir.file("mydir/jarfile.jar").createFile()
    
        def "creates manifest classpath with relative urls"() {
            when:
            def classpathFiles = [tmpDir.file('mydir/jar1.jar'), tmpDir.file('mydir/nested/jar2.jar')]
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. src/internal/filepathlite/path_windows.go

    			switch name[3:] {
    			case "\u00b2", "\u00b3", "\u00b9":
    				return true
    			}
    			return false
    		}
    	}
    
    	// Passing CONIN$ or CONOUT$ to CreateFile opens a console handle.
    	// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea#consoles
    	//
    	// While CONIN$ and CONOUT$ aren't documented as being files,
    	// they behave the same as CON. For example, ./CONIN$ also opens the console input.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. platforms/native/tooling-native/src/crossVersionTest/groovy/org/gradle/language/cpp/tooling/r410/CppModelCrossVersionSpec.groovy

            """
            buildFile << """
                apply plugin: 'cpp-application'
            """
            def headerDir = file('src/main/headers')
            def src1 = file('src/main/cpp/app.cpp').createFile()
            def src2 = file('src/main/cpp/app-impl.cpp').createFile()
    
            when:
            def project = withConnection { connection -> connection.getModel(CppProject.class) }
    
            then:
            project.projectIdentifier.projectPath == ':'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/internal/daemon/serialization/DaemonSidePayloadClassLoaderFactoryTest.groovy

            then:
            cl instanceof VisitableURLClassLoader
            cl.URLs == [url1, url2] as URL[]
        }
    
        def "creates ClassLoader for jar classpath"() {
            def jarFile = tmpDir.createFile("file1.jar")
            def cachedJar = tmpDir.createFile("cached/file1.jar")
            def url1 = jarFile.toURI().toURL()
            def cached = cachedJar.toURI().toURL()
            def url2 = tmpDir.createDir("classes-dir").toURI().toURL()
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:51:37 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFileCollectionIntegrationTest.groovy

                    def result = $expression
                    doLast {
                        println(result)
                    }
                }
            """
            def file1 = file("file1").createFile()
            def file2 = file("file2").createFile()
            def fixture = newConfigurationCacheFixture()
    
            when:
            configurationCacheRun("report")
    
            then:
            fixture.assertStateStored()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. subprojects/core-api/src/test/groovy/org/gradle/StartParameterTest.groovy

            parameter.allInitScripts.empty
    
            when:
            def userMainInit = gradleUserHomeDir.createFile("init.gradle")
            then:
            parameter.allInitScripts == [userMainInit]
    
            when:
            def userInit1 = gradleUserHomeDir.createFile("init.d/1.gradle")
            def userInit2 = gradleUserHomeDir.createFile("init.d/2.gradle")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 06:24:50 UTC 2024
    - 14K bytes
    - Viewed (0)
  8. platforms/native/tooling-native/src/crossVersionTest/groovy/org/gradle/language/cpp/tooling/r52/CppModelCrossVersionSpec.groovy

                }
            """
            def headerDir = file('src/main/headers')
            def src1 = file('src/main/cpp/app.cpp').createFile()
            def src2 = file('src/main/cpp/app-impl.cpp').createFile()
    
            when:
            def project = withConnection { connection -> connection.getModel(CppProject.class) }
    
            then:
            project.projectIdentifier.projectPath == ':'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  9. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/filesystem/services/GenericFileSystem.java

            if (caseSensitive == null) {
    
                String content = generateUniqueContent();
                File file = null;
                try {
                    checkJavaIoTmpDirExists();
                    file = createFile(content);
                    caseSensitive = probeCaseSensitive(file, content);
                } catch (IOException e) {
                    throw new RuntimeException(e);
                } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/phases/reset/cleanupnode_test.go

    				err := os.Mkdir(filepath.Join(tmpDir, createDir), 0700)
    				if err != nil {
    					t.Errorf("Unable to setup test config directory: %s", err)
    				}
    			}
    
    			for _, createFile := range test.setupFiles {
    				fullPath := filepath.Join(tmpDir, createFile)
    				f, err := os.Create(fullPath)
    				if err != nil {
    					t.Errorf("Unable to create test file: %s", err)
    				}
    				f.Close()
    			}
    
    			if test.resetDir == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top