Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 133 for fileText (0.14 sec)

  1. 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)
  2. src/go/token/position_test.go

    			}
    			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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/documentation/docs/src/snippets/ant/taskWithNestedElements/kotlin/build.gradle.kts

    tasks.register("zip") {
        doLast {
            ant.withGroovyBuilder {
                "zip"("destfile" to "archive.zip") {
                    "fileset"("dir" to "src") {
                        "include"("name" to "**.xml")
                        "exclude"("name" to "**.java")
                    }
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 313 bytes
    - Viewed (0)
  9. plugin.xml

    			<patternset>
    				<include name="**" />
    			</patternset>
    			<cutdirsmapper dirs="1" />
    		</unzip>
    	</target>
    
    	<target name="remove.jars" if="with.fess">
    		<delete>
    			<fileset dir="${plugins.dir}">
    				<include name="configsync/commons-codec-*" />
    				<include name="dataformat/commons-codec-*" />
    				<include name="dataformat/commons-collections4-*" />
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu May 16 07:10:50 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go

    	"go/ast"
    	"go/format"
    	"go/token"
    )
    
    // A CFG represents the control-flow graph of a single function.
    //
    // The entry point is Blocks[0]; there may be multiple return blocks.
    type CFG struct {
    	fset   *token.FileSet
    	Blocks []*Block // block[0] is entry; order otherwise undefined
    }
    
    // A Block represents a basic block: a list of statements and
    // expressions that are always evaluated sequentially.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top