Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for newProps (0.27 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInStaticGroovyIntegrationTest.groovy

                class SomePlugin implements Plugin<Project> {
                    void apply(Project project) {
                        def newProps = new Properties()
                        System.properties.forEach { k, v -> newProps[k] = v }
                        newProps.replace("some.property", "new.value")
                        ${setProperties}(newProps)
                    }
                }
    
                apply plugin: SomePlugin
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInJavaIntegrationTest.groovy

                    public void apply(Project project) {
                        Properties newProps = new Properties();
                        System.getProperties().forEach(newProps::put);
                        newProps.replace("some.property", "new.value");
                        System.setProperties(newProps);
                    }
                }
            """
    
            buildScript("""
                apply plugin: SomePlugin
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInDynamicGroovyIntegrationTest.groovy

                class SomePlugin implements Plugin<Project> {
                    void apply(Project project) {
                        def newProps = new Properties()
                        System.properties.forEach { k, v -> newProps[k] = v }
                        newProps.replace("some.property", "new.value")
                        ${setProperties}(newProps)
    
                        project.tasks.register("printProperty") {
                            doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/mdo/transformer.vm

            Map<String, String> newProps = null;
            for (Map.Entry<String, String> entry : props.entrySet()) {
                String newVal = transform(entry.getValue());
                if (newVal != null && newVal != entry.getValue()) {
                    if (newProps == null) {
                        newProps = new HashMap<>();
                        newProps.putAll(props);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Apr 03 17:49:40 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskInputs.java

                return registration;
            });
        }
    
        @Override
        public TaskInputs properties(final Map<String, ?> newProps) {
            taskMutator.mutate("TaskInputs.properties(Map)", () -> {
                for (Map.Entry<String, ?> entry : newProps.entrySet()) {
                    StaticValue staticValue = new StaticValue(entry.getValue());
                    String name = entry.getKey();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsIntegrationTest.groovy

                System.setProperty("some.removed.property", "removed.value")
                def newProps = new Properties()
                System.properties.forEach { k, v -> newProps.put(k, v) }
                newProps.setProperty("some.property", "some.value")
                newProps.remove("some.removed.property")
    
                System.setProperties(newProps)
                tasks.register("printProperty") {
                    doLast {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 36K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/authentication/group/group_adder.go

    	if err != nil || !ok {
    		return nil, ok, err
    	}
    
    	newGroups := make([]string, 0, len(r.User.GetGroups())+len(g.Groups))
    	newGroups = append(newGroups, r.User.GetGroups()...)
    	newGroups = append(newGroups, g.Groups...)
    
    	ret := *r // shallow copy
    	ret.User = &user.DefaultInfo{
    		Name:   r.User.GetName(),
    		UID:    r.User.GetUID(),
    		Groups: newGroups,
    		Extra:  r.User.GetExtra(),
    	}
    	return &ret, true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authentication/group/authenticated_group_adder.go

    			return r, true, nil
    		}
    	}
    
    	newGroups := make([]string, 0, len(r.User.GetGroups())+1)
    	newGroups = append(newGroups, r.User.GetGroups()...)
    	newGroups = append(newGroups, user.AllAuthenticated)
    
    	ret := *r // shallow copy
    	ret.User = &user.DefaultInfo{
    		Name:   r.User.GetName(),
    		UID:    r.User.GetUID(),
    		Groups: newGroups,
    		Extra:  r.User.GetExtra(),
    	}
    	return &ret, true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authentication/group/token_group_adder.go

    	if err != nil || !ok {
    		return nil, ok, err
    	}
    
    	newGroups := make([]string, 0, len(r.User.GetGroups())+len(g.Groups))
    	newGroups = append(newGroups, r.User.GetGroups()...)
    	newGroups = append(newGroups, g.Groups...)
    
    	ret := *r // shallow copy
    	ret.User = &user.DefaultInfo{
    		Name:   r.User.GetName(),
    		UID:    r.User.GetUID(),
    		Groups: newGroups,
    		Extra:  r.User.GetExtra(),
    	}
    	return &ret, true, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 20:04:50 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/ar.go

    				// Don't try to pull things out of a host archive to
    				// satisfy this symbol.
    				continue
    			}
    		}
    		newundefs = append(newundefs, s)
    		newfroms = append(newfroms, s)
    	}
    	return newundefs, newfroms
    }
    
    // hostArchive reads an archive file holding host objects and links in
    // required objects. The general format is the same as a Go archive
    // file, but it has an armap listing symbols and the objects that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 19 23:11:11 UTC 2022
    - 7.2K bytes
    - Viewed (0)
Back to top