- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 266 for walkIf (0.11 sec)
-
platforms/core-configuration/file-collections/src/testFixtures/groovy/org/gradle/api/internal/file/collections/AbstractDirectoryWalkerTest.groovy
@Rule SetSystemProperties setSystemPropertiesRule protected abstract List<T> getWalkers() def "basic directory walking works - walker: #walkerInstance.class.simpleName"() { given: def rootDir = tmpDir.createDir("root") def rootTextFile = rootDir.file("a.txt").createFile()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 7K bytes - Viewed (0) -
subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/TaskPropertyTestUtils.groovy
GetInputFilesVisitor visitor = new GetInputFilesVisitor(task.toString(), fileCollectionFactory) def walker = task.getServices().get(PropertyWalker) TaskPropertyUtils.visitProperties(walker, task, visitor) return new CompositeFileCollection() { @Override String getDisplayName() { return task + " input files"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Nov 15 21:15:57 UTC 2022 - 2.5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/AbstractTaskInputsAndOutputsTest.groovy
def visitor = new GetInputPropertiesVisitor() TaskPropertyUtils.visitProperties(walker, task, visitor) return visitor.properties.collectEntries { [it.propertyName, InputParameterUtils.prepareInputParameterValue(it.value)] } } def inputFileProperties() { def inputFiles = [:] TaskPropertyUtils.visitProperties(walker, task, new PropertyVisitor() { @Override void visitInputFileProperty(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 20:42:35 UTC 2024 - 4.6K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterAsDirectoryWalkerTest.groovy
fileTree.visit(fileVisitor) visited } @Override protected List<String> walkDirForPaths(DirectorySnapshotter walker, File rootDir, PatternSet patternSet) { def snapshot = walker.snapshot(rootDir.absolutePath, directoryWalkerPredicate(patternSet), [:], completeSnapshotConsumer) return SnapshotVisitorUtil.getAbsolutePaths(snapshot) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:32 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/software/version-control/src/main/java/org/gradle/vcs/git/internal/GitVersionControlSystem.java
} } } private static void updateSubModules(Git git) throws IOException, GitAPIException { try (SubmoduleWalk walker = SubmoduleWalk.forIndex(git.getRepository())) { while (walker.next()) { try (Repository submodule = walker.getRepository()) { if (submodule != null) { Git submoduleGit = Git.wrap(submodule);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 31 14:54:52 UTC 2024 - 8K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DirectoryWalkerTest.groovy
generateFilesAndSubDirectories(subDir, fileCount, dirCount, maxDepth, currentDepth + 1, fileIdGenerator) } } } def "file walker sees a snapshot of file metadata even if files are deleted after walking has started"() { given: def rootDir = tmpDir.createDir("root") long minimumTimestamp = (System.currentTimeMillis() / 1000 * 1000) - 2000
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 6.1K bytes - Viewed (0) -
cmd/preferredimports/preferredimports.go
var files []*ast.File for _, f := range fs { files = append(files, f) } return files } type collector struct { dirs []string regex *regexp.Regexp } // handlePath walks the filesystem recursively, collecting directories, // ignoring some unneeded directories (hidden/vendored) that are handled // specially later. func (c *collector) handlePath(path string, info os.FileInfo, err error) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:44 UTC 2024 - 7.1K bytes - Viewed (0) -
src/cmd/go/chdir_test.go
script, err := os.ReadFile("testdata/script/chdir.txt") if err != nil { t.Fatal(err) } var walk func(string, *base.Command) walk = func(name string, cmd *base.Command) { if len(cmd.Commands) > 0 { for _, sub := range cmd.Commands { walk(name+" "+sub.Name(), sub) } return } if !cmd.Runnable() { return } if cmd.CustomFlags {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 12:16:35 UTC 2022 - 1.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/select.go
// license that can be found in the LICENSE file. package walk import ( "cmd/compile/internal/base" "cmd/compile/internal/ir" "cmd/compile/internal/typecheck" "cmd/compile/internal/types" "cmd/internal/src" ) func walkSelect(sel *ir.SelectStmt) { lno := ir.SetPos(sel) if sel.Walked() { base.Fatalf("double walkSelect") } sel.SetWalked(true) init := ir.TakeInit(sel)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 01:53:41 UTC 2023 - 7.8K bytes - Viewed (0) -
src/cmd/cgo/ast_go118.go
switch n := x.(type) { default: error_(token.NoPos, "unexpected type %T in walk", x) panic("unexpected type") case *ast.IndexListExpr: f.walk(&n.X, ctxExpr, visit) f.walk(n.Indices, ctxExpr, visit) } } func funcTypeTypeParams(n *ast.FuncType) *ast.FieldList { return n.TypeParams }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 30 21:45:10 UTC 2022 - 730 bytes - Viewed (0)