Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for otherDir (0.18 sec)

  1. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultFilePropertyFactoryTest.groovy

            def otherDir = projectDir.file("sub-dir")
    
            expect:
            def dirVar = factory.newDirectoryProperty()
            def fileProvider = dirVar.asFile
    
            dirVar.set(new File("sub-dir"))
            dirVar.present
            dirVar.get().getAsFile() == otherDir
            fileProvider.present
            fileProvider.get() == otherDir
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r10rc1/PassingCommandLineArgumentsCrossVersionSpec.groovy

        def "can overwrite project dir via build arguments"() {
            given:
            file('otherDir').createDir()
            file('otherDir/build.gradle') << "assert projectDir.name.endsWith('otherDir')"
            file('otherDir/settings.gradle') << ''
    
            when:
            withConnection {
                it.newBuild().withArguments('-p', 'otherDir').run()
            }
    
            then:
            noExceptionThrown()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/AbstractPropertyLanguageInterOpIntegrationTest.groovy

                }
            """
            def otherDir = file("buildSrc/other")
            otherDir.file("build.gradle") << """
                plugins {
                    id("java-library")
                }
                dependencies {
                    api gradleApi()
                    implementation project(":plugin")
                }
            """
    
            otherDir.file("src/main/java/SomeOtherPlugin.java") << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. platforms/core-execution/build-cache/src/integTest/groovy/org/gradle/caching/internal/BuildCacheBuildOperationsIntegrationTest.groovy

                    List<String> paths = []
    
                    @OutputDirectory
                    File dir = project.file("build/dir")
    
                    @OutputDirectory
                    File otherDir = project.file("build/otherDir")
    
                    @TaskAction
                    void generate() {
                        paths.each {
                            def f = new File(dir, it)
                            f.parentFile.mkdirs()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 08:51:14 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileTreeTest.groovy

            1 * listener.fileCollectionObserved(fileTree)
        }
    
        def testCanStopVisitingFiles() {
            File included1 = new File(testDir, 'subDir/included1')
            File included2 = new File(testDir, 'subDir/otherDir/included2')
            [included1, included2].each { File file ->
                file.parentFile.mkdirs()
                file.text = 'some text'
            }
    
            expect:
            assertCanStopVisiting(fileTree)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. cmd/import-boss/main_test.go

    		input  *packages.Package
    		expect string
    	}{{
    		input: &packages.Package{
    			PkgPath:      "example.com/foo/bar/qux",
    			GoFiles:      []string{"/src/prj/file.go"},
    			IgnoredFiles: []string{"/otherdir/file.go"},
    		},
    		expect: filepath.Clean("/src/prj"),
    	}, {
    		input: &packages.Package{
    			PkgPath:      "example.com/foo/bar/qux",
    			IgnoredFiles: []string{"/src/prj/file.go"},
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. tests/postgres_test.go

    	type Thing struct {
    		gorm.Model
    		SomeID  string
    		OtherID string
    		Data    string
    	}
    
    	DB.Migrator().DropTable(&Thing{})
    	DB.Migrator().CreateTable(&Thing{})
    	if err := DB.Exec("ALTER TABLE things ADD CONSTRAINT some_id_other_id_unique UNIQUE (some_id, other_id)").Error; err != nil {
    		t.Error(err)
    	}
    
    	thing := Thing{
    		SomeID:  "1234",
    		OtherID: "1234",
    		Data:    "something",
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Oct 08 09:16:32 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/sources/process/ProviderCompatibleBaseExecSpecTestBase.groovy

            when:
            specUnderTest.setEnvironment(OTHERVAR: "otherval")
    
            then:
            specUnderTest.getEnvironment() == [OTHERVAR: "otherval"]
        }
    
        def "adding variables after setting environment is working"() {
            given:
            specUnderTest.setEnvironment(SOMEVAR: "someval")
    
            when:
            specUnderTest.environment(OTHERVAR: "otherval")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/quantity.go

    		return types.NewErr("type conversion error from '%s' to '%s'", quantityTypeValue, typeVal)
    	}
    }
    
    func (d Quantity) Equal(other ref.Val) ref.Val {
    	otherDur, ok := other.(Quantity)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(other)
    	}
    	return types.Bool(d.Quantity.Equal(*otherDur.Quantity))
    }
    
    func (d Quantity) Type() ref.Type {
    	return quantityTypeValue
    }
    
    func (d Quantity) Value() interface{} {
    	return d.Quantity
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 11:23:54 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/format.go

    	default:
    		return types.NewErr("type conversion error from '%s' to '%s'", FormatType, typeVal)
    	}
    }
    
    func (d *Format) Equal(other ref.Val) ref.Val {
    	otherDur, ok := other.(*Format)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(other)
    	}
    	return types.Bool(d.Name == otherDur.Name)
    }
    
    func (d *Format) Type() ref.Type {
    	return FormatType
    }
    
    func (d *Format) Value() interface{} {
    	return d
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top