Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 241 for fileset (0.15 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            def fileSet = [new File("somePath")] as Set
            resolver.resolveGraph(configuration) >> graphResolved(fileSet)
    
            when:
            def files = configuration.files(Mock(Dependency))
    
            then:
            files == fileSet
            configuration.state == RESOLVED
        }
    
        def filesWithSpec() {
            def configuration = conf()
            def fileSet = [new File("somePath")] as Set
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/ant/taskWithNestedElements/groovy/build.gradle

    tasks.register('zip') {
        doLast {
            ant.zip(destfile: 'archive.zip') {
                fileset(dir: 'src') {
                    include(name: '**.xml')
                    exclude(name: '**.java')
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 227 bytes
    - Viewed (0)
  3. src/cmd/internal/dwarf/putvarabbrevgen_test.go

    	}
    
    	fmt.Fprint(buf, "\n}\n\n")
    
    	fmt.Fprint(buf, "func putAbstractVarAbbrev(v *Var) int {\n")
    	format.Node(buf, &token.FileSet{}, funcs["putAbstractVarAbbrev"])
    	fmt.Fprint(buf, "}\n\n")
    
    	fmt.Fprint(buf, "func putvarAbbrev(v *Var, concrete, withLoclist bool) int {\n")
    	format.Node(buf, &token.FileSet{}, funcs["putvarAbbrev"])
    	fmt.Fprint(buf, "}\n")
    
    	out, err := format.Source(buf.Bytes())
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/ant/useAntType/kotlin/build.gradle.kts

    import org.apache.tools.ant.types.Path
    
    tasks.register("list") {
        doLast {
            val path = ant.withGroovyBuilder {
                "path" {
                    "fileset"("dir" to "libs", "includes" to "*.jar")
                }
            } as Path
            path.list().forEach {
                println(it)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 312 bytes
    - Viewed (0)
  5. src/go/token/position_test.go

    				t.Errorf("got filename = %s; want %s", f.Name(), tests[j].filename)
    			}
    			j++
    			return true
    		})
    		if j != i+1 {
    			t.Errorf("got %d files; want %d", j, i+1)
    		}
    	}
    }
    
    // FileSet.File should return nil if Pos is past the end of the FileSet.
    func TestFileSetPastEnd(t *testing.T) {
    	fset := NewFileSet()
    	for _, test := range tests {
    		fset.AddFile(test.filename, fset.Base(), test.size)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  6. src/cmd/gofmt/rewrite.go

    /*
    func dump(msg string, val reflect.Value) {
    	fmt.Printf("%s:\n", msg)
    	ast.Print(fileSet, val.Interface())
    	fmt.Println()
    }
    */
    
    // rewriteFile applies the rewrite rule 'pattern -> replace' to an entire file.
    func rewriteFile(fileSet *token.FileSet, pattern, replace ast.Expr, p *ast.File) *ast.File {
    	cmap := ast.NewCommentMap(fileSet, p, p.Comments)
    	m := make(map[string]reflect.Value)
    	pat := reflect.ValueOf(pattern)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  7. src/go/parser/interface.go

    // are returned via a scanner.ErrorList which is sorted by source position.
    func ParseFile(fset *token.FileSet, filename string, src any, mode Mode) (f *ast.File, err error) {
    	if fset == nil {
    		panic("parser.ParseFile: no token.FileSet provided (fset == nil)")
    	}
    
    	// get source
    	text, err := readSource(filename, src)
    	if err != nil {
    		return nil, err
    	}
    
    	var p parser
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/GroovyJavaJointIncrementalCompilationIntegrationTest.groovy

        }
    
        void applyGroovyFileSet(List<String> fileSet) {
            file('src/main/groovy').forceDeleteDir()
            fileSet.each {
                file("src/main/groovy/${it.replace('.changed', '').replace('.failure', '') + (it.startsWith('J') ? '.java' : '.groovy')}").text = SOURCES[it]
            }
        }
    
        void applyMixFileSet(List<String> fileSet) {
            file('src/main/groovy').forceDeleteDir()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/ant/useExternalAntTaskWithConfig/groovy/build.gradle

            ant.pmd(shortFilenames: 'true',
                    failonruleviolation: 'true',
                    rulesetfiles: file('pmd-rules.xml').toURI().toString()) {
                formatter(type: 'text', toConsole: 'true')
                fileset(dir: 'src')
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 697 bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/ant/useExternalAntTaskWithConfig/kotlin/build.gradle.kts

                      "failonruleviolation" to true,
                      "rulesetfiles" to file("pmd-rules.xml").toURI().toString()) {
                    "formatter"("type" to "text", "toConsole" to "true")
                    "fileset"("dir" to "src")
                }
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 800 bytes
    - Viewed (0)
Back to top