Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 200 for newRule (0.26 sec)

  1. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/DefaultDeleterTest.groovy

            FileTime.makeOld(targetDir, triggerFile)
    
            and:
            def newFile = targetDir.file("aaa.txt")
            deleter = FileTime.deleterWithDeletionAction() { file ->
                if (file.canonicalFile == triggerFile.canonicalFile) {
                    FileTime.createNewFile(newFile)
                }
                return DeletionAction.CONTINUE
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 12:40:48 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. platforms/documentation/docs-asciidoctor-extensions-base/src/test/groovy/org/gradle/docs/asciidoctor/SampleIncludeProcessorTest.groovy

            asciidoctor.convert(asciidocContent, [:])
    
            then:
            thrown IllegalStateException
        }
    
        def "converts a sample include into declared source"() {
            given:
            tmpDir.newFile("src/samples/build.gradle") << """
    task hello {
        doLast {
            println "hello world"
        }
    }
    """
    
            String asciidocContent = """
    = Doctitle
    :samples-dir: ${tmpDir.root.canonicalPath}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftIncrementalCompileIntegrationTest.groovy

             """
    
            outputs.snapshot { succeeds("compileDebugSwift") }
    
            when:
            def newFile = file("src/main/swift/NewFile.swift")
            newFile << """
                public class NewFile {}
            """
            and:
            succeeds("compileDebugSwift")
    
            then:
            outputs.recompiledFile(newFile)
        }
    
        def 'adding a new file that overlaps with an existing type fails'() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  4. src/os/pipe_unix.go

    	if e != nil {
    		syscall.ForkLock.RUnlock()
    		return nil, nil, NewSyscallError("pipe", e)
    	}
    	syscall.CloseOnExec(p[0])
    	syscall.CloseOnExec(p[1])
    	syscall.ForkLock.RUnlock()
    
    	return newFile(p[0], "|0", kindPipe, false), newFile(p[1], "|1", kindPipe, false), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:47:23 UTC 2024
    - 774 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/tuple.go

    // Tuples are used as components of signatures and to represent the type of multiple
    // assignments; they are not first class types of Go.
    type Tuple struct {
    	vars []*Var
    }
    
    // NewTuple returns a new tuple for the given variables.
    func NewTuple(x ...*Var) *Tuple {
    	if len(x) > 0 {
    		return &Tuple{vars: x}
    	}
    	return nil
    }
    
    // Len returns the number variables of tuple t.
    func (t *Tuple) Len() int {
    	if t != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 26 17:18:58 UTC 2021
    - 929 bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsFile.java

            protected File newFile;
    
            protected Writer writer;
    
            protected ProtwordsItem item;
    
            protected ProtwordsUpdater(final ProtwordsItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(PROTWORDS, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java

            protected File newFile;
    
            protected Writer writer;
    
            protected StopwordsItem item;
    
            protected SynonymUpdater(final StopwordsItem newItem) {
                try {
                    newFile = ComponentUtil.getSystemHelper().createTempFile(STOPWORDS, ".txt");
                    writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(newFile), Constants.UTF_8));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/samples/build-organization/publishing-convention-plugins/kotlin/convention-plugins/src/test/kotlin/com/myorg/ServicePluginTest.kt

                plugins {
                    id("com.myorg.service-conventions")
                }
            """)
        }
    
        @Test
        fun `integrationTest and readmeCheck tasks run with check task`() {
            testProjectDir.newFile("README.md").writeText("""
                ## Service API
    
            """.trimIndent())
    
            val result = runTask("check")
    
            assertEquals(TaskOutcome.NO_SOURCE, result.task(":test")?.outcome)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  9. src/runtime/internal/wasitest/testdata/nonblock.go

    	for _, path := range os.Args[2:] {
    		f, err := os.Open(path)
    		if err != nil {
    			panic(err)
    		}
    		switch mode {
    		case "os.OpenFile":
    		case "os.NewFile":
    			fd := f.Fd()
    			if err := syscall.SetNonblock(int(fd), true); err != nil {
    				panic(err)
    			}
    			f = os.NewFile(fd, path)
    		default:
    			panic("invalid test mode")
    		}
    
    		spawnWait := make(chan struct{})
    
    		wg.Add(1)
    		go func(f *os.File) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 26 17:59:52 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. src/os/file_windows.go

    func newConsoleFile(h syscall.Handle, name string) *File {
    	return newFile(h, name, "console")
    }
    
    // NewFile returns a new File with the given file descriptor and
    // name. The returned value will be nil if fd is not a valid file
    // descriptor.
    func NewFile(fd uintptr, name string) *File {
    	h := syscall.Handle(fd)
    	if h == syscall.InvalidHandle {
    		return nil
    	}
    	return newFile(h, name, "file")
    }
    
    func epipecheck(file *File, e error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top