Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for isObject (1.28 sec)

  1. src/cmd/go/internal/work/shell.go

    	if fi, err := os.Stat(dst); err == nil {
    		if fi.IsDir() {
    			return fmt.Errorf("build output %q already exists and is a directory", dst)
    		}
    		if !force && fi.Mode().IsRegular() && fi.Size() != 0 && !isObject(dst) {
    			return fmt.Errorf("build output %q already exists and is not an object file", dst)
    		}
    	}
    
    	// On Windows, remove lingering ~ file from last attempt.
    	if runtime.GOOS == "windows" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleBindingFailureIntegrationTest.groovy

      MyPlugin.Rules#mutateThing2(MyPlugin.MyThing2, MyPlugin.MyThing3, String, Integer)
        subject:
          - <no path> MyPlugin.MyThing2 (parameter 1) [*]
        inputs:
          - <no path> MyPlugin.MyThing3 (parameter 2) [*]
          - <no path> String (parameter 3) [*]
          - <no path> Integer (parameter 4) [*]
    
      MyPlugin.Rules#subjectOnly(MyPlugin.MyThing2)
        subject:
          - <no path> MyPlugin.MyThing2 (parameter 1) [*]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

            onPropertyMissingSet.execute(name, value)
        }
    }
    
    class ActionsTester {
    
        Object subject = "subject"
        String lastMethod
        List lastArgs
    
        void oneAction(Action action) {
            lastMethod = "oneAction"
            lastArgs = [action]
            action.execute(subject)
        }
    
        void twoArgs(String first, Action action) {
            lastMethod = "twoArgs"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/codegen/GradleApiExtensionsTest.kt

                    fun classToKClass(subject: ClassToKClass) {
    
                        subject.rawClass(type = String::class)
                        subject.unknownClass(type = String::class)
                        subject.invariantClass(type = Number::class)
                        subject.covariantClass(type = Int::class)
                        subject.contravariantClass(type = Number::class)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Nov 12 16:16:08 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/NodeBackedModelMap.java

            ModelRuleDescriptor descriptor = sourceDescriptor.append("named(%s)", name);
            ModelReference<T> subject = ModelReference.of(modelNode.getPath().child(name), elementType);
            modelNode.applyToLink(ModelActionRole.Mutate, new FilteringActionWrapper<T>(elementFilter, subject, NoInputsModelAction.of(subject, descriptor, configAction)));
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 23K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/RuleBindingsTest.groovy

            then:
            bindings.getRulesWithSubject(nodeAtState("a", ModelNode.State.Mutated)) as List == [rule]
            rule.subjectBinding.boundTo == node
        }
    
        def "locates the subject of a rule by-path when subject added after rule"() {
            when:
            def node = node("a")
            def rule = rule("a", ModelNode.State.Mutated)
            bindings.add(rule)
    
            then:
            !rule.subjectBinding.bound
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleInputDetectionIntegrationSpec.groovy

            failureCauseContains('''
      fooar { ... } @ build.gradle line 20, column 17
        subject:
          - fooar Object [*]
              suggestions: foobar
    
      foobah { ... } @ build.gradle line 18, column 17
        subject:
          - foobah Object [*]
              suggestions: foobar
    
      foonar { ... } @ build.gradle line 16, column 17
        subject:
          - foonar Object [*]
              suggestions: foobar
    ''')
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelPropertyTargetingRuleIntegrationTest.groovy

                }
            '''
    
            then:
            succeeds "fromPlugin", "fromScript"
    
            and:
            output.contains("plugin subject: OperatingSystem 'platform.operatingSystem'")
            output.contains("plugin name: foo os")
            output.contains("script subject: OperatingSystem 'platform.operatingSystem'")
            output.contains("script name: foo os")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedByRuleMethodIntegrationTest.groovy

                    abstract Thing getThing()
                    abstract void setThing(Thing t)
    
                    @Mutate
                    void thing(Thing subject) {
                        assert subject == thing
                        subject.name = 'thing a from rule'
                        subject.address.name = 'address a from rule'
                    }
    
                    @Mutate
                    void address(Address address) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/ModelRuleExtractor.java

                    }
                }
            }
    
            private ModelReference<?> mapSubject(ModelReference<?> subject, ModelPath targetPath) {
                if (subject.getPath() == null) {
                    return subject.inScope(targetPath);
                } else {
                    return subject.withPath(targetPath.descendant(subject.getPath()));
                }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top